login.html 3.8 KB

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