81 lines
2.6 KiB
Plaintext
81 lines
2.6 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/webpage/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title>修改密码</title>
|
|
<meta name="decorator" content="default"/>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#oldPassword").focus();
|
|
});
|
|
|
|
function beforeSubmit(form){
|
|
//if(confirmx1('确认要修改密码吗?')){
|
|
// var checkUserName = $("#checkUserName").val();
|
|
// if(checkUserName == ''){
|
|
// alert('请填写用户名!');
|
|
// return false;
|
|
// }
|
|
//
|
|
var checkEmail = $("#checkEmail").val();
|
|
if(checkEmail == ''){
|
|
alert('请填写邮箱!');
|
|
return false;
|
|
}
|
|
|
|
// var confirmNewPassword = $("#confirmNewPassword").val();
|
|
// if(confirmNewPassword == ''){
|
|
// alert('请确认密码!');
|
|
// return false;
|
|
// }
|
|
// if(newPassword != confirmNewPassword) {
|
|
// alert('你两次输入的密码不一致,请重新输入!');
|
|
// //form.password2.focus();
|
|
// return false;
|
|
// }
|
|
//}
|
|
|
|
|
|
|
|
$("#inputForm").submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form:form id="inputForm" name="form" modelAttribute="user" action="${ctx}/sys/changePwd/sendEmail" onSubmit="return beforeSubmit" method="post" class="form-horizontal form-group">
|
|
<form:hidden path="id"/>
|
|
<sys:message hideType="1" content="${message}"/>
|
|
<div class="control-group">
|
|
</div>
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="control-group">
|
|
<label class="col-sm-3 control-label"><font color="red">*</font>邮箱名:</label>
|
|
<div class="controls">
|
|
<input id="checkEmail" name="checkEmail" type="text" value="" class="form-control max-width-250 required"/>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- <div class="control-group">
|
|
<label class="col-sm-3 control-label"><font color="red">*</font>验证码 :</label>
|
|
<div class="controls">
|
|
<input id="checkCode" name="checkCode" type="text" value="" class="form-control max-width-250 required"/>
|
|
<span>
|
|
<img src="${ctx}/sys/changePwd/createImg" onclick="this.setAttribute('src','${ctx}/sys/changePwd/createImg?x='+Math.random())" alt="验证码" title="点击更换" />
|
|
</span>
|
|
</div>
|
|
</div>--%>
|
|
<div style="margin-left: 100px;" class="control-group">
|
|
<input type="button" value="提交" maxlength="70" minlength="5" onclick="beforeSubmit();"/>
|
|
<input type="reset" value="重置" maxlength="70" minlength="5" />
|
|
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<input id="btnSubmit" class="btn btn-primary" type="submit" style="display:none" value="保 存"/>
|
|
</div>
|
|
</form:form>
|
|
</body>
|
|
</html> |