⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modifypassword.jsp

📁 eNews新闻发布系统 JSP+Struts+JSTL+EL+mysql
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/aqu" prefix="aqu" %>
<c:set value="${aqu:getUrl()}/admin/login.jsp" var="url"/>
<c:if test="${sessionScope.admin==null||sessionScope.admin!='yes'}">
	<c:redirect url="${url}"/>
</c:if>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>修改密码</title>
</head>

<body>
 
<FORM name=form1 onsubmit="return check()" action="modifyPassword_validate.jsp" method="post"><div align="center"> <table width="768" border="0"> 
  <!--DWLayoutTable-->
  <tr> 
      <td width="762" height="1016" valign="top"><div align="center"> 

            <table width="39%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
              <!--DWLayoutTable-->
              <tr align="center" bgcolor="#f6f6f6"> 
                <td colspan="2"><b>修改密码</b></td>
              </tr>
              <tr align="center" bgcolor="#FFFFFF"> 
                <td><div align="right">原密码:</div></td>
                <td><input name="formerPassword" type="text" id="formerPassword"></td>
              </tr>
              <tr align="center" bgcolor="#FFFFFF"> 
                <td width="36%"><div align="right">新密码:</div></td>
                <td width="64%"><input name="newPassword" type="text" id="newPassword" ></td>
              </tr>
              <tr align="center" bgcolor="#FFFFFF"> 
                <td>确认新密码:</td>
                <td> <div align="center">
                    
                <input name="againNewPassword2" type="password" id="againNewPassword2" >
                  </div></td>
              </tr>
              <tr align="center" bgcolor="#FFFFFF">
                <td><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td><div align="right">
                    <input name="submit" type="reset" value="重置" src="img/index.login.gif" width="50" height="22" border="0" >
                      
                    <input name="submit2" type="submit" value="提交" src="img/index.login.gif" width="50" height="22" border="0" >
                  </div></td>
              </tr>
            </table>
        </div></td>
</form>
<SCRIPT language=JavaScript type=text/JavaScript>
function check()
{

	if(document.form1.formerPassword.value=='')
	{
		alert('原密码不能为空');
		document.form1.formerPassword.focus();
		return false;
	}
	if(document.form1.newPassword.value=='')
	{
		alert('新密码不能为空');
		document.form1.newPassword.focus();
		return false;
	}
	if(document.form1.newPassword.value.length<6||document.form1.newPassword.value.length>15)
	{
		alert('密码位数不能大于15小于6');
		document.form1.newPassword.value='';
		document.form1.newPassword.focus();
		return false;
	}
	if(document.form1.newPassword.value!=document1.form1.againNewPassword.value)
	{
		alert('两次输入密码不同,请重新输入');
		document.form1.againPassword.value=='';
		document.form1.againPassword.focus();
		return false;
	}
}
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -