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

📄 user_modpsw.jsp

📁 基于JSP的网上花店系统。工作量符合本科毕业设计水准1
💻 JSP
字号:



<%@ page contentType="text/html; charset=gb2312" language="java"  errorPage="" %>
<html>
<head>
<title>淳.清凉花坊</title>
<meta name="keywords" content="淳.清凉花坊">
<meta name="description" content="淳.清凉花坊">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="/css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style11 {color: #006633}
.style13 {	font-size: 12px;
	color: #FFFFFF;
}
.style15 {	color: #660000;
	font-size: 14px;
	font-weight: bold;
}
.style17 {color: #006633; font-size: 12px; }
-->
</style>
<script language="javascript">
 function chkform(form){
	if (form.password.value == "") {
		alert("您还没有填写登陆密码!");
		form.password.focus();
		return false;
	}		
	
	if (form.newPsw.value == "") {
		alert("您还没有填写新密码!");
		form.newPsw.focus();
	
		return false;
	}	
	if ((form.newPsw.value.length<6)||(form.newPsw.value.length>10)){
		alert("密码必须是6~10位数字或字符!");
		form.newPsw.focus();
		return false;
	}
	if (form.newPsw.value != form.newPsw2.value) {
		alert("两次新密码输入不一致!");
		form.newPsw2.focus();
		return false;
	}	
	return true;
}
</script>

</head>
<%! //处理字符串的常用方法
   public String getString(String s) {
            if(s == null) s = "";
            try{
                 byte a[] = s.getBytes("ISO-8859-1");
                       s = new String(a);
                } 
            catch(Exception e) {}
            return s;
          }
%>
<% //获取session值,以及防止非法访问本页面
     String userid= (String)session.getAttribute("userid");
     String password= (String)session.getAttribute("password");
      userid=getString(userid);
      password=getString(password);
     
  
%>  
<body bgcolor="#FFFFFF" >

<table width="858" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="200" align="center" valign="top">
      <table id="Table_06" width="100%" height="398" border="0" cellpadding="0" cellspacing="0">
        <tr>
          
          <td width="46" height="398" align="center" valign="top">
          </td>
          <td width="154" height="398"><p align="left" class="style15">&nbsp;</p>
            <p align="left" class="style15"><img src="images/6xiang_06.gif" width="29" height="27">会员中心</p>
            <p align="left"><img src="images/arrow_car.gif" width="15" height="15"><span class="style13"><a href="order_rcd.jsp" class="style11">我的购买记录</a></span></p>
            <p align="left"><img src="images/arrow_car.gif" width="15" height="15"><a href="cart.jsp" class="style17">我的购物车</a></p>
            <p align="left"><img src="images/arrow_car.gif" width="15" height="15"><a href="userinfo.jsp" class="style17">我的注册信息</a></p>
            <p align="left"><img src="images/arrow_car.gif" width="15" height="15"><span class="style11"><a href="modify_info.jsp" class="style17">修改我的资料</a></span></p>
            <p align="left"><img src="images/arrow_car.gif" width="15" height="15"><a href="user_modPsw.jsp" class="style17">修改登陆密码</a></p>
          <p align="left"><img src="images/arrow_car.gif" width="15" height="15"><a href="main.jsp" class="style17">退出会员中心</a> </p></td>
        </tr>
       
    </table></td>
    <td width="658" align="center" valign="top">
      <table id="Table_06" width="100%" height="397" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td background="/images/6xiang_203.gif" width="7" height="9"></td>
          <td width="1" height="9" background="/images/6xiang_208.gif"></td>
          <td width="626" background="/images/6xiang_207.gif"></td>
          <td width="14" height="9" background="/images/6xiang_209.gif"></td>
          <td background="/images/6xiang_201.gif" width="10" height="9"></td>
        </tr>	  
        		
        
         
          <td height="387" colspan="3" align="center" valign="top">
<table width="98%" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="137"><img src="images/4_img1.jpg" width="111" height="112" align="absmiddle"> 您的位置:<a href="main.jsp">HOME</a> &gt;&gt; 会员中心 &gt;&gt; 修改会员密码</td>
    </tr>
</table>
<br> 
		  <form action="pswchk.jsp" method="post" name="regForm" onSubmit="return chkform(this)">
		   <table width="99%"  border="0" cellpadding="5" cellspacing="1" bgcolor="#ECE9D8">
		  <tr align="center">
		    <td height="30" class="showbg_red" colspan="2"><span class="sstitle">修改会员密码</span></td>
		    </tr>
		  <tr bgcolor="#F9F8F2">
		    <td height="30" align="right">原密码:</td>
		    <td height="30"><input name="oldPsw" type="password" class="input" id="password" size="30" maxlength="20"></td>
		    </tr>
		  <tr bgcolor="#F9F8F2">
		    <td width="40%" height="30" align="right">新密码:</td>
		    <td width="60%" height="30"><input name="newPsw" type="password" class="input" id="newPsw" size="30" maxlength="20">
		    (6~10位)</td>
		    </tr>
		  <tr bgcolor="#F9F8F2">
		    <td height="30" align="right">确认新密码:</td>
		    <td height="30"><input name="newPsw2" type="password" class="input" id="newPsw2" size="30" maxlength="20">		      </td>
		    </tr>
		  
		  <tr align="center" bgcolor="#F9F8F2">
			<td height="30" colspan="2">					  
			<input name="Submit" type="submit" class="button" value="修改密码">
				
				</td>
			</tr>			
		</table>
		  </form>		
        </tr>

      </table></td>
  </tr>
</table>

</body>
</html>

⌨️ 快捷键说明

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