?? password.jsp
字號:
<%@page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<title>User password change</title>
<link href="../css/common.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#FFFFFF">用戶面板>修改密碼</td>
</tr>
<tr>
<td bgcolor="#cccccc"> </td>
</tr>
</table>
<html:form action="/admin/password.do?action=save" onsubmit="javascript:return check_form(this);">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="43%" align="right"><bean:message key="message.password.old"/> :</td>
<td width="57%">
<html:password property="old_pwd"/><html:errors property="old_pwd"/>
</td>
</tr>
<tr>
<td width="43%" align="right"><bean:message key="message.password.new"/> :</td>
<td width="57%">
<html:password property="new_pwd"/><html:errors property="new_pwd"/>
</td>
</tr>
<tr>
<td width="43%" align="right"><bean:message key="message.password.confirm"/> :</td>
<td width="57%">
<html:password property="new_pwd2"/><html:errors property="new_pwd2"/>
</td>
</tr>
<tr align="center">
<td colspan="2">
<logic:present name="InfoTips" scope="request">
<div>
<bean:message key="message.login.status"/>
<bean:write name="InfoTips" property="tipsInfo"/>
</div>
</logic:present><br>
<html:submit>
<bean:message key="button.submit.value"/>
</html:submit>
<html:reset>
<bean:message key="button.reset.value"/>
</html:reset>
</td>
</tr>
</table>
</html:form>
</body>
</html>
<script Language="JavaScript">
function check_form(theForm){
if (theForm.old_pwd.value.length < 1) {
alert("Please add your old password!");
theForm.old_pwd.focus();
return (false);
}
if (theForm.new_pwd.value.length < 1) {
alert("Please add your new password!");
theForm.new_pwd.focus();
return (false);
}
if (theForm.new_pwd2.value != theForm.new_pwd.value) {
alert("Your new password is wrong!Repeat add new password");
theForm.new_pwd.focus();
return (false);
}
return true;
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -