user-reset-password.jsp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [#ftl]
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>重置密码</title>
  7. <!--框架必需start-->
  8. <script type="text/javascript" src="${ctx}/qui/libs/js/jquery.js"></script>
  9. <script type="text/javascript" src="${ctx}/qui/libs/js/framework.js"></script>
  10. <link href="${ctx}/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="${ctx}/qui/"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!-- 表单验证start -->
  15. <link rel="stylesheet"
  16. href="${ctx}/qui/libs/js/form/validform/css/style.css" type="text/css"
  17. media="all" />
  18. <script src="${ctx}/qui/libs/js/form/validform/validform.js"
  19. type="text/javascript"></script>
  20. <!-- 表单验证end -->
  21. </head>
  22. <body>
  23. <form id="editForm" action="${ctx}/user/resetPwdData.do" method="post" target="frmright" failAlert="表单填写不正确,请按要求填写!">
  24. <div class="box1" panelWidth="650">
  25. <fieldset>
  26. <legend>重置密码</legend>
  27. <table class="tableStyle" formMode="transparent" footer="normal">
  28. <tr>
  29. <td width="15%">密码:</td><td width="35%"><input id="password" name="password" type="password" value="" datatype="*6-16" nullmsg="请输入密码!" /><span class="star">*</span></td>
  30. <td width="15%">确认密码:</td><td><input id="passwordConfirm" type="password" value="" datatype="*6-16" recheck="password" nullmsg="请输入确认密码!" /><span class="star">*</span></td>
  31. </tr>
  32. </table>
  33. </fieldset>
  34. <div class="padding_top10">
  35. <table class="tableStyle" formMode="transparent">
  36. <tr>
  37. <td colspan="4">
  38. <input type="submit" value="提交"/>
  39. <input type="button" value="取消" onclick="top.Dialog.close()"/>
  40. </td>
  41. </tr>
  42. </table>
  43. </div>
  44. </div>
  45. </form>
  46. <!-- 异步提交start -->
  47. <script type="text/javascript">
  48. function initComplete(){
  49. //表单提交
  50. $("#editForm").Validform({
  51. tiptype:3,//表示在右边显示
  52. ajaxPost:true,
  53. showAllError:true,
  54. callback:function(responseText){
  55. $.Hidemsg();
  56. if(responseText.status=="y"){
  57. top.Dialog.confirm(responseText.info+" 是否重新登录?",function(){
  58. return top.location.href='${ctx}/logout.do';
  59. });
  60. }else{
  61. top.Dialog.alert(responseText.info,function(){
  62. return false;
  63. });
  64. }
  65. }
  66. });
  67. }
  68. </script>
  69. <!-- 异步提交end -->
  70. </body>
  71. </html>