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.

109 lines
4.1 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>修改密码</title>
<link href="../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="../Scripts/bootstrap/css/font-awesome.css" rel="stylesheet">
<link href="../Style/skin/css/style.css" rel="stylesheet" type="text/css" />
<link href="../Style/skin/css/animate.css" rel="stylesheet" type="text/css" />
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>
修改密码</h5>
</div>
<div class="ibox-content">
<form class="form-horizontal" id="cc">
<div class="form-group">
<label class="col-sm-3 control-label">
旧密码</label>
<div class="col-sm-8">
<input type="password" id="TB_PWOld" name="TB_PWOld" class="form-control" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
新密码</label>
<div class="col-sm-8">
<input type="password" id="TB_PW1" name="TB_PW1" class="form-control" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
确认新密码</label>
<div class="col-sm-8">
<input type="password" id="TB_PW2" name="TB_PW" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-8">
<button class="btn btn-info" type="submit" onclick="Submint()">
保存</button>
<a class="btn btn-white" href="Default.htm">返回</a>
</div>
</div>
</form>
</div>
</div>
<div id="Msg">
</div>
</div>
<script type="text/javascript" src="../Scripts/bootstrap/js/jquery.min.js"></script>
<script src="../Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="../Scripts/QueryString.js" type="text/javascript"></script>
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../Scripts/config.js"></script>
<script type="text/javascript" src="../Comm/Gener.js"></script>
<script type="text/javascript" language="javascript">
function ChangeDept_Submit() {
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Setting");
handler.AddPara("DeptNo", deptNo);
var data = handler.DoMethodReturnString("ChangePassword_Init");
if (data.indexOf('err@') == 0) {
$("#Msg").html("<font color=red>" + data + "</font>");
return;
}
}
function Submint() {
var val1 = document.getElementById('TB_PW1').value;
var val2 = document.getElementById('TB_PW2').value;
var oldPass = document.getElementById('TB_PWOld').value;
if (val1 != val2) {
alert('err@两次密码不一致.');
return;
}
if (val1 == "") {
alert('err@新密码不能为空');
return;
}
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Setting");
handler.AddPara("TB_PW", oldPass);
handler.AddPara("Pass", val1);
var data = handler.DoMethodReturnString("ChangePassword_Submit");
if (data.indexOf('err@') == 0) {
alert(data);
$("#Msg").html("<font color=red>" + data + "</font>");
return;
}
alert(data);
Reload();
}
</script>
</body>
</html>