UserModify.jsp
上传用户:lsj999sz
上传日期:2022-06-15
资源大小:4717k
文件大小:8k
源码类别:

ICQ/即时通讯

开发平台:

Java

  1. <%@ page language="java" import="com.bjsxt.shopping.user.*" pageEncoding="GBK"%>
  2. <%@ page import="java.util.*"%>
  3. <%
  4. //检查session,查看用户是否登陆
  5. User u = (User)session.getAttribute("user");
  6. if(u == null) {
  7. response.sendRedirect("Index.jsp");
  8. return;
  9. }
  10.  %>
  11. <%
  12. request.setCharacterEncoding("GBK");
  13. String action = request.getParameter("action");
  14. if(action != null && action.trim().equals("modify")) {
  15. String phone = request.getParameter("phone");
  16. String addr = request.getParameter("addr");
  17. u.setPhone(phone);
  18. u.setAddr(addr);
  19. u.update();
  20. out.println("更改成功!恭喜!");
  21. return;
  22. }
  23.  %>
  24. <html><head><title>金尚商城会员注册</title>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  26. <meta name="keywords" content="Discuz!,Board,Comsenz,forums,bulletin board,">
  27. <meta name="description" content="醒客论坛专区  - Discuz! Board">
  28. <meta name="generator" content="Discuz! 4.0.0RC4 with Templates 4.0.0">
  29. <meta name="MSSmartTagsPreventParsing" content="TRUE">
  30. <meta http-equiv="MSThemeCompatible" content="Yes">
  31. <style type="text/css"><!--
  32. a { text-decoration: none; color: #000000 }
  33. a:hover { text-decoration: underline }
  34. body { scrollbar-base-color: #F3F6FA; scrollbar-arrow-color: #4D76B3; font-size: 12px; background-color: #ffffff }
  35. table { font: 12px Verdana,Tahoma; color: #000000 }
  36. input,select,textarea { font: 11px Verdana,Tahoma; color: #000000; font-weight: normal; background-color: #F3F6FA }
  37. select { font: 11px Verdana,Tahoma; color: #000000; font-weight: normal; background-color: #F3F6FA }
  38. .nav { font: 12px Verdana,Tahoma; color: #000000; font-weight: bold }
  39. .nav a { color: #000000 }
  40. .header { font: 11px Verdana,Tahoma; color: #FFFFFF; font-weight: bold; background-image: url("images/green/bg01.gif") }
  41. .header a { color: #FFFFFF }
  42. .category { font: 11px Verdana,Tahoma; color: #000000; background-color: #EFEFEF }
  43. .tableborder { background: #4D76B3; border: 0px solid #4D76B3 } 
  44. .singleborder { font-size: 0px; line-height: 0px; padding: 0px; background-color: #F3F6FA }
  45. .smalltxt { font: 11px Verdana,Tahoma }
  46. .outertxt { font: 12px Verdana,Tahoma; color: #000000 }
  47. .outertxt a { color: #000000 }
  48. .bold { font-weight: bold }
  49. .altbg1 { background: #F3F6FA }
  50. .altbg2 { background: #FFFFFF }
  51. --></style><script language="JavaScript" src="images/common.js"></script><style type="text/css" id="defaultPopStyle">.cPopText { font-family: Tahoma, Verdana; background-color: #FFFFCC; border: 1px #000000 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)}</style></head><body leftmargin="0" rightmargin="0" topmargin="0" onkeydown="if(event.keyCode==27) return false;"><div id="popLayer" style="position: absolute; z-index: 1000;" class="cPopText"></div>
  52. <table id="table1" align="center" border="0" cellpadding="0" cellspacing="0" width="97%">
  53.   <tbody>
  54.   <tr valign="top">
  55.     <td style="border-top: 0px none; border-right: 1px none; font-size: 9pt; font-family: Tahoma,Verdana; color: rgb(0, 0, 0);" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
  56.       <tbody><tr>
  57.         <td bgcolor="#4d76b3" height="20">&nbsp;</td>
  58.       </tr>
  59.       <tr>
  60.         <td bgcolor="#4e6793" height="2"></td>
  61.       </tr>
  62.       <tr>
  63.         <td background="images/bitmap.gif" height="80" valign="middle"><table align="right" border="0" cellpadding="0" cellspacing="0" width="100%">
  64.           <tbody><tr>
  65.             <td valign="middle" width="5">&nbsp;</td>
  66.             <td valign="middle" width="157"><div align="left"><a href="thinkshop.cn.htm" target="_blank"><br></a></div></td>
  67.             <td valign="middle" width="812"><div align="right">
  68.               <a style="left: 799px ! important; top: 61px ! important;" class="abp-objtab visible" href="http://www.allsmart.com/images/new1.swf"></a><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="61" width="460">
  69.                   <param name="movie" value="http://www.allsmart.com/images/new1.swf">
  70.                   <param name="quality" value="high">
  71.                   <embed src="images/new1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="61" width="460">
  72.               </object>
  73.             </div></td>
  74.             <td width="5">&nbsp;</td>
  75.           </tr>
  76.         </tbody></table></td>
  77.       </tr>
  78.       <tr>
  79.         <td><table id="table3" bgcolor="#f3f6fa" cellpadding="3" cellspacing="0" width="100%">
  80.           <tbody>
  81.             <tr>
  82.               <td style="border-top: 0px none; border-right: 1px none; font-size: 9pt; font-family: Tahoma,Verdana; color: rgb(0, 0, 0);" bgcolor="#f3f6fa" height="20"><font style="line-height: normal;" color="#000000"><a href="faq.php.htm"><br></a> </font></td>
  83.               <td width="225"><table align="right" border="0" cellpadding="0" cellspacing="0" width="225">
  84.                 <tbody><tr>
  85.                   <td width="75"><a href="index.php.htm"><br></a></td>
  86.                   <td width="75"><a href="brandshop.php.htm" target="_blank"><br></a></td>
  87.                   <td width="75"><a href="powered by Discuz!.htm" target="_blank"><br></a></td>
  88.                   </tr>
  89.               </tbody></table>
  90.              </td>
  91.               </tr>
  92.             <tr bgcolor="#4d76b3">
  93.               <td colspan="2" height="1"> </td>
  94.             </tr>
  95.             <tr bgcolor="#ffffff">
  96.               <td colspan="2" height="5"></td>
  97.             </tr>
  98.           </tbody>
  99.         </table></td>
  100.       </tr>
  101.     </tbody></table>
  102. </td>
  103.     </tr></tbody></table>
  104. <table style="table-layout: fixed;" align="center" border="0" cellpadding="0" cellspacing="0" width="97%"> 
  105. <tbody><tr><td class="nav" align="left" nowrap="nowrap" width="90%">&nbsp;&#37329;&#23578;&#21830;&#22478; &#187; 注册</td>
  106. <td align="right" width="10%">&nbsp;<a href="#bottom"><img src="images/arrow_dw.gif" align="absmiddle" border="0"></a></td>        
  107. </tr></tbody></table><br>
  108. <form method="post" name="register" action="UserModify.jsp" onSubmit="this.regsubmit.disabled=true;">
  109. <input type="hidden" name="action" value="modify"/>
  110. <table class="tableborder" align="center" cellpadding="4" cellspacing="1" width="97%">
  111. <tbody><tr>
  112. <td colspan="2" class="header">用户修改 - 必填内容</td>
  113. </tr>
  114. <tr>
  115. <td class="altbg1" width="21%">用户名:</td>
  116. <td class="altbg2"><input name="username" size="25" maxlength="25" type="text" readonly value="<%=u.getUsername()%>"> </td>
  117. </tr>
  118. <tr>
  119. <td class="altbg1">&#30005;&#35805;:</td>
  120. <td class="altbg2"><input name="phone" type="text" id="phone" size="25" value="<%=u.getPhone()%>"></td>
  121. </tr>
  122. <tr>
  123. <td class="altbg1" valign="top">送货地址:</td>
  124. <td class="altbg2"><textarea name="addr" cols="60" rows="5" id="addr"><%=u.getAddr()%></textarea></td>
  125. </tr>
  126. </tbody></table>
  127. <br>
  128. <center><input name="regsubmit" value="提 &nbsp; 交" type="submit"></center>
  129. </form>
  130. <script language="JavaScript">
  131. document.register.username.focus();
  132. </script>
  133. <p align="center"> </p>
  134. <table class="smalltxt" cellpadding="4" cellspacing="0" width="100%">
  135. <tbody><tr class="altbg1"><td>所有时间为 GMT+8, 现在时间是 2007-4-20 11:17</td>
  136. <td align="right"><a href="http://bbs.allsmart.com/member.php?action=clearcookies" class="bold">清除 Cookies</a></td>
  137. <td align="right" width="1">&nbsp;</td>
  138. </tr>
  139. <tr style="padding: 0px; font-size: 0px; line-height: 0px;" images="" green="" bg01.gif="" )=""><td colspan="3"> </td></tr>
  140. </tbody></table>
  141. <p align="center">
  142. <br>
  143. <a name="bottom"></a>
  144. <a target="_blank" href="http://www.thinkpadclub.com.cn/"><u>金尚商城</u></a><br>
  145. 服务热线:010-58052712
  146. <!--<br><font color=#ebebeb>
  147. Powered by <a href="http://www.discuz.net" target="_blank"><font color=#ebebeb>Discuz!</font></a> 
  148. <a href="misc.php?action=viewlicense"><b style="color:#ebebeb">4.0.0RC4</b></a>&nbsp;
  149. &copy; 2001-2005 <a href="http://www.comsenz.com" target="_blank"><font color=#ebebeb>Comsenz Technology Ltd</font></a>
  150. <br>Processed in 0.011754 second(s), 5 queries
  151. -->
  152. </p>
  153. </body></html>