login.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>水猫工匠</title>
  6. <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
  7. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  8. <meta name="robots" content="noindex,nofollow">
  9. <!-- HTML5 shim for IE8 support of HTML5 elements -->
  10. <!--[if lt IE 9]>
  11. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  12. <![endif]-->
  13. <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/bootstrap.min.css" rel="stylesheet">
  14. <link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  15. <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/login.css" rel="stylesheet">
  16. <!--[if lt IE 9]>
  17. <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  18. <![endif]-->
  19. <script>
  20. if (window.parent !== window.self) {
  21. document.write = '';
  22. window.parent.location.href = window.self.location.href;
  23. setTimeout(function () {
  24. document.body.innerHTML = '';
  25. }, 0);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <div class="wrap">
  31. <div class="container">
  32. <div class="row">
  33. <div class="col-md-4 col-md-offset-4">
  34. <h1 class="text-center">ThinkCMF</h1>
  35. <form class="js-ajax-form" action="{:url('public/doLogin')}" method="post">
  36. <div class="form-group">
  37. <input type="text" id="input_username" class="form-control" name="username"
  38. placeholder="{:lang('USERNAME_OR_EMAIL')}" title="{:lang('USERNAME_OR_EMAIL')}"
  39. value="{:cookie('admin_username')}" data-rule-required="true" data-msg-required="">
  40. </div>
  41. <div class="form-group">
  42. <input type="password" id="input_password" class="form-control" name="password"
  43. placeholder="{:lang('PASSWORD')}" title="{:lang('PASSWORD')}" data-rule-required="true"
  44. data-msg-required="">
  45. </div>
  46. <div class="form-group">
  47. <div style="position: relative;">
  48. <input type="text" name="captcha" placeholder="验证码" class="form-control captcha">
  49. <captcha height="32" width="150" font-size="18"
  50. style="cursor: pointer;position:absolute;right:1px;top:1px;"/>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <input type="hidden" name="redirect" value="">
  55. <button class="btn btn-primary btn-block js-ajax-submit" type="submit" style="margin-left: 0px"
  56. data-loadingmsg="{:lang('LOADING')}">
  57. {:lang('LOGIN')}
  58. </button>
  59. </div>
  60. </form>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <script type="text/javascript">
  66. //全局变量
  67. var GV = {
  68. ROOT: "__ROOT__/",
  69. WEB_ROOT: "__WEB_ROOT__/",
  70. JS_ROOT: "static/js/",
  71. APP: ''/*当前应用名*/
  72. };
  73. </script>
  74. <script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
  75. <script src="__STATIC__/js/wind.js"></script>
  76. <script src="__STATIC__/js/admin.js"></script>
  77. <script>
  78. (function () {
  79. document.getElementById('input_username').focus();
  80. })();
  81. </script>
  82. </body>
  83. </html>