modifyPW.htm 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>无标题文档</title>
  6. <script type="text/javascript">
  7. function savePW() {
  8. if (validator(pwForm)) {
  9. jQuery("#pwForm").ajaxSubmit({
  10. dataType : "json",
  11. success : function(data) {
  12. huimv.hideProcessModel();
  13. // 保存成功
  14. if (data.returnCode > 0) {
  15. Dialogs.close();
  16. Dialogs.alert("密码修改成功,请重新登录!", {
  17. title : "提示信息",
  18. width : 250,
  19. height : 80,
  20. top : 200,
  21. button: {
  22. ok: ["确定",function(){
  23. Dialogs.close();
  24. window.location.href = "login.htm";
  25. }]
  26. }
  27. });
  28. } else {
  29. Dialogs.alert(data.result, {
  30. title : "提示信息",
  31. width : 250,
  32. height : 80,
  33. top : 200
  34. });
  35. }
  36. },
  37. error : function(data) {
  38. huimv.showError(data.responseText);
  39. huimv.hideProcessModel();
  40. }
  41. });
  42. }
  43. }
  44. </script>
  45. </head>
  46. <body>
  47. <div id="htmlError"></div>
  48. <form name="pwForm" id="pwForm" method="post" action="savePW.htm">
  49. <input type="hidden" name="xtCzyh.id" value="$!yhid" />
  50. <table width="380" cellspacing="0" cellpadding="0" class="tabline">
  51. <tr>
  52. <td class="tdcolor1">新&nbsp;密&nbsp;码<span class="tip_star">*</span></td>
  53. <td class="tdcolor2">
  54. <input type="password" name="xtCzyh.yhmm" id="yhmm"
  55. value="$!xtCzyh.yhmm" class="noborder5" maxlength="20"
  56. valid="required" errmsg="新密码不能为空!"
  57. onfocus="this.className='input_on5';this.onmouseout=''"
  58. onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5'};" />
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="tdcolor1">确认密码<span class="tip_star">*</span></td>
  63. <td class="tdcolor2">
  64. <input type="password" name="xtCzyh.qrmm" id="qrmm"
  65. class="noborder5" maxlength="20"
  66. valid="required|equal" errmsg="确认密码不能为空!|确认密码和新密码不一致!" eqaulName="xtCzyh.yhmm"
  67. onfocus="this.className='input_on5';this.onmouseout=''"
  68. onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5'};" />
  69. </td>
  70. </tr>
  71. </table>
  72. <br />
  73. <div style="margin:0 auto; padding-top:55px; padding-left:160px;height:50px;">
  74. <div class="search">
  75. <ul>
  76. <li><a href="#" onclick="javascript:savePW();">保存</a></li>
  77. </ul>
  78. </div>
  79. </div>
  80. </form>
  81. </body>
  82. </html>