login.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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:url('{$background}');
  9. background-size:cover;
  10. }
  11. a {
  12. color:#fff;
  13. }
  14. .login-panel{margin-top:150px;}
  15. .login-screen {
  16. max-width:400px;
  17. padding:0;
  18. margin:100px auto 0 auto;
  19. }
  20. .login-screen .well {
  21. border-radius: 3px;
  22. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  23. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  24. background: rgba(255,255,255, 0.2);
  25. }
  26. .login-screen .copyright {
  27. text-align: center;
  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. margin: 10px auto;
  38. display: block;
  39. -moz-border-radius: 50%;
  40. -webkit-border-radius: 50%;
  41. border-radius: 50%;
  42. }
  43. .profile-name-card {
  44. text-align: center;
  45. }
  46. #login-form {
  47. margin-top:20px;
  48. }
  49. #login-form .input-group {
  50. margin-bottom:15px;
  51. }
  52. </style>
  53. </head>
  54. <body>
  55. <div class="container">
  56. <div class="login-wrapper">
  57. <div class="login-screen">
  58. <div class="well">
  59. <div class="login-form">
  60. <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png" />
  61. <p id="profile-name" class="profile-name-card"></p>
  62. <form action="" method="post" id="login-form">
  63. <div id="errtips" class="hide"></div>
  64. {:token()}
  65. <div class="input-group">
  66. <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
  67. <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username" />
  68. </div>
  69. <div class="input-group">
  70. <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
  71. <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password" />
  72. </div>
  73. {if $Think.config.fastadmin.login_captcha}
  74. <div class="input-group">
  75. <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
  76. <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length(4)" />
  77. <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
  78. <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
  79. </span>
  80. </div>
  81. {/if}
  82. <div class="form-group">
  83. <label class="inline" for="keeplogin">
  84. <input type="checkbox" name="keeplogin" id="keeplogin" value="1" />
  85. {:__('Keep login')}
  86. </label>
  87. </div>
  88. <div class="form-group">
  89. <button type="submit" class="btn btn-success btn-lg btn-block">{:__('Sign in')}</button>
  90. </div>
  91. </form>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. {include file="common/script" /}
  98. </body>
  99. </html>