4ab8282c159fff6f1743528b0383bf37.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php /*a:3:{s:59:"/data/web/mall.valimart.net/app/admin/view/login/index.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/footer.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <style>
  32. body{background-image:url(<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/wallpage/bg_<?php echo rand(1,8); ?>.jpg););background-size: cover;}
  33. </style>
  34. <div class="login">
  35. <div class="login_body">
  36. <div class="login_header">
  37. <img src="<?php echo ds_get_pic('admin/common',config('ds_config.admin_logo')); ?>"/>
  38. </div>
  39. <div class="login_content">
  40. <form method="post" id="login_form">
  41. <div class="form-group">
  42. <input type="text" name="admin_name" placeholder="<?php echo htmlentities(lang('ds_member_name')); ?>" required class="text">
  43. </div>
  44. <div class="form-group">
  45. <input type="password" name="admin_password" autocomplete="new-password" placeholder="<?php echo htmlentities(lang('ds_member_password')); ?>" required class="text">
  46. </div>
  47. <div class="form-group">
  48. <input type="text" name="captcha" placeholder="<?php echo htmlentities(lang('ds_captcha')); ?>" required class="text" style="width:60%;float:left;">
  49. <img src="<?php echo url('Login/makecode'); ?>" style="width:30%;height:38px;" id="change_captcha"/>
  50. </div>
  51. <div class="form-group">
  52. <input type="button" class="btn" id="login_btn" value="<?php echo htmlentities(lang('ds_login')); ?>" style="width:100%"/>
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. <script>
  59. $(document).keyup(function (event) {
  60. if (event.keyCode == 13) {
  61. login_form();
  62. }
  63. });
  64. $('#login_btn').on('click', function () {
  65. login_form();
  66. });
  67. function login_form()
  68. {
  69. var _form = $('#login_form');
  70. $.ajax({
  71. type: "POST",
  72. url: "<?php echo url('Login/index'); ?>",
  73. data: _form.serialize(),
  74. dataType: 'json',
  75. success: function (res) {
  76. layer.msg(res.message, {time: 1500}, function () {
  77. if (res.code == 10000) {
  78. location.href = "<?php echo url('Index/index'); ?>";
  79. } else {
  80. $('#change_captcha').attr('src', '<?php echo url("Login/makecode"); ?>?' + (new Date().getTime()));
  81. }
  82. });
  83. }
  84. });
  85. }
  86. $('#change_captcha').click(function () {
  87. $(this).attr('src', '<?php echo url("Login/makecode"); ?>?' + (new Date().getTime()));
  88. });
  89. </script>