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

📄 stumessmod.jsp

📁 高校科研论文管理系统 (cskang@126.com)
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改密码</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
body {
	background-image: url(image/bg_002.gif);
}
-->
</style></head>

<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
  if (document.form1.sPass.value=="")
  {
    alert("密码不能为空!");
    document.form1.sPass.focus();
    return false;
  }
  else if (document.form1.sPassagn.value=="")
  {
    alert("再次输入密码!");
    document.form1.sPassagn.focus();
    return false;
  }
  else if (document.form1.sPass.value!=document.form1.sPassagn.value)
  {
    alert("两次密码不同!");
    document.form1.sPass.focus();
    return false;
  }
}
</script>
<body>
<%
String loginNum=(String)session.getAttribute("lnum");
String name=(String)session.getAttribute("name");
session.setAttribute("lnum",loginNum);
session.setAttribute("name",name);
if(loginNum.equals("1"))
{
%>
 <form name="form1" method="post" action="stuM.jsp" onsubmit="return checkBig()">
<table width="350" border="0" align="center" cellpadding="0" cellspacing="2" class="border">
  <tr bgcolor="#999999" class="title">
    <td height="25" colspan="2" align="center"><strong>修改密码</strong></td>
  </tr>
   <tr bgcolor="#E3E3E3" class="tdbg">
    <td width="101" height="22" bgcolor="#C0C0C0"><div align="left"><strong>密码:</strong></div></td>
    <td width="243" bgcolor="#E3E3E3"><div align="left">
      <input name="sPass" type="password" id="sPass" size="20" maxlength="30" />
    </div></td>
  </tr>
  <tr bgcolor="#E3E3E3" class="tdbg">
    <td width="101" height="22" bgcolor="#C0C0C0"><div align="left"><strong>再次输入密码:</strong></div></td>
    <td width="243" bgcolor="#E3E3E3"><div align="left">
      <input name="sPassagn" type="password" id="sPassagn" size="20" maxlength="30" />
    </div></td>
  </tr>
  
  <tr bgcolor="#C0C0C0" class="tdbg">
    <td height="22" align="center" bgcolor="#C0C0C0">&nbsp;</td>
    <td height="22" align="center" bgcolor="#E3E3E3"><div align="left">
      <input name="Add" type="submit" value=" 修 改 " />
    </div></td>
  </tr>
</table>
</form>
<%
}
else
{out.println("请先登陆.....");
out.print("<a href=../index.jsp>登陆页面</a>");
}
%>
</body>
</html>

⌨️ 快捷键说明

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