admin_login.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>OpenShop - Backend Login</title>
  6. <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  7. <!-- Bootstrap 3.3.2 -->
  8. <link href="<?php echo BASE_URL; ?>static/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  9. <!-- Font Awesome Icons -->
  10. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  11. <!-- Theme style -->
  12. <link href="<?php echo BASE_URL; ?>static/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
  13. <!-- iCheck -->
  14. <link href="<?php echo BASE_URL; ?>static/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" />
  15. <link href="<?php echo BASE_URL; ?>static/css/admin.css" rel="stylesheet" type="text/css" />
  16. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  17. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  18. <!--[if lt IE 9]>
  19. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  20. <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  21. <![endif]-->
  22. </head>
  23. <body class="login-page">
  24. <div class="login-box">
  25. <div class="login-logo">
  26. <!--<img src="/images/BUDS_logo-p-500.png" alt="<?=admin_utils::getSiteName('KREATIN')?>" style="width: 100%;"><br>-->
  27. <a href="/admin/login"><b>ADMIN</b> <?=lang::_('LOGIN')?></a>
  28. </div><!-- /.login-logo -->
  29. <div class="login-box-body">
  30. <p class="login-box-msg"><?=lang::_('Sign in to start your session');?></p>
  31. <?php if ($login_error==true) : ?>
  32. <div class="alert alert-danger alert-dismissable">
  33. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  34. <h4><i class="icon fa fa-ban"></i> <?=lang::_('Authentication failed')?></h4>
  35. <?=lang::_('Please check username and password')?>
  36. </div>
  37. <?php endif; ?>
  38. <form id="logmein" action="/admin/login/logmein" method="post">
  39. <div class="form-group has-feedback">
  40. <input type="text" name="email" data-validate="true" value="<?=$kreatin_username?>" class="form-control" placeholder="<?=lang::_('Email or username');?>"/>
  41. <span class="glyphicon glyphicon-user form-control-feedback"></span>
  42. </div>
  43. <div class="form-group has-feedback">
  44. <input type="password" name="pass" data-validate="true" value="<?=$kreatin_password?>" class="form-control" placeholder="<?=lang::_('Password');?>"/>
  45. <span class="glyphicon glyphicon-lock form-control-feedback"></span>
  46. </div>
  47. <div class="row">
  48. <!--<div class="col-xs-8">
  49. <div class="checkbox icheck">
  50. <label>
  51. <input type="checkbox" name="remember"<?=$remember?> value="rememberme"> <?=lang::_('Remember Me');?>
  52. </label>
  53. </div>
  54. </div>--><!-- /.col -->
  55. <div class="col-xs-4">
  56. <button type="button" onclick="validateForm('#logmein',null,null)" class="btn btn-primary btn-block btn-flat"><?=lang::_('Sign In');?></button>
  57. </div><!-- /.col -->
  58. </div>
  59. </form>
  60. <!-- <a href="#" onclick="forgotpass()"><?=lang::_('I forgot my password');?></a><br>-->
  61. <?php if ($forgotview==false) : ?>
  62. <form id="forgotFRM" class="hideme" action="/admin/forgot/send" method="post">
  63. <?php else : ?>
  64. <form id="forgotFRM" action="/admin/forgot/send" method="post">
  65. <?php endif; ?>
  66. <?php if ($reminder_error==true) : ?>
  67. <div class="alert alert-danger alert-dismissable">
  68. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  69. <h4><i class="icon fa fa-ban"></i> <?=lang::_('Error')?></h4>
  70. <?=lang::_('This email not assigned to any active user')?>
  71. </div>
  72. <?php endif; ?>
  73. <?php if ($reminder_message==true) : ?>
  74. <div class="alert alert-success alert-dismissable">
  75. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  76. <h4><i class="icon fa fa-check"></i> <?=lang::_('Reminder sent')?></h4>
  77. <?=lang::_('All right, You will get an email soon')?>
  78. </div>
  79. <?php endif; ?>
  80. <div class="form-group has-feedback">
  81. <input type="text" name="email" data-validate="true" class="form-control" placeholder="<?=lang::_('Your email or username');?>"/>
  82. <span class="glyphicon glyphicon-cog form-control-feedback"></span>
  83. </div>
  84. <div class="row">
  85. <div class="col-xs-8">
  86. <div class="checkbox icheck"></div>
  87. </div><!-- /.col -->
  88. <div class="col-xs-4">
  89. <button type="button" onclick="validateForm('#forgotFRM',null,null)" class="btn btn-primary btn-block btn-flat"><?=lang::_('Send it');?></button>
  90. </div><!-- /.col -->
  91. </div>
  92. </form>
  93. </div><!-- /.login-box-body -->
  94. </div><!-- /.login-box -->
  95. <!-- jQuery 2.1.3 -->
  96. <script src="<?php echo BASE_URL; ?>static/plugins/jQuery/jQuery-2.1.3.min.js"></script>
  97. <!-- Bootstrap 3.3.2 JS -->
  98. <script src="<?php echo BASE_URL; ?>static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
  99. <!-- iCheck -->
  100. <script src="<?php echo BASE_URL; ?>static/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
  101. <script>
  102. $(function () {
  103. $('input').iCheck({
  104. checkboxClass: 'icheckbox_square-blue',
  105. radioClass: 'iradio_square-blue',
  106. increaseArea: '20%' // optional
  107. });
  108. });
  109. </script>
  110. <script src="<?php echo BASE_URL; ?>static/js/admin_functions.js"></script>
  111. </body>
  112. </html>