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

📄 updatepwd.jsp

📁 利用java编写的一个学生宿舍管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"  %>
<%
if(session.getAttribute("admin")==null)
     out.print("<script>alert('请先登录!');window.location.href='login.htm'</script>");
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改管理员密码</title>
<link href="css/mycss.css" rel="stylesheet" type="text/css">
<SCRIPT Language="JavaScript">
<!--
//下面的副程序将执行资料检查
function datacheck()
{
   //下面的if判断语句将检查是否输入帐号资料
   if(form.password.value=="")
   {
      //显示错误信息
      alert("请输入原密码!");
      //将光标移至原密码输入栏
      document.form.elements(0).focus();
    }else{
       if(form.password1.value=="")
       {
         alert("请输入新密码!");
         document.form.elements(1).focus();
       }else{
	      if(form.password2.value=="")
		  {
			 alert("请输入确认密码!");
			 document.form.elements(2).focus();
		  }else{
		     form.submit();//送出表单中的资料
	       }
        }
     }
 }										  
-->
</script>
</head>

<body>
<%@ include file="head.htm" %>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<form action="/MyDesign/UpdatePWD" method="post" name="form" id="form">
  <table width="27%" border="1" align="center" cellspacing="0" bordercolor="#660000" bgcolor="#CCCCCC">
    <tr> 
      <td height="62" colspan="2"> <div align="center"> 
          <p><font color="#660000"><strong><font size="5">修改管理员密码</font><font size="5"></font></strong></font></p>
        </div></td>
    </tr>
    <tr> 
      <td width="40%" height="20"><div align="center"><font color="#660000">原密码<font color="#990000">*</font><strong> 
          </strong></font></div></td>
      <td width="60%"><font color="#660000"><strong> 
        <input name="password" type="password" id="password" size="10" maxlength="6">
        </strong></font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">新密码<font color="#990000">*</font></font></div></td>
      <td><font color="#660000"><strong> 
        <input name="password1" type="password" id="password1" size="10" maxlength="6">
        </strong></font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">确认新密码<font color="#990000">*</font></font></div></td>
      <td><font color="#660000"><strong> 
        <input name="password2" type="password" id="password2" size="10" maxlength="6">
        </strong></font></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="center"><font color="#660000"><strong> 
          <input type="button" name="Submit" value="修改" onclick="datacheck()">
          &nbsp;&nbsp; 
          <input type="reset" name="Submit2" value="重置">
          </strong></font></div></td>
    </tr>
  </table>
  </form>
</body>
</html>

⌨️ 快捷键说明

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