山东众工仓储管理系统后台程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index1.jsp 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: dell
  4. Date: 2017-06-14
  5. Time: 9:11
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
  9. <%
  10. String path = request.getContextPath();
  11. String basePath = request.getScheme() + "://"
  12. + request.getServerName() + ":" + request.getServerPort()
  13. + path ;
  14. %>
  15. <!DOCTYPE HTML >
  16. <html>
  17. <head>
  18. <title>国际物流信息管理系统123</title>
  19. <meta charset="UTF-8">
  20. <link rel="stylesheet" type="text/css"
  21. href="themes/default/easyui.css">
  22. <link rel="stylesheet" type="text/css" href="themes/icon.css">
  23. <!--Test-->
  24. <link href="themes/style.css" rel='stylesheet' type='text/css' />
  25. <meta name="viewport" content="width=device-width, initial-scale=1">
  26. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  27. <meta name="keywords" content="timer Sign In Form,Login Forms,Sign up Forms,Registration Forms,News latter Forms,Elements"./>
  28. <script type="application/x-javascript">
  29. function foces() {//光标定位
  30. document.getElementById("username").focus();
  31. };
  32. function keyLogin(){
  33. if (event.keyCode==13){ //回车键的键值为13
  34. //document.getElementByIdx_x("btnLogin").click(); //调用登录按钮的登录事件
  35. if(!$('#username').validatebox('isValid')){
  36. $('#username').focus();
  37. }else if(!$('#password').validatebox('isValid')){
  38. $('#password').focus();
  39. }else {
  40. $.ajax({
  41. url : 'SysLogin/login.do',
  42. type :'post',
  43. data :{
  44. username :$('#username').val(),
  45. password :$('#password').val(),
  46. },
  47. beforeSend :function () {
  48. $.messager.progress({
  49. text:'正在登录中……',
  50. });
  51. },
  52. success:function (data,response,status) {
  53. $.messager.progress('close');
  54. if (data=='password') {
  55. $.messager.alert('登录失败','密码错误!','warnning',function () {
  56. $('#password').select();
  57. });
  58. }else if (data=='username'){
  59. $.messager.alert('登录失败','用户不存在!','warnning',function () {
  60. $('#password').select();
  61. });
  62. }else {
  63. location.href = 'SysParent/show.do';
  64. }
  65. },
  66. });
  67. }
  68. }else{
  69. }
  70. }
  71. </script>
  72. <!--End -->
  73. <script type="text/javascript" src="js/jquery.min.js"></script>
  74. <script type="text/javascript" src="js/jquery.easyui.min.js"></script>
  75. <script type="text/javascript" src="js/login.js"></script>
  76. <style>
  77. p {
  78. height :22px;
  79. line-height: 22px;
  80. padding: 10px 0 0 0;
  81. text-align: center;
  82. }
  83. .textbox{
  84. height:22px;
  85. padding:0 2px 0 0 ;
  86. }
  87. </style>
  88. </head>
  89. <body onkeydown="keyLogin();">
  90. <h1>国际物流信息管理系统</h1>
  91. <div class="app-timer">
  92. <div class="timer"><img src="pic/timer.png" class="img-responsive" alt="" /></div>
  93. <form>
  94. <ul>
  95. <li>
  96. <a href="#" class=" icon email"></a>
  97. <input id="username" type="text" class = "textbox" placeholder="请输入账号"/>
  98. </li>
  99. <li>
  100. <a href="#" class=" icon lock"></a>
  101. <input id="password" type="password" class = "textbox" placeholder="请输入密码"/>
  102. </li>
  103. <div class="clear"></div>
  104. <div class="submit" id = "btnLogin" >
  105. <a href="#" class="easyui-linkbutton" ><span style="font-size: 22px">登录</span></a>
  106. </div>
  107. <div class="clear"></div>
  108. <p><a href="#"></a></p>
  109. </ul>
  110. </form>
  111. <div class="whyt"><p>国际物流信息管理系统<a onclick="foces()" href="#">请登陆</a></p></div>
  112. </div>
  113. <!--start-copyright-->
  114. <div class="copy-right">
  115. <p>Copyright &copy; 2018 All rights Reserved | &nbsp;<a href="#">.山东钢铁集团有限公司.</a></p>
  116. </div>
  117. <!--//end-copyright-->
  118. </body>
  119. </html>