12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>无标题文档</title>
- <script type="text/javascript">
- function savePW() {
- if (validator(pwForm)) {
- jQuery("#pwForm").ajaxSubmit({
- dataType : "json",
- success : function(data) {
- huimv.hideProcessModel();
- // 保存成功
- if (data.returnCode > 0) {
- Dialogs.close();
- Dialogs.alert("密码修改成功,请重新登录!", {
- title : "提示信息",
- width : 250,
- height : 80,
- top : 200,
- button: {
- ok: ["确定",function(){
- Dialogs.close();
- window.location.href = "login.htm";
- }]
- }
- });
- } else {
- Dialogs.alert(data.result, {
- title : "提示信息",
- width : 250,
- height : 80,
- top : 200
- });
- }
- },
- error : function(data) {
- huimv.showError(data.responseText);
- huimv.hideProcessModel();
- }
- });
- }
- }
- </script>
- </head>
- <body>
- <div id="htmlError"></div>
- <form name="pwForm" id="pwForm" method="post" action="savePW.htm">
- <input type="hidden" name="xtCzyh.id" value="$!yhid" />
- <table width="380" cellspacing="0" cellpadding="0" class="tabline">
- <tr>
- <td class="tdcolor1">新 密 码<span class="tip_star">*</span></td>
- <td class="tdcolor2">
- <input type="password" name="xtCzyh.yhmm" id="yhmm"
- value="$!xtCzyh.yhmm" class="noborder5" maxlength="20"
- valid="required" errmsg="新密码不能为空!"
- onfocus="this.className='input_on5';this.onmouseout=''"
- onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5'};" />
- </td>
- </tr>
- <tr>
- <td class="tdcolor1">确认密码<span class="tip_star">*</span></td>
- <td class="tdcolor2">
- <input type="password" name="xtCzyh.qrmm" id="qrmm"
- class="noborder5" maxlength="20"
- valid="required|equal" errmsg="确认密码不能为空!|确认密码和新密码不一致!" eqaulName="xtCzyh.yhmm"
- onfocus="this.className='input_on5';this.onmouseout=''"
- onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5'};" />
- </td>
- </tr>
- </table>
- <br />
- <div style="margin:0 auto; padding-top:55px; padding-left:160px;height:50px;">
- <div class="search">
- <ul>
- <li><a href="#" onclick="javascript:savePW();">保存</a></li>
- </ul>
- </div>
- </div>
- </form>
- </body>
- </html>
|