5c33c731681e4e45fcdf697d487a84ced2684492.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <title></title>
  10. <!--框架必需start-->
  11. <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
  12. <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
  13. <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
  14. <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  15. <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
  16. <link rel="stylesheet" type="text/css" id="customSkin"/>
  17. <!--框架必需end-->
  18. </head>
  19. <body style="overflow:hidden;">
  20. <div id="screenLock" class="screenLock">
  21. <form>
  22. <table width="100%">
  23. <tr>
  24. <td class="ali03">登录密码解锁:</td>
  25. <td><input type="password" id="lockInput"/>
  26. <input type="text" style="width:2px;display:none;"/>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td ></td>
  31. <td><span id="passInfo" class="red"></span></td>
  32. </tr>
  33. </table>
  34. </form>
  35. </div>
  36. <script>
  37. //手动触发验证
  38. $(function(){
  39. $("#lockInput").val("");
  40. $("#lockInput").keydown(function(event){
  41. if(event.keyCode==13){
  42. validateForm();
  43. }
  44. })
  45. })
  46. function validateForm(){
  47. var password = $("#lockInput").val();
  48. if(password==""){
  49. $("#passInfo").text("密码不能为空");
  50. }
  51. else{
  52. $.post("<%=path%>/userAction.do?method=unlockScreen",{"password":password},function(result){
  53. if(result.isPass){
  54. $("#passInfo").text("");
  55. top.Dialog.close();
  56. }else{
  57. $("#passInfo").text("密码错误");
  58. }
  59. });
  60. }
  61. }
  62. </script>
  63. </body>
  64. </html>