login.ftl 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <#include "layout/header.ftl"/>
  5. <#include "layout/common.cssjs.ftl"/>
  6. <script type="text/javascript">
  7. $(function(){
  8. <#if true==isCaptcha>
  9. $('#j_captchaimg').click(function () {//
  10. $(this).attr("src", "<@base />/captcha");
  11. });
  12. </#if>
  13. });
  14. </script>
  15. </head>
  16. <body >
  17. <#include "layout/nologintop.ftl"/>
  18. <div class="wrapper-page">
  19. <div class="container">
  20. <div class="row justify-content-center">
  21. <div class="col-lg-5 col-md-12 col-xs-12">
  22. <div class="card">
  23. <div class="card-header border-bottom text-center">
  24. <h4 class="card-title">
  25. <locale code="login.text.login.normal" />
  26. </h4>
  27. </div>
  28. <div class="card-body">
  29. <form class="form-horizontal m-t-20" id="loginForm" name="loginForm" action="<@base />/logon.do" method="post">
  30. <div class="form-group">
  31. <span class="input-group-addon"><i class="fa fa-user"></i></span>
  32. <input id='j_username' name='username' value="admin" class="form-control" type="text" required="" placeholder="<@locale code="login.text.username"/>">
  33. </div>
  34. <div class="form-group">
  35. <span class="input-group-addon"><i class="fa fa-key"></i></span>
  36. <input id='j_password' name='password' class="form-control" type="password" required="" placeholder="<@locale code="login.text.password"/>">
  37. </div>
  38. <div class="form-group">
  39. <input id="j_captcha" name="captcha" class="form-control" value="" type="text" required="" placeholder="<@locale code="login.text.captcha"/>">
  40. <img id="j_captchaimg" src="<@base/>/captcha" />
  41. </div>
  42. <div class="form-group text-center m-t-20">
  43. <input type="hidden" name="authType" value="basic" />
  44. <input type='hidden' id="sessionid" name="sessionId" value="${sessionid}" />
  45. <button id="loginSubmit" class="button btn-primary btn btn-common btn-block" type="submit">
  46. <@locale code="login.button.login" />
  47. </button>
  48. </div>
  49. <div class="form-group">
  50. <div class="float-right">
  51. Locale : <@locale/>
  52. <a href="<@basePath />/login?language=en">
  53. <@locale code="global.change.language.en" />
  54. </a>
  55. |
  56. <a href="<@basePath />/login?language=zh_CN">
  57. <@locale code="global.change.language.zh" />
  58. </a>
  59. </div>
  60. <div class="float-left">
  61. <@locale code="global.change.language" />:
  62. </div>
  63. </div>
  64. </form>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div id="preloader">
  72. <div class="loader" id="loader-1"></div>
  73. <#include "layout/footer.ftl"/>
  74. </div>
  75. </body>
  76. </html>