login.html 5.3 KB

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