userpass.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:10k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  3. <%
  4.    String name=(String)session.getAttribute("name");
  5.    %>
  6.    <script language="javascript">
  7.   function openScript(url,name, width, height){
  8. var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
  9. }
  10. </script>
  11.    <script language="javascript">
  12.    function mycheck(register_common){ 
  13.      if (register_common.oldpassword.value == "")
  14.   {
  15.     alert("密码没有输入!");
  16.     register_common.oldpassword.focus();
  17.     return false;
  18.   }
  19.    if ((register_common.password1.value=="")||(register_common.password1.value.length<5)||(register_common.password1.value.length>20))
  20.   {
  21.     alert("密码没有输入或格式不对!");
  22.     register_common.password1.focus();
  23.     return false;
  24.   }
  25.   if (register_common.password1.value == "")
  26.   {
  27.     alert("密码没有输入!");
  28.     register_common.password1.focus();
  29.     return false;
  30.   }
  31.   if (register_common.password1.value!=register_common.password2.value)
  32.   { alert("两次输入密码不一样!");
  33.     register_common.password1.focus();
  34.     return false;
  35.   }
  36.    
  37.    }
  38.    </script>
  39.    
  40.    
  41. <HTML><HEAD><TITLE>-修改密码-</TITLE>
  42. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  43. href="../image/buyok_shop.css" type=text/css rel=stylesheet><LINK 
  44. href="../image/buyok_shop.css" type=text/css rel=stylesheet>
  45. <STYLE type=text/css>BODY {
  46. MARGIN: 0px
  47. }
  48. .STYLE1 {
  49. COLOR: #ff3300
  50. }
  51. .STYLE2 {
  52. COLOR: #ff0000
  53. }
  54. </STYLE>
  55. <META name=KEYWords 
  56. contect="网上书城,网上购书,书,买书,卖书,购书,网上书店,广东,东莞,永正,购书中心,文学,经济,工商,计算机,电脑,教育,音像,电子,医药卫生,建筑工业,艺术,法律,历史,外语,儿童,动漫,小说">
  57. <META name=DEscription contect="广东省东莞永正购书中心,全国第七大民营书城,东莞最大的民营书城,网上购书中心">
  58. <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
  59. <BODY>
  60. <CENTER>
  61.   <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  62. bgColor=#ffffff border=0>
  63.     <TBODY>
  64.       <TR>
  65.         <TD width=760>
  66.           <TABLE class=4l borderColor="#ebebeb" cellSpacing=0 cellPadding=0 
  67.       width="100%" align=center border=0>
  68.             <TBODY>
  69.               <TR>
  70.                 <TD>
  71.                   <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
  72.             border=0>
  73.                     <TBODY>
  74.                       <TR>
  75.                         <TD colSpan=2 height=13></TD>
  76.                       </TR>
  77.                       <TR>
  78.                         <TD width=260>
  79.                           <DIV align=center><IMG height=45 src="../image/logo.gif" 
  80.                   width=200></DIV></TD>
  81.                         <TD align=right width=500>
  82.                           <TABLE cellSpacing=0 cellPadding=0 width=500 align=right 
  83.                   border=0>
  84.                             <TBODY>
  85.                               <TR>
  86.                                 <TD align=right width=22><IMG height=67 
  87.                         src="../image/top_1.gif" width=7></TD>
  88.                                 <TD align=right width=82><A onfocus=this.blur() 
  89.                         href="../default.jsp"><IMG 
  90.                         height=67 src="../image/home.gif" width=82 
  91.                         border=0></A></TD>
  92.                                 <TD align=right width=74><A onfocus=this.blur() 
  93.                         href="../newbook.jsp?pageNum=1"><IMG 
  94.                         height=67 src="../image/newbook.gif" width=74 
  95.                         border=0></A></TD>
  96.                                 <TD align=right width=79><A onfocus=this.blur() 
  97.                         href="../tuibook.jsp?pageNum=1"><IMG 
  98.                         height=67 src="../image/jptj.gif" width=79 
  99.                         border=0></A></TD>
  100.                                 <TD align=right width=75><A onfocus=this.blur() 
  101.                         href="../upload_show.jsp"><IMG 
  102.                         height=67 src="../image/tejia.gif" width=75 
  103.                         border=0></A></TD>
  104.                                 <TD align=right width=78><A onfocus=this.blur() 
  105.                         href="../messagebox/indexme.jsp"><IMG 
  106.                         height=67 src="../image/guest.gif" width=78 
  107.                         border=0></A></TD>
  108.                                 <TD align=right width=90><A onfocus=this.blur() 
  109.                         href="../contactus.jsp"><IMG 
  110.                         height=67 src="../image/link_wo.gif" width=90 
  111.                         border=0></A></TD>
  112.                               </TR>
  113.                             </TBODY>
  114.                         </TABLE></TD>
  115.                       </TR>
  116.                     </TBODY>
  117.                 </TABLE></TD>
  118.               </TR>
  119.             </TBODY>
  120.         </TABLE></TD>
  121.       </TR>
  122.     </TBODY>
  123.   </TABLE>
  124.   <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  125. bgColor=#ffffff border=0>
  126.   <TBODY>
  127.   <TR>
  128.     <TD vAlign=top align=middle width=185>
  129.       <TABLE cellSpacing=0 cellPadding=0 width=171 align=center border=0>
  130.         <TBODY>
  131.         <TR>
  132.           <TD vAlign=top align=middle width=176><A 
  133.             href="#"><IMG alt=回到用户中心首页 
  134.             src="../image/usermenu1.gif" align=center border=0></A></TD></TR>
  135.         <TR>
  136.           <TD vAlign=top align=middle width=176 
  137.           background=../image/usermenu2.gif height=346><BR>
  138.             <TABLE cellSpacing=0 cellPadding=0 width="80%" border=0>
  139.               <TBODY>
  140.                 <TR>
  141.                   <TD height=30>
  142.                     <DIV align=center><IMG src="../image/xie.gif" 
  143.                   align=center border=0> <A title=修改个人资料 
  144.                   href="usermodity.jsp">个 人 资 料</A></DIV></TD>
  145.                 </TR>
  146.                 <TR>
  147.                   <TD height=30>
  148.                     <DIV align=center><IMG src="../image/xie.gif" 
  149.                   align=center border=0> <A title=修改登陆密码 
  150.                   href="userpass.jsp">密 码 设 置</A></DIV></TD>
  151.                 </TR>
  152.                 <TR>
  153.                   <TD vAlign=center height=30>
  154.                     <DIV align=center><IMG alt=我的收藏 src="../image/xie.gif" 
  155.                   align=center border=0> <A title=查看我的收藏 
  156.                   href="#"  onclick="openScript('collectionuser.jsp','collectionuser',650,300);">我 的 收 藏</A></DIV></TD>
  157.                 </TR>
  158.                 <TR>
  159.                   <TD height=30>
  160.                     <DIV align=center><IMG src="../image/xie.gif" 
  161.                   align=center border=0> <A title=查看个人订单 
  162.                   href="show_indent.jsp">订 单 查 看</A></DIV></TD>
  163.                 </TR>
  164.                 <TR>
  165.                   <TD height=30>
  166.                     <DIV align=center><IMG src="../image/xie.gif" 
  167.                   align=center border=0> <A title=接收站内消息 
  168.                   href="recemessage.jsp">接 收 消 息</A></DIV></TD>
  169.                 </TR>
  170.                 <TR>
  171.                   <TD height=30>
  172.                     <DIV align=center><IMG src="../image/xie.gif" 
  173.                   align=center border=0> <A title=发送站内消息 
  174.                   href="sendmessage.jsp">发 送 消 息</A></DIV></TD>
  175.                 </TR>
  176.                 <TR>
  177.                   <TD height=30>
  178.                     <DIV align=center><IMG src="../image/xie.gif" 
  179.                   align=center border=0> <A title=安全退出 
  180.                   href="loginout.jsp">安 全 退 出</A></DIV></TD>
  181.                 </TR>
  182.               </TBODY>
  183.             </TABLE></TD></TR>
  184.         <TR>
  185.           <TD vAlign=top align=middle width=176 height=19><IMG 
  186.             src="../image/usermenu3.gif" 
  187.       align=center></TD></TR></TBODY></TABLE>
  188.       <BR></TD>
  189.     <TD width=1 bgColor=#cccccc></TD>
  190.     <TD vAlign=top width=570 bgColor=#ffffff>
  191.       <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0>
  192.         <TBODY>
  193.         <TR>
  194.           <TD align=right width=31 height=30><IMG height=11 
  195.             src="../image/jt_2.gif" width=11></TD>
  196.           <TD width=525>当前位置:<A 
  197.             href="../default.asp">首页</A> &gt; <A 
  198.             href="#">用户中心</A> &gt; 
  199.         密码设置</TD></TR>
  200.         <TR>
  201.           <TD align=middle background=../image/bgline.gif colSpan=2 
  202.           height=1></TD></TR></TBODY></TABLE><BR>
  203.       <TABLE borderColor=#c0c0c0 cellSpacing=0 borderColorDark=#ffffff 
  204.       cellPadding=4 width="80%" align=center border=1>
  205.         <FORM name=register_common action=../comm_update_p.jsp method=post onSubmit="return mycheck(register_common)">
  206.         <TBODY>
  207.         <TR>
  208.           <TD align=right width="28%">登陆帐号</TD>
  209.           <TD width="72%"><%=name%><INPUT type=hidden value=<%=name%> name=name></TD></TR>
  210.         <TR>
  211.           <TD align=right width="28%">原 密 码</TD>
  212.           <TD width="72%"><INPUT 
  213.             style="BORDER-RIGHT: darkgray 1px solid; BORDER-TOP: darkgray 1px solid; FONT-SIZE: 8pt; OVERFLOW: auto; BORDER-LEFT: darkgray 1px solid; COLOR: #666666; BORDER-BOTTOM: darkgray 1px solid; FONT-FAMILY: verdana; HEIGHT: 20px" 
  214.             type=password maxLength=16 name=oldpassword> &nbsp; <A 
  215.             style="COLOR: blue" 
  216.             href="setanswer.jsp">设置取回密码问答</A> </TD></TR>
  217.         <TR>
  218.           <TD align=right width="28%">新 密 码</TD>
  219.           <TD width="72%"><input 
  220.             style="BORDER-RIGHT: darkgray 1px solid; BORDER-TOP: darkgray 1px solid; FONT-SIZE: 8pt; OVERFLOW: auto; BORDER-LEFT: darkgray 1px solid; COLOR: #666666; BORDER-BOTTOM: darkgray 1px solid; FONT-FAMILY: verdana; HEIGHT: 20px" 
  221.             type=password maxlength=16 name=password1></TD>
  222.         </TR>
  223.         <TR>
  224.           <TD align=right width="28%">密码确认</TD>
  225.           <TD width="72%"><input 
  226.             style="BORDER-RIGHT: darkgray 1px solid; BORDER-TOP: darkgray 1px solid; FONT-SIZE: 8pt; OVERFLOW: auto; BORDER-LEFT: darkgray 1px solid; COLOR: #666666; BORDER-BOTTOM: darkgray 1px solid; FONT-FAMILY: verdana; HEIGHT: 20px" 
  227.             type=password maxlength=16 name=password2></TD>
  228.         </TR>
  229.         <TR>
  230.           <TD align=middle colSpan=2><INPUT type=submit value=确认修改 name=Submit>&nbsp;&nbsp;&nbsp;&nbsp; 
  231. <INPUT type=reset value=不做修改 name=Submit2><INPUT type=hidden 
  232.             value=ok name=edit> 
  233. </TD></TR></FORM></TABLE></TD></TR><td height="2"></TBODY></TABLE>
  234. <%@ include file="foot.jsp"%>
  235. </CENTER></BODY></HTML>