jsp_project_/store//store/WebRoot/ModifyUserInfo

<%@ page language="java" import="java.util.*,conn.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>登陆</title>
   
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
   

  <script language="javascript" type="text/javascript">
   var stryzm="";
      var strC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwyz1234567890";       //验证码能够输出的字符集合
       function  csh()
       {
          var i;
          while(stryzm.length<5)
        {
        stryzm = stryzm+strC.charAt(Math.round(Math.random()*strC.length));
        }
        document.all.yamInit.value = stryzm;
       }

   function confrim()
   {
   //userName
      if(document.all.userName.value.length==0 &&  isLetter())
   {
      document.all.userNameID.style.display="block";
   return false;
   }else
   {
      document.all.userNameID.style.display="none";
   }
   //userPass
    if(document.all.userPass.value.length<5 )
   {
      document.all.userPassID.style.display="block";
   return false;
   }else
   {
      document.all.userPassID.style.display="none";
   }
   //confrimPass
    if(document.all.confrimPass.value!=document.all.userPass.value)
   {
      document.all.confirmPassID.style.display="block";
   return false;
   }else
   {
      document.all.confirmPassID.style.display="none";
   }
   //userEmail
      if(document.all.userEmail.value.length==0 ||document.all.userEmail.value.indexOf("@",2)==-1 || document.all.userEmail.value.indexOf(".",4)==-1)
   {
      document.all.EmailID.style.display="block";
   return false;
   }else
   {
      document.all.EmailID.style.display="none";
   }
   //yzm--yamInit
      if(document.all.yzm.value!= document.all.yamInit.value)
   {
      document.all.yamID.style.display="block";
   return false;
   }else
   {
      document.all.yamID.style.display="none";
   }
   //telephoneID
  
     if(document.all.telephone.value.length<8)
   {
      document.all.telephoneID.style.display="block";
   return false;
   }else
   {
      document.all.telephoneID.style.display="none";
   }
   //indexNumID
     if(document.all.indexNum.value.length==0)
   {
      document.all.indexNumID.style.display="block";
   return false;
   }else
   {
      document.all.indexNumID.style.display="none";
   }
   //userAdd
    if(document.all.userAdd.value.length==0)
   {
      document.all.userAddID.style.display="block";
   return false;
   }else
   {
      document.all.userAddID.style.display="none";
   }
   }
 
 </script>
 <style type="text/css">
  .loginH1
{
  font-family:"新宋体";
  font-size:20px;
  color:#000000;
  font-weight: bold;
}
.loginText
{
    font-family:"新宋体";
 font-size:18px;
 color:#000000;
 font-weight: bold;
}
.userIn
{
    font-family:"新宋体";
 font-size:16px;
 color:#000000;
 font-weight: bold;
 background-color:#CCFFFF;
}
.inputText
{
   text-align:center;
   font:"新宋体";
   font-size:16px;
   font-weight:bolder;
   width:120px;
   height:25px
}
.longinputText
{
   text-align:center;
   font:"新宋体";
   font-size:18px;
   font-weight:bolder;
   width:250px;
   height:25px
}
.selectInput
{
   text-align:center;
   font:"新宋体";
   font-size:18px;
   font-weight:bolder;
   width:120px;
   height:35px
}
.buttonU
{
width:80px;
height:35px;
font:"新宋体";
font-size:20px;
font-weight:bolder
}
.label
{
    font-family:"新宋体";
 font-size:14px;
 color:#FF0000;
 font-weight: bold;
 display:none
}
</style>
</head>

<body onContextMenu="return false" οnlοad="csh()">
<table width="105%" height="130%" border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:0; top:0">
  <tr>
    <td height="112" colspan="2" align="left" valign="bottom"><img src="file:///D|/project_jsp/Work/Img/logo.jpg" width="180" height="103" /></td>
    <td  width="67%" colspan="2" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="439" height="112">
        <param name="movie" value="file:///D|/project_jsp/Work/Img/webHeader.swf" />
        <param name="quality" value="high" />
        <embed src="file:///D|/project_jsp/Work/Img/webHeader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="439" height="112"></embed>
    </object></td>
  </tr>
  <tr>
    <td  height="13" colspan="4" bgcolor="#CC3300">&nbsp;</td>
  </tr>
  <tr>
    <td height="100%" colspan="4" align="center" valign="TOP">
    <%
       if(session.getAttribute("UserName") == null)
       {
          response.sendRedirect("ReLogin.jsp");
       }
       String name = (String)session.getAttribute("UserName");
       ConnectionDatabase con =new  ConnectionDatabase();
       Vector v = con.getQueryDate("select UName,Usex,IndexType,indexNum,Email,telephone,address from userInfo where UName ='"+name+"'");
       String num = ((Vector)v.get(0)).get(3).toString();
       String Email = ((Vector)v.get(0)).get(4).toString();
       String tele = ((Vector)v.get(0)).get(5).toString();
       String adress = ((Vector)v.get(0)).get(6).toString();
    %>
    <form  onSubmit="return confrim()" method="POST" action="ModiSevrlet">
     <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td>&nbsp;</td>
         <td >&nbsp;</td>
         <td>&nbsp;</td>
         <td >&nbsp;</td>
         <td>&nbsp;</td>
       </tr>
       <tr>
         <td height="28" align="left" valign="top">
           <input type="image" name="imageField" src="file:///D|/project_jsp/Work/Img/left.gif"  width="100%" height="100%">         </td>
         <td height="28" colspan="3" bgcolor="#ddddcc" class="loginText" align="center">用户注册   </td>
         <td height="28" align="right"><input type="image" name="imageField2" src="file:///D|/project_jsp/Work/Img/right.gif"
     width="100%" height="100%"></td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">用户名称:</td>
         <td class="userIn"><label>
           <input name="userName" type="text" class="inputText" id="userName" value="<%=name%>" readonly="readonly">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3" align="center"><label class="label" id="userNameID" >用户名不能为空,并且必须以字母开头</label>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">用户密码:</td>
         <td class="userIn"><label>
           <input name="userPass" type="password" class="inputText" id="userPass">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3" align="center"><label class="label" id="userPassID">用户密码不能为空,长度不能小与五个数</label>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">确认密码:</td>
         <td class="userIn"><label>
           <input name="confrimPass" type="password" class="inputText" id="confrimPass">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="3" align="center"><label class="label" id="confirmPassID">确认密码与输入密码不一样</label>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td height="35" class="userIn">性&nbsp;&nbsp;&nbsp;&nbsp;别:</td>
         <td align="left" bgcolor="#CCFFFF" class="inputText"><input type="radio" name="usersex" value="男" checked="checked">
       男
       <input type="radio" value="女" name="usersex" >
       女      </td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">联系电话:</td>
         <td class="userIn"><label>
           <input name="telephone" value="<%=tele%>" type="text" class="inputText" id="telephone">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="2" align="center"><label class="label" id="telephoneID">电话输入不对</label>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">联系地址:</td>
         <td class="userIn"><label>
           <input name="userAdd" value="<%=adress%>" type="text" class="longinputText" id="userAdd">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3" align="center"><label class="label" id="userAddID" >地址不能为空</label>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
      
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">E-Mail:</td>
         <td class="userIn"><label>
           <input name="userEmail" value="<%=Email%>" type="text" class="longinputText" id="userEmail">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3" align="center"><label  class="label" id="EmailID">EMial错误</label>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
      
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">证件类型:</td>
         <td class="userIn"><label>
           <select name="select" style="font-family:'新宋体'; font-size:18px; font-weight:bold">
             <option value="身份证" selected="selected">身份证</option>
             <option value="军官证">军官证</option>
             <option value="学生证">学生证</option>
             <option value="其他">其他</option>
           </select>
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">证件号码:</td>
         <td class="userIn"><label>
           <input name="indexNum" type="text" class="longinputText" id="indexNum" value="<%=num%>">
         </label></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="2" align="center"><label class="label" id="indexNumID">证件号码不能为空</label>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" height="25" bgcolor="#ddddcc">&nbsp;</td>
         <td class="userIn">验&nbsp;证&nbsp;码:</td>
         <td class="userIn">
           <input name="yzm" type="text" class="inputText" id="yzm" >
           <input readonly="readonly" type="text" id="yamInit" style="font:'新宋体'; font-size:30; font-weight:bolder; color:#6633FF; border:none; background:inherit"></td>
         <td class="userIn">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3" align="center"><label class="label" id="yamID">验证没有填写正确</label>
           <span class="label">&nbsp;</span></td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" height="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3"><hr width="100%" size="3" color="#00FF99"/>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td colspan="3" align="center">
           <input name="Submit" type="submit" class="buttonU" value="提交" onBlur="confrim()">
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <A href="MyStore.jsp">返回 </A>
           </td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td width="10" bgcolor="#ddddcc">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
         <td bgcolor="#ddddcc">&nbsp;</td>
       </tr>
       <tr>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td colspan="2">&nbsp;</td>
       </tr>
     </table>
     </td>
  </tr>
  <tr>
   <td  height="13" colspan="4" bgcolor="#CC3300">&nbsp;</td>
  </tr>
</table>
</body>
</html>


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值