You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.0 KiB
Plaintext
82 lines
2.0 KiB
Plaintext
11 months ago
|
<!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>
|
||
|
<title>修改密码</title>
|
||
|
<link href="../Comm/Style/Table0.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="../Comm/JScript.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/bootstrap/js/jquery.min.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/bootstrap/js/bootstrap.min.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/QueryString.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/config.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
function onclick_btnSave(parameters) {
|
||
|
|
||
|
//debugger;
|
||
|
//获取控件值
|
||
|
var pwOld = $("#TB_OldPassword").val();
|
||
|
var pw1 = $("#TB_Password1").val();
|
||
|
var pw2 = $("#TB_Password2").val();
|
||
|
if (pw1 !== pw2) {
|
||
|
alert("两次密码不一致,请重现输入!");
|
||
|
return false;
|
||
|
}
|
||
|
if (pwOld === pw1) {
|
||
|
alert("新密码与原密码相同,请修改!");
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
//保存到服务器
|
||
|
$.ajax({
|
||
|
type: 'post',
|
||
|
async: true,
|
||
|
url: Handler + "?DoType=ChangePassword&m=" + Math.random(),
|
||
|
data: {
|
||
|
pwOld: pwOld,
|
||
|
pwNew: pw1
|
||
|
},
|
||
|
dataType: 'html',
|
||
|
success: function (data) {
|
||
|
alert(data);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div style="text-align: center; width: 750px;">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>
|
||
|
原密码
|
||
|
</td>
|
||
|
<td>
|
||
|
<input type="password" id="TB_OldPassword" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
新密码
|
||
|
</td>
|
||
|
<td>
|
||
|
<input type="password" id="TB_Password1" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
再次输入
|
||
|
</td>
|
||
|
<td>
|
||
|
<input type="password" id="TB_Password2" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2" style="text-align: center">
|
||
|
<button class="easyui-linkbutton" id="Btn_Save" onclick="onclick_btnSave()">
|
||
|
保存</button>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|