login.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. <!--@AdminLoginFormBegin-->
  87. <div id="errtips" class="hide"></div>
  88. {:token()}
  89. <div class="input-group">
  90. <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
  91. <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
  92. </div>
  93. <div class="input-group">
  94. <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
  95. <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
  96. </div>
  97. <!--@CaptchaBegin-->
  98. {if $Think.config.fastadmin.login_captcha}
  99. <div class="input-group">
  100. <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
  101. <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
  102. <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
  103. <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
  104. </span>
  105. </div>
  106. {/if}
  107. <!--@CaptchaEnd-->
  108. <div class="form-group checkbox">
  109. <label class="inline" for="keeplogin">
  110. <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
  111. {:__('Keep login')}
  112. </label>
  113. </div>
  114. <div class="form-group">
  115. <button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
  116. </div>
  117. <!--@AdminLoginFormEnd-->
  118. </form>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. {include file="common/script" /}
  125. </body>
  126. </html>