modify.jsp
上传用户:helenhuo66
上传日期:2007-06-01
资源大小:865k
文件大小:5k
源码类别:

百货/超市行业

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK" language="java" import="java.sql.*" errorPage="" %>
  2. <html>
  3. <link href="css.css" rel="stylesheet" type="text/css">
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  5. <title>用户资料更改</title>
  6. <link href=css.css rel=STYLESHEET type=text/css>
  7. <jsp:useBean id="mdb" class="ckstudio.db.faq" scope="page"/>
  8. <%
  9. String user_name,sql;
  10. if (session.getAttribute("user_name")==null){
  11.     response.sendRedirect("index.asp");
  12. }
  13. else{//-------------------------------logged--------begin------------------------------------------
  14.     ResultSet rs;
  15.     user_name=(String)session.getValue("user_name");
  16.     sql="select * from member where user_name='"+user_name+"'";
  17.     rs=mdb.executeQuery(sql);
  18. if(rs.next()){
  19. %>
  20. <body topmargin="0">
  21. <form method="POST" action="modifysave.jsp?user_name=<%=rs.getString("user_name")%>">
  22.   <br>
  23.   <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  24.     <tr>
  25.     <td width="100%">
  26.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  27.         <tr>
  28.             <td width="100%">
  29.     <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  30.         </tr>
  31.         <tr>
  32.             <td width="100%" bgcolor="#DBC2B0" align="center" height="18">用户资料修改</td>
  33.         </tr>
  34.         <tr>
  35.             <td width="100%" bgcolor="#F5EFE7"> <table width="100%" height="34" border="0" cellpadding="0" cellspacing="0">
  36.                 <tr> 
  37.                   <td width="398" height="120"><br>
  38.                     <div align="center">
  39.                       <center>
  40.                     <table width="90%" border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
  41.                       <tr> 
  42.                         <td width="21%" height="25"><div align="right">用户名:</div></td>
  43.                         <td width="79%" height="25"><div align="left"><%=user_name%></div></td>
  44.                       </tr>
  45.                       <tr> 
  46.                         <td width="21%" height="25"><div align="right">密码:</div></td>
  47.                         <td width="79%" height="25"> <input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="user_pass" size="36" class=input value="<%=rs.getString("user_pass")%>"></td>
  48.                       </tr>
  49.                       <tr> 
  50.                         <td width="21%" height="25"><div align="right">E-mail:</div></td>
  51.                         <td width="79%" height="25"> <input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="user_mail" size="36" class=input value="<%=rs.getString("user_mail")%>"></td>
  52.                       </tr>
  53.                       <tr> 
  54.                         <td width="21%" height="25"><div align="right">电话:</div></td>
  55.                         <td width="79%" height="25"> <input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="user_tel" size="36" class=input value="<%=rs.getString("user_tel")%>"></td>
  56.                       </tr>
  57.                       <tr> 
  58.                         <td width="21%" height="25"><div align="right">邮政编码:</div></td>
  59.                         <td width="79%" height="25"> <input style="FONT-SIZE: 12px; WIDTH: 110px" type="text" name="user_postcode" size="36" class=input value="<%=rs.getString("user_postcode")%>"></td>
  60.                       </tr>
  61.                       <tr> 
  62.                         <td width="21%" height="25"><div align="right">地址:</div></td>
  63.                         <td width="79%" height="25"> <input style="FONT-SIZE: 12px; WIDTH: 260px" type="text" name="user_adds" size="36" class=input value="<%=rs.getString("user_adds")%>"></td>
  64.                       </tr>
  65.                       <tr> 
  66.                         <td width="21%" height="25"><div align="right">真实姓名:</div></td>
  67.                         <td width="79%" height="25"> <input style="FONT-SIZE: 12px; WIDTH: 110px" type="text" name="user_namec" size="36" class=input value="<%=rs.getString("user_namec")%>"></td>
  68.                       </tr>
  69.                       <tr> 
  70.                         <%rs.close();%>
  71.                         <td height="35" colspan="2"> <table width="40%" border="0" align="center" cellpadding="0" cellspacing="0">
  72.                             <tr> 
  73.                               <td><div align="center"> 
  74.                                   <input 
  75.       align=absMiddle alt=确认 cache name="B1" 
  76.       src="img/pics/ok.gif" type=image tppabs="" width="45" height="20">
  77.                                 </div>
  78.                                 <div align="center"> </div></td>
  79.                             </tr>
  80.                           </table></td>
  81.                       </tr>
  82.                     </table>
  83.                       </center>
  84.                   </div>
  85.                     <table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  86.                       <tr> 
  87.                         <td height="35" valign="middle"><div align="center"><img src="img/pics/seperator.gif" width="359" height="1"></div></td>
  88.                       </tr>
  89.                     </table></td></tr>
  90.               </table>
  91.               
  92.             </td>
  93.         </tr>
  94.       </table>
  95.     </td>
  96.   </tr>
  97. </table>
  98. </form>
  99. <%}
  100. }
  101. //-------------------------------logged--------begin------------------------------------------
  102. mdb.Close();
  103. %>