sysUserModifyPwdView.jsp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <%--
  2. time:2011-11-28 10:17:09
  3. --%>
  4. <%@ page language="java" contentType="text/html; charset=UTF-8"
  5. pageEncoding="UTF-8"%>
  6. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  7. <%@include file="/commons/include/html_doctype.html"%>
  8. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12. <title>修改密码</title>
  13. <%@include file="/commons/include/form.jsp" %>
  14. <script type="text/javascript" src="${ctx}/servlet/ValidJs?form=sysUser"></script>
  15. <script type="text/javascript">
  16. $(function() {
  17. function showRequest(formData, jqForm, options) {
  18. var newPassword=$("#newPassword").val();
  19. var repeatPassword=$("#repeatPassword").val();
  20. if(newPassword!=repeatPassword){
  21. $.ligerDialog.error("两次输入的密码不一致",'出错了');
  22. return false;
  23. }
  24. return true;
  25. }
  26. function showResponse(responseText, statusText) {
  27. var obj=new com.hotent.form.ResultMessage(responseText);
  28. if(obj.isSuccess()){//成功
  29. $.ligerDialog.success(obj.getMessage(),'提示信息');
  30. }else{//失败
  31. $.ligerDialog.err('出错信息',"修改密码失败",obj.getMessage());
  32. }
  33. }
  34. valid(showRequest,showResponse);
  35. $("a.save").click(function() {
  36. $('#sysUserForm').submit();
  37. });
  38. });
  39. </script>
  40. </head>
  41. <body>
  42. <div class="panel">
  43. <div class="panel-top">
  44. <div class="tbar-title">
  45. <span class="tbar-label">修改密码</span>
  46. </div>
  47. <div class="panel-toolbar">
  48. <div class="toolBar">
  49. <div class="group"><a class="link save" id="dataFormSave"><span></span>保存</a></div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="panel-body">
  54. <form id="sysUserForm" method="post" action="modifyPwd.ht">
  55. <div class="panel-detail">
  56. <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
  57. <tr>
  58. <th width="20%">帐号:<span> </span></th>
  59. <td>${sysUser.account}</td>
  60. </tr>
  61. <tr>
  62. <th width="20%">用户名:<span> </span></th>
  63. <td>${sysUser.fullname}</td>
  64. </tr>
  65. <tr>
  66. <th width="20%">原始密码: <span class="required">*</span></th>
  67. <td ><input type="password" id="primitivePassword" autocomplete="off" name="primitivePassword" style="width:255px !important" class="inputText"/></td>
  68. </tr>
  69. <tr>
  70. <th width="20%">修改密码: <span class="required">*</span></th>
  71. <td ><input type="password" autocomplete="off" id="newPassword" name="newPassword" style="width:255px !important" class="inputText"/></td>
  72. </tr>
  73. <tr>
  74. <th width="20%">重复密码: <span class="required">*</span></th>
  75. <td ><input type="password" autocomplete="off" id="repeatPassword" name="repeatPassword" style="width:255px !important" class="inputText"/></td>
  76. </tr>
  77. </table>
  78. <input type="hidden" name="userId" value="${userId}" />
  79. </div>
  80. </form>
  81. </div>
  82. </div>
  83. </body>
  84. </html>