login.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <filter><script src="../../lib/common.js"></script><script src="../../lib/jquery/jquery.min.js"></script></filter>
  5. <script class="include" system="" path="inc/" file="head">include()</script>
  6. <style>
  7. .form-control
  8. {
  9. width: 100%;
  10. }
  11. </style>
  12. </head>
  13. <body class="theme-blue">
  14. <div class="navbar navbar-default" role="navigation">
  15. <div class="navbar-header">
  16. <a class="" href="#"><span class="navbar-brand" id="name">Aircraft</span></a></div>
  17. <div class="navbar-collapse collapse" style="height: 1px;">
  18. </div>
  19. </div>
  20. </div>
  21. <div class="dialog">
  22. <div class="panel panel-default">
  23. <p class="panel-heading no-collapse">账户登录</p>
  24. <div class="panel-body">
  25. <form action="/auth.login" method="post" target="f1" class="am-form" id="login">
  26. <input type="hidden" name="function" id="function" value="msg">
  27. <input type="hidden" name="refer" id="refer" value="">
  28. <iframe id="f1" name="f1" style="display:none;"></iframe>
  29. <div class="form-group">
  30. <label>账号</label>
  31. <input type="text" name="username" class="form-control span12">
  32. </div>
  33. <div class="form-group">
  34. <label>密码</label>
  35. <input type="password" name="password" class="form-controlspan12 form-control">
  36. </div>
  37. <a href="javascript:;" onclick="$('#login').submit()" class="btn btn-primary pull-right">登录</a>
  38. <label class="remember-me"><input type="checkbox" checked="true"> 记住密码</label>
  39. <div class="clearfix"></div>
  40. </form>
  41. </div>
  42. </div>
  43. <p class="pull-right" style="font-size: .75em; margin-top: .25em;" id="footer" >Design by Portnine</p>
  44. <p style="display:none;"><a href="reset-password.html">Forgot your password?</a></p>
  45. </div>
  46. <script class="include" system="" path="inc/" file="script">include()</script>
  47. <script>
  48. $(function()
  49. {
  50. $("#login").bind("keydown",function(e){
  51. var theEvent = e || window.event;
  52. var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  53. if (code == 13) {
  54. $("#login").submit();
  55. }
  56. });
  57. });
  58. </script>
  59. </body>
  60. </html>