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

📄 mima.jsp

📁 研究生周考核系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="java.sql.*"%> 
<%@ page import="java.util.*"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.*"%>
<%
//String  user = (String)session.getAttribute("user");
String  name = (String)session.getAttribute("name");
String  password = (String)session.getAttribute("password");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
<title>修改个人资料</title>
</head>
<script language="javascript">
<!--
	function check(form)
	{
    if (form.user.value=="")
    	{
    		alert("请填写用户名!");
    		form.user.focus();
    		return false;
  	    }
  if (form.user.value.length<2||form.bbsuser.value.length>15)
   {
     alert("昵称长度只能是2-15位。");
     form.user.focus();
     //form.user.select();
     return false;
   } 
    if (!password.equals(form.oldmima.value))
    	{
    		alert("原密码错误");
    		form.oldmima.focus();
    		return false;
  	}
  if (form.newmima.value.length<2||form.newmima.value.length>20)
   {
     alert("密码长度只能是2-20位。");
     form.newmima.focus();
     form.newmima.select();
     return false;
   } 
    if (form.newmima1.value=="")
    	{
    		alert("请填写确认密码!");
    		form.newmima1.focus();
    		return false;
  	}
    if (form.newmima1.value!=form.newmima.value)
    	{
    		alert("密码和密码确认不一致!");
    		form.newmima1.focus();
    		return false;
  	}
return true;
	}
//-->
</script>
<body>
<form name="form1" method="post" action="mimaact.jsp" onsubmit="return check(this)">
  <table width="99%" border="0" align="center" bgcolor="#A4B6D7" cellspacing="1" cellpadding="2">
    <tr> 
      <td height="20" bgcolor="#F8F8F8" colspan="2"> 
        <div align="center"><B><H2>修改个人资料</H2></B></div>
      </td>
    </tr>
    <tr> 
      <td width="15%" height="23" bgcolor="#F8F8F8"> 
        <div align="center"><B>姓    名:</B></div>
      </td>
      <td width="85%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="text" name="name" size="15" maxlength="10" value="<%=name%>">
          </td>
    </tr>
    <tr> 
      <td width="15%" height="23" bgcolor="#F8F8F8"> 
        <div align="center"><B>原 密 码:</B></div>
      </td>
      <td width="85%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="password" name="oldmima" size="25" maxlength="20" value="">
         <font color="#CC0000">*</font></td>
    </tr>  
     <tr> 
      <td width="15%" height="23" bgcolor="#F8F8F8"> 
        <div align="center"><B>新 密 码:</B></div>
      </td>
      <td width="85%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="password" name="newmima" size="25" maxlength="20" value="">
         <font color="#CC0000">*</font></td>
    </tr>
     <tr> 
      <td width="15%" height="23" bgcolor="#F8F8F8"> 
        <div align="center"><B>确认密码:</B></div>
      </td>
      <td width="85%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="password" name="newmima1" size="25" maxlength="20" value="">
         <font color="#CC0000">*</font></td>
    </tr>
    <tr> 
      <td height="35" colspan="2" bgcolor="#F8F8F8"> 
        <div align="center">
          <input type="submit" name="submit" value="修改">
        </div>
      </td>
    </tr>
	<tr><TD height=50 bgcolor="#F8F8F8"   align="center" colspan="2"><a href="#" onclick="history.back()">放弃返回</a></TD>
  </tr>
  </table>
  <%@ include file="../inc/systail.jsp"%>
</form>
</body>
</html>

⌨️ 快捷键说明

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