login.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html>
  2. <html>
  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. border-radius: 3px 3px 0 0;
  49. }
  50. .login-form {
  51. padding: 40px 30px;
  52. position: relative;
  53. z-index: 99;
  54. }
  55. #login-form {
  56. margin-top: 20px;
  57. }
  58. #login-form .input-group {
  59. margin-bottom: 15px;
  60. }
  61. #login-form .form-control {
  62. font-size: 13px;
  63. }
  64. </style>
  65. <!--@formatter:off-->
  66. {if $background}
  67. <style type="text/css">
  68. body{
  69. background-image: url('{$background}');
  70. }
  71. </style>
  72. {/if}
  73. <!--@formatter:on-->
  74. </head>
  75. <body>
  76. <div class="container">
  77. <div class="login-wrapper">
  78. <div class="login-screen">
  79. <div class="well">
  80. <div class="login-head">
  81. <img src="__CDN__/assets/img/login-head.png" style="width:100%;"/>
  82. </div>
  83. <div class="login-form">
  84. <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png"/>
  85. <p id="profile-name" class="profile-name-card"></p>
  86. <form action="" method="post" id="login-form">
  87. <!--@AdminLoginFormBegin-->
  88. <div id="errtips" class="hide"></div>
  89. {:token()}
  90. <div class="input-group">
  91. <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
  92. <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
  93. </div>
  94. <div class="input-group">
  95. <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
  96. <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
  97. </div>
  98. <!--@CaptchaBegin-->
  99. {if $Think.config.fastadmin.login_captcha}
  100. <div class="input-group">
  101. <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
  102. <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
  103. <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
  104. <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
  105. </span>
  106. </div>
  107. {/if}
  108. <!--@CaptchaEnd-->
  109. {if $keeyloginhours>0}
  110. <div class="form-group checkbox">
  111. <label class="inline" for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
  112. <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
  113. {:__('Keep login')}
  114. </label>
  115. </div>
  116. {/if}
  117. <div class="form-group">
  118. <button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
  119. </div>
  120. <!--@AdminLoginFormEnd-->
  121. </form>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. {include file="common/script" /}
  128. </body>
  129. </html>