wrtncNkpO 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?php /* Smarty version 2.6.17, created on 2018-04-18 10:10:58
  2. compiled from admin/backUser/login.html */ ?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title><?php if ($this->_tpl_vars['title']): ?><?php echo $this->_tpl_vars['title']; ?>
  8. <?php endif; ?></title>
  9. <link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  10. /public/static/css/admin_style.css">
  11. <script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  12. /kissy/1.4.0/seed.js?t=1408326831" data-config="{combine:false}" charset="utf-8"></script>
  13. <script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  14. /cfg-min.js?t=1408326831" data-config="{combine:false}" charset="utf-8"></script>
  15. <script src="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  16. /kissy-versions.php" charset="utf-8"></script>
  17. </head>
  18. <style>
  19. html {
  20. box-sizing: border-box;
  21. padding-top: 0;
  22. }
  23. body {
  24. background: none repeat scroll 0 0 #f1f1f1;
  25. color: #444;
  26. font-family: "Open Sans",sans-serif;
  27. font-size: 13px;
  28. line-height: 1.4em;
  29. min-width: 0;
  30. font-family: "Open Sans",sans-serif;
  31. }
  32. #login {
  33. margin: auto;
  34. padding: 8% 0 0;
  35. width: 320px;
  36. }
  37. .login h1 {
  38. color: #777;
  39. font-size: 30px;
  40. margin: 0;
  41. text-align: center;
  42. margin: 0 0 25px;
  43. }
  44. .login .message {
  45. background-color: #fff;
  46. border-left: 4px solid #2ea2cc;
  47. box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  48. }
  49. #login_error, .login .message {
  50. margin-left: 0;
  51. padding: 12px;
  52. }
  53. .login #login_error {
  54. background: none repeat scroll 0 0 #fff;
  55. border-left: 4px solid #dd3d36;
  56. box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  57. display:none;
  58. }
  59. .login .form {
  60. background: none repeat scroll 0 0 #fff;
  61. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
  62. font-weight: 400;
  63. margin-left: 0;
  64. margin-top: 20px;
  65. overflow: hidden;
  66. padding: 26px 24px 46px;
  67. }
  68. #login .form p {
  69. margin-bottom: 0;
  70. }
  71. .login label {
  72. color: #777;
  73. font-size: 14px;
  74. font-weight: 300;
  75. }
  76. .login .form .input, .login .form input[type="checkbox"], .login input[type="text"] {
  77. background: none repeat scroll 0 0 #fbfbfb;
  78. }
  79. .login .form .input, .login input[type="text"] {
  80. font-size: 24px;
  81. margin: 2px 6px 16px 0;
  82. padding: 3px;
  83. width: 100%;
  84. }
  85. .login .form .input, .login .form input[type="checkbox"], .login input[type="text"] {
  86. background: none repeat scroll 0 0 #fbfbfb;
  87. }
  88. .login .form .input, .login .form input[type="checkbox"], .login input[type="text"] {
  89. background: none repeat scroll 0 0 #fbfbfb;
  90. }
  91. .login .form .input, .login input[type="text"] {
  92. font-size: 24px;
  93. margin: 2px 6px 16px 0;
  94. padding: 3px;
  95. width: 100%;
  96. }
  97. .login .form .input, .login input[type="text"] {
  98. font-size: 24px;
  99. margin: 2px 6px 16px 0;
  100. padding: 3px;
  101. width: 100%;
  102. }
  103. input[type="password"], input[type="text"] {
  104. background-color: #fff;
  105. border: 1px solid #ddd;
  106. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
  107. color: #333;
  108. outline: 0 none;
  109. transition: border-color 0.05s ease-in-out 0s;
  110. }
  111. input[type="password"]:focus, input[type="text"]:focus {
  112. border-color: #5b9dd9;
  113. box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
  114. }
  115. .login .form .forgetmenot {
  116. float: left;
  117. font-weight: 400;
  118. margin-bottom: 0;
  119. }
  120. .login .form .forgetmenot label {
  121. font-size: 12px;
  122. line-height: 19px;
  123. }
  124. #login .form p.submit {
  125. margin: 0;
  126. padding: 0;
  127. }
  128. #loginform p.submit, .login-action-lostpassword p.submit {
  129. border: medium none;
  130. margin: -10px 0 20px;
  131. }
  132. p.submit {
  133. margin-top: 20px;
  134. max-width: 100%;
  135. padding-top: 10px;
  136. text-align: left;
  137. }
  138. .button.button-large {
  139. background: none repeat scroll 0 0 #2ea2cc;
  140. border: 1px solid;
  141. border-radius: 3px;
  142. box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
  143. color: #fff;
  144. float: right;
  145. height: 30px;
  146. line-height: 28px;
  147. padding: 0 12px 2px;
  148. text-decoration: none;
  149. vertical-align: baseline;
  150. }
  151. .button-primary:focus, .button-primary:hover {
  152. background:#1e8cbe;
  153. border-color:#0074a2;
  154. -webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6);
  155. box-shadow:inset 0 1px 0 rgba(120,200,230,.6);
  156. color:#fff
  157. }
  158. </style>
  159. <body class="login">
  160. <div id="login">
  161. <h1>OnePage V1.0</h1>
  162. <div id="login_error"><strong>错误</strong>:键入的用户名或者密码不正确。<br></div>
  163. <div class="form" id="loginform" style="position: static; left: 0px;">
  164. <p>
  165. <label for="user_login">用户名<br>
  166. <input name="name" type="text" size="20" class="input" id="user_login"></label>
  167. </p>
  168. <p>
  169. <label for="user_pass">密码<br>
  170. <input name="pwd" type="password" size="20" class="input" id="user_pass"></label>
  171. </p>
  172. <p class="forgetmenot">
  173. <label for="rememberme">
  174. <input type="checkbox" value="forever" id="rememberme" name="rememberme" checked> 记住我的登录信息
  175. </label>
  176. </p>
  177. <p class="submit submit_btn">
  178. <input type="submit" value="登录" class="button button-primary button-large" id="wp-submit" name="wp-submit">
  179. </p>
  180. </div>
  181. </div>
  182. <script>
  183. KISSY.use('node, io', function (S, Node, IO) {
  184. var $ = S.all;
  185. $('input').on('keyup', function (ev) {
  186. var keyCode = ev.keyCode;
  187. if (keyCode == 13) {
  188. login();
  189. }
  190. });
  191. $('.submit_btn').on('click', function () {
  192. login();
  193. });
  194. function login() {
  195. var name = $("input[name=name]").val();
  196. var pwd = $("input[name=pwd]").val();
  197. new IO({
  198. type: "post"
  199. , url: '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  200. /?c=Admin_BackUser&a=Login'
  201. , data: {'username':name,'password':pwd}
  202. , success: function (data) {
  203. if (data.ok) { //ok
  204. var url = data.msg;
  205. location.href = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  206. /?c=Admin_Index';
  207. } else {
  208. $(".welcome").hide();
  209. $("#login_error").show();
  210. }
  211. return false;
  212. }
  213. , error: function (NULL, textStatus) {
  214. alert("请求服务器失败,原因:"+textStatus);
  215. }
  216. , dataType: "json"
  217. });
  218. }
  219. function showError($msg) {
  220. $('.alert-danger').html($msg).show();
  221. }
  222. });
  223. </script>
  224. </body>
  225. </html>