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.

171 lines
4.3 KiB

8 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1">
  2. <title>后台登录</title>
  3. <link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/admin.css"><script src="/js/jquery.min.js"></script><script src="/js/ad.js"></script></head><body>
  4. <style>
  5. body {
  6. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  7. font-size: 16px;
  8. color: #888;
  9. line-height: 30px;
  10. text-align: center;
  11. background-color: #000;
  12. }
  13. .form-box {
  14. margin-top: 35px;
  15. }
  16. .form-top {
  17. overflow: hidden;
  18. padding: 0 25px 15px 25px;
  19. background: #fff;
  20. -moz-border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
  21. text-align: left;
  22. }
  23. .form-top-left {
  24. float: left;
  25. width: 75%;
  26. padding-top: 25px;
  27. }
  28. .form-top-left h3 { margin-top: 0;
  29. font-size: 22px;
  30. font-weight: 300;
  31. color: #555;
  32. line-height: 30px;}
  33. .form-top-right {
  34. float: left;
  35. width: 25%;
  36. padding-top: 5px;margin-top:15px;
  37. font-size: 66px;
  38. color: #ddd;
  39. text-align: right;
  40. }
  41. .form-bottom {
  42. padding: 25px 25px 30px 25px;
  43. background: #eee;
  44. -moz-border-radius: 0 0 4px 4px; -webkit-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
  45. text-align: left;
  46. }
  47. .form-bottom form textarea {
  48. height: 100px;
  49. }
  50. .form-bottom form button.btn {
  51. width: 100%;
  52. }
  53. .form-bottom form .input-error {
  54. border-color: #4aaf51;
  55. }
  56. .social-login {
  57. margin-top: 35px;
  58. }
  59. .social-login h3 {
  60. color: #fff;
  61. }
  62. .social-login-buttons {
  63. margin-top: 25px;
  64. }
  65. input[type="text"], input[type="password"], textarea, textarea.form-control {
  66. height: 50px;
  67. margin: 0;
  68. padding: 0 20px;
  69. vertical-align: middle;
  70. background: #f8f8f8;
  71. border: 3px solid #ddd;
  72. font-family: 'Roboto', sans-serif;
  73. font-size: 16px;
  74. font-weight: 300;
  75. line-height: 50px;
  76. color: #888;
  77. -moz-border-radius: 4px;
  78. -webkit-border-radius: 4px;
  79. border-radius: 4px;
  80. -moz-box-shadow: none;
  81. -webkit-box-shadow: none;
  82. box-shadow: none;
  83. -o-transition: all .3s;
  84. -moz-transition: all .3s;
  85. -webkit-transition: all .3s;
  86. -ms-transition: all .3s;
  87. transition: all .3s;
  88. }
  89. button.btn {
  90. height: 50px;
  91. margin: 0;
  92. padding: 0 20px;
  93. vertical-align: middle;
  94. background: #4aaf51;
  95. border: 0;
  96. font-family: 'Roboto', sans-serif;
  97. font-size: 16px;
  98. font-weight: 300;
  99. line-height: 50px;
  100. color: #fff;
  101. -moz-border-radius: 4px;
  102. -webkit-border-radius: 4px;
  103. border-radius: 4px;
  104. text-shadow: none;
  105. -moz-box-shadow: none;
  106. -webkit-box-shadow: none;
  107. box-shadow: none;
  108. -o-transition: all .3s;
  109. -moz-transition: all .3s;
  110. -webkit-transition: all .3s;
  111. -ms-transition: all .3s;
  112. transition: all .3s;
  113. }
  114. button.btn:hover { opacity: 0.6; color: #fff; }
  115. </style>
  116. <div class="container-fluid">
  117. <div class="row">
  118. <div class="col-sm-6 col-sm-offset-3 form-box">
  119. <div class="form-top">
  120. <div class="form-top-left">
  121. <h3>后台登录</h3>
  122. <p>请输入您的用户名、密码:</p>
  123. </div>
  124. <div class="form-top-right">
  125. <i class="glyphicon glyphicon-user"></i>
  126. </div>
  127. </div>
  128. <div class="form-bottom">
  129. <form method="post" action="/fladmin/dologin" class="login-form" role="form">
  130. {{ csrf_field() }}
  131. <div class="form-group">
  132. <label class="sr-only" for="form-username">Username</label>
  133. <input type="text" id="username" name="username" placeholder="用户名/邮箱/手机号..." class="form-username form-control">
  134. </div>
  135. <div class="form-group">
  136. <label class="sr-only" for="form-password">Password</label>
  137. <input type="password" id="pwd" name="pwd" placeholder="输入密码..." class="form-password form-control">
  138. </div>
  139. <button type="submit" class="btn">立即登录</button>
  140. </form>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <script>
  146. $('.login-form input[type="text"], .login-form input[type="password"], .login-form textarea').on('focus', function() {
  147. $(this).removeClass('input-error');
  148. });
  149. $('.login-form').on('submit', function(e) {
  150. $(this).find('input[type="text"], input[type="password"], textarea').each(function(){
  151. if( $(this).val() == "" ) {
  152. e.preventDefault();
  153. $(this).addClass('input-error');
  154. }
  155. else {
  156. $(this).removeClass('input-error');
  157. }
  158. });
  159. });
  160. </script>
  161. <script src="/js/bootstrap.min.js"></script></body></html>