login.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html lang="{$config.language}">
  3. <head>
  4. {include file="common/meta" /}
  5. <style type="text/css">
  6. body {
  7. color: #999;
  8. background-color: #f1f4fd;
  9. background-size: cover;
  10. }
  11. a {
  12. color: #444;
  13. }
  14. .login-screen {
  15. max-width: 430px;
  16. padding: 0;
  17. margin: 100px auto 0 auto;
  18. }
  19. .login-screen .well {
  20. border-radius: 3px;
  21. -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  22. box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  23. background: rgba(255, 255, 255, 1);
  24. border: none;
  25. overflow: hidden;
  26. padding: 0;
  27. }
  28. @media (max-width: 767px) {
  29. .login-screen {
  30. padding: 0 20px;
  31. }
  32. }
  33. .profile-img-card {
  34. width: 100px;
  35. height: 100px;
  36. display: block;
  37. -moz-border-radius: 50%;
  38. -webkit-border-radius: 50%;
  39. border-radius: 50%;
  40. margin: -93px auto 30px;
  41. border: 5px solid #fff;
  42. }
  43. .profile-name-card {
  44. text-align: center;
  45. }
  46. .login-head {
  47. background: #899fe1;
  48. }
  49. .login-form {
  50. padding: 40px 30px;
  51. position: relative;
  52. z-index: 99;
  53. }
  54. #login-form {
  55. margin-top: 20px;
  56. }
  57. #login-form .input-group {
  58. margin-bottom: 15px;
  59. }
  60. #login-form .form-control {
  61. font-size: 13px;
  62. }
  63. </style>
  64. <!--@formatter:off-->
  65. {if $background}
  66. <style type="text/css">
  67. body{
  68. background-image: url('{$background}');
  69. }
  70. </style>
  71. {/if}
  72. <!--@formatter:on-->
  73. </head>
  74. <body>
  75. <div class="container">
  76. <div class="login-wrapper">
  77. <div class="login-screen">
  78. <div class="well">
  79. <div class="login-head">
  80. <img src="__CDN__/assets/img/login-head.png" style="width:100%;"/>
  81. </div>
  82. <div class="login-form">
  83. <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png"/>
  84. <p id="profile-name" class="profile-name-card"></p>
  85. <form action="" method="post" id="login-form">
  86. <div id="errtips" class="hide"></div>
  87. {:token()}
  88. <div class="input-group">
  89. <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
  90. <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
  91. </div>
  92. <div class="input-group">
  93. <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
  94. <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
  95. </div>
  96. {if $Think.config.fastadmin.login_captcha}
  97. <div class="input-group">
  98. <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
  99. <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length(4)"/>
  100. <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
  101. <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
  102. </span>
  103. </div>
  104. {/if}
  105. <div class="form-group checkbox">
  106. <label class="inline" for="keeplogin">
  107. <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
  108. {:__('Keep login')}
  109. </label>
  110. </div>
  111. <div class="form-group">
  112. <button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
  113. </div>
  114. </form>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. {include file="common/script" /}
  121. </body>
  122. </html>