%%18^186^186320FF%%login.html.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php /* Smarty version 2.6.17, created on 2018-05-26 11:46:55
  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><?php echo $this->_tpl_vars['web_cfg']['name']; ?>
  162. </h1>
  163. <div id="login_error"><strong>错误</strong>:键入的用户名或者密码不正确。<br></div>
  164. <div class="form" id="loginform" style="position: static; left: 0px;">
  165. <p>
  166. <label for="user_login">用户名<br>
  167. <input name="name" type="text" size="20" class="input" id="user_login"></label>
  168. </p>
  169. <p>
  170. <label for="user_pass">密码<br>
  171. <input name="pwd" type="password" size="20" class="input" id="user_pass"></label>
  172. </p>
  173. <p class="forgetmenot">
  174. <label for="rememberme">
  175. <input type="checkbox" value="forever" id="rememberme" name="rememberme" checked> 记住我的登录信息
  176. </label>
  177. </p>
  178. <p class="submit submit_btn">
  179. <input type="submit" value="登录" class="button button-primary button-large" id="wp-submit" name="wp-submit">
  180. </p>
  181. </div>
  182. </div>
  183. <script>
  184. KISSY.use('node, io', function (S, Node, IO) {
  185. var $ = S.all;
  186. $('input').on('keyup', function (ev) {
  187. var keyCode = ev.keyCode;
  188. if (keyCode == 13) {
  189. login();
  190. }
  191. });
  192. $('.submit_btn').on('click', function () {
  193. login();
  194. });
  195. function login() {
  196. var name = $("input[name=name]").val();
  197. var pwd = $("input[name=pwd]").val();
  198. new IO({
  199. type: "post"
  200. , url: '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  201. /?c=Admin_BackUser&a=Login'
  202. , data: {'username':name,'password':pwd}
  203. , success: function (data) {
  204. if (data.ok) { //ok
  205. var url = data.msg;
  206. location.href = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  207. /?c=Admin_Index';
  208. } else {
  209. $(".welcome").hide();
  210. $("#login_error").show();
  211. }
  212. return false;
  213. }
  214. , error: function (NULL, textStatus) {
  215. alert("请求服务器失败,原因:"+textStatus);
  216. }
  217. , dataType: "json"
  218. });
  219. }
  220. function showError($msg) {
  221. $('.alert-danger').html($msg).show();
  222. }
  223. });
  224. </script>
  225. </body>
  226. </html>