You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

124 line
6.2 KiB

  1. <?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:67:"D:\php\gitea\shop\public/../application/admin\view\index\login.html";i:1588765311;s:57:"D:\php\gitea\shop\application\admin\view\common\meta.html";i:1588765311;s:59:"D:\php\gitea\shop\application\admin\view\common\script.html";i:1588765311;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="<?php echo $config['language']; ?>">
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  8. <meta name="renderer" content="webkit">
  9. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  10. <!-- Loading Bootstrap -->
  11. <link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  12. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  13. <!--[if lt IE 9]>
  14. <script src="/assets/js/html5shiv.js"></script>
  15. <script src="/assets/js/respond.min.js"></script>
  16. <![endif]-->
  17. <script type="text/javascript">
  18. var require = {
  19. config: <?php echo json_encode($config); ?>
  20. };
  21. </script>
  22. <style type="text/css">
  23. body {
  24. color:#999;
  25. background:url('<?php echo $background; ?>');
  26. background-size:cover;
  27. }
  28. a {
  29. color:#fff;
  30. }
  31. .login-panel{margin-top:150px;}
  32. .login-screen {
  33. max-width:400px;
  34. padding:0;
  35. margin:100px auto 0 auto;
  36. }
  37. .login-screen .well {
  38. border-radius: 3px;
  39. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  40. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  41. background: rgba(255,255,255, 0.2);
  42. }
  43. .login-screen .copyright {
  44. text-align: center;
  45. }
  46. @media(max-width:767px) {
  47. .login-screen {
  48. padding:0 20px;
  49. }
  50. }
  51. .profile-img-card {
  52. width: 100px;
  53. height: 100px;
  54. margin: 10px auto;
  55. display: block;
  56. -moz-border-radius: 50%;
  57. -webkit-border-radius: 50%;
  58. border-radius: 50%;
  59. }
  60. .profile-name-card {
  61. text-align: center;
  62. }
  63. #login-form {
  64. margin-top:20px;
  65. }
  66. #login-form .input-group {
  67. margin-bottom:15px;
  68. }
  69. </style>
  70. </head>
  71. <body>
  72. <div class="container">
  73. <div class="login-wrapper">
  74. <div class="login-screen">
  75. <div class="well">
  76. <div class="login-form">
  77. <img id="profile-img" class="profile-img-card" src="/assets/img/avatar.png" />
  78. <p id="profile-name" class="profile-name-card"></p>
  79. <form action="" method="post" id="login-form">
  80. <div id="errtips" class="hide"></div>
  81. <?php echo token(); ?>
  82. <div class="input-group">
  83. <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
  84. <input type="text" class="form-control" id="pd-form-username" placeholder="<?php echo __('Username'); ?>" name="username" autocomplete="off" value="" data-rule="<?php echo __('Username'); ?>:required;username" />
  85. </div>
  86. <div class="input-group">
  87. <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
  88. <input type="password" class="form-control" id="pd-form-password" placeholder="<?php echo __('Password'); ?>" name="password" autocomplete="off" value="" data-rule="<?php echo __('Password'); ?>:required;password" />
  89. </div>
  90. <?php if(\think\Config::get('fastadmin.login_captcha')): ?>
  91. <div class="input-group">
  92. <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
  93. <input type="text" name="captcha" class="form-control" placeholder="<?php echo __('Captcha'); ?>" data-rule="<?php echo __('Captcha'); ?>:required;length(4)" />
  94. <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
  95. <img src="<?php echo rtrim('/', '/'); ?>/index.php?s=/captcha" width="100" height="30" onclick="this.src = '<?php echo rtrim('/', '/'); ?>/index.php?s=/captcha&r=' + Math.random();"/>
  96. </span>
  97. </div>
  98. <?php endif; ?>
  99. <div class="form-group">
  100. <label class="inline" for="keeplogin">
  101. <input type="checkbox" name="keeplogin" id="keeplogin" value="1" />
  102. <?php echo __('Keep login'); ?>
  103. </label>
  104. </div>
  105. <div class="form-group">
  106. <button type="submit" class="btn btn-success btn-lg btn-block"><?php echo __('Sign in'); ?></button>
  107. </div>
  108. </form>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
  115. </body>
  116. </html>