login.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?php if(!defined( 'WY_ROOT')) exit;?>
  2. <!DOCTYPE html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
  6. <!-- 启用360浏览器的极速模式(webkit) -->
  7. <meta name="renderer" content="webkit">
  8. <!-- 避免IE使用兼容模式 -->
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <!-- 针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 -->
  11. <meta name="HandheldFriendly" content="true">
  12. <!-- 微软的老式浏览器 -->
  13. <meta name="MobileOptimized" content="320">
  14. <!-- uc强制竖屏 -->
  15. <meta name="screen-orientation" content="portrait">
  16. <!-- QQ强制竖屏 -->
  17. <meta name="x5-orientation" content="portrait">
  18. <!-- UC强制全屏 -->
  19. <meta name="full-screen" content="yes">
  20. <!-- QQ强制全屏 -->
  21. <meta name="x5-fullscreen" content="true">
  22. <!-- UC应用模式 -->
  23. <meta name="browsermode" content="application">
  24. <!-- QQ应用模式 -->
  25. <meta name="x5-page-mode" content="app">
  26. <!--这meta的作用就是删除默认的苹果工具栏和菜单栏-->
  27. <meta name="apple-mobile-web-app-capable" content="yes">
  28. <!--网站开启对web app程序的支持-->
  29. <meta name="apple-touch-fullscreen" content="yes">
  30. <!--在web app应用下状态条(屏幕顶部条)的颜色-->
  31. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  32. <!-- windows phone 点击无高光 -->
  33. <meta name="msapplication-tap-highlight" content="no">
  34. <!--移动web页面是否自动探测电话号码-->
  35. <meta http-equiv="x-rim-auto-match" content="none">
  36. <title>
  37. <?php echo $this->config['sitename']?><?php echo $title ?>
  38. </title>
  39. <link rel="icon" type="image/png" href="assets/i/favicon.png">
  40. <link rel="stylesheet" href="/static/assets/css/amazeui.min.css" />
  41. <link rel="stylesheet" href="/static/assets/css/amazeui.datatables.min.css" />
  42. <link rel="stylesheet" href="/static/assets/css/app.css">
  43. <script src="/static/common/jquery-1.12.1.min.js" type="text/javascript">
  44. </script>
  45. <script src="/static/common/bootstrap.min.js" type="text/javascript">
  46. </script>
  47. <script src="/static/common/jquery.zclip.min.js" type="text/javascript">
  48. </script>
  49. <script src="/static/common/datetimepicker.min.js" type="text/javascript">
  50. </script>
  51. <script src="/static/admin/app.js" type="text/javascript">
  52. </script>
  53. <script>
  54. function KeyDown()
  55. {
  56. if (event.keyCode == 13)
  57. {
  58. event.returnValue=false;
  59. event.cancel = true;
  60. Form.submit.click();
  61. }
  62. }
  63. </script>
  64. <style>
  65. .login-form li {margin-bottom: 0.5rem;}
  66. .login-form{
  67. margin-top: 1.4rem;
  68. }
  69. .login-form li input{
  70. width: 12.53rem;
  71. border-radius: 4px;
  72. border: 1px solid #e6ebf0;
  73. margin: 0 auto;
  74. padding:0.25rem;
  75. height:1.19rem;
  76. background: -webkit-linear-gradient(#fafafa, #fff);
  77. background: -o-linear-gradient(#fafafa, #fff);
  78. background: -moz-linear-gradient(#fafafa, #fff);
  79. background: linear-gradient(#fafafa, #fff);
  80. }
  81. .login-form li input.vcode{
  82. /*width: auto;
  83. position: relative;
  84. right:40px;
  85. left:0;
  86. margin-right: 104px;*/
  87. }
  88. .login-form .code{
  89. right:2px;
  90. top:0.25rem;
  91. height: auto;
  92. }
  93. .login-form .f-pr{position:relative;}
  94. .login-form,
  95. .registerForm{
  96. margin-top: 10px;
  97. color: #000000;
  98. overflow: hidden;
  99. }
  100. .login-form li ,
  101. .registerForm > li{
  102. margin-bottom: 20px;
  103. }
  104. .login-form li input,
  105. .registerForm > li input{
  106. height: 40px;
  107. padding: 10px;
  108. width: 314px;
  109. border: 0 none;
  110. background: #ffffff;
  111. line-height: 20px;
  112. font-size: 14px;
  113. }
  114. .registerForm > li input[readonly]{
  115. background: #bbbbbb;
  116. }
  117. .login-form li .code ,
  118. .registerForm li .code{
  119. display: inline-block;
  120. vertical-align: top;
  121. height: 40px;
  122. width: 80px;
  123. margin-left: 40px;
  124. position: absolute;
  125. top: 0;
  126. right: 4px;
  127. }
  128. .login-form li .code>div ,
  129. .registerForm li .code>div{
  130. width: 100%;
  131. height: 100%;
  132. display: table;
  133. vertical-align: middle;
  134. text-align: center;
  135. }
  136. .login-form li .code>div>div,
  137. .registerForm li .code>div>div {
  138. display: table-cell;
  139. vertical-align: middle;
  140. text-align: center;
  141. }
  142. .login-form li .code>div>div img,
  143. .registerForm li .code>div>div img {
  144. width: 80px;
  145. }
  146. </style>
  147. </head>
  148. <body data-type="login" class="theme-white">
  149. <div class="tpl-login">
  150. <div class="tpl-login-content">
  151. <div class="tpl-login-logo">
  152. </div>
  153. <form name="Form" class="am-form login-form form-ajax form-horizontal" action="<?php echo $this->dir ?>login/sigin" method="post" autocomplete="off">
  154. <div class="am-form-group">
  155. <input type="text" class="tpl-form-input" id="username" name="username" placeholder="请输入账号" required>
  156. </div>
  157. <div class="am-form-group">
  158. <input type="password" class="tpl-form-input" name="password" id="password" placeholder="请输入密码" required>
  159. </div>
  160. <ul class="login-form">
  161. <li class="f-pr">
  162. <input type="text" size="10" name="chkcode" class="vcode" autocomplete="off" maxlength="5" placeholder="验证码" required>
  163. <div class="code">
  164. <div>
  165. <div> <img src="/chkcode" title="点击刷新验证码" onclick="javascript:this.src=this.src+'?t=new Date().getTime()'"> </div>
  166. </div>
  167. </div>
  168. </li> </ul>
  169. <div class="am-form-group tpl-login-remember-me">
  170. <input id="remember-me" type="checkbox" checked="checked">
  171. <label for="remember-me">
  172. 记住密码
  173. </label>
  174. <a href="/" class="home_btn" style="float:right">返回<?php echo $this->config['sitename']?>平台首页</a>
  175. </div>
  176. <div class="am-form-group">
  177. <input class="am-btn am-btn-primary am-btn-block tpl-btn-bg-color-success tpl-login-btn" type="submit" name="submit" value="登 陆">
  178. </div>
  179. </form>
  180. </div>
  181. </div>
  182. </div>
  183. </body>
  184. </html>