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

Applet

开发平台:

Java

  1. <HTML>
  2. <HEAD>
  3. <TITLE>取回密码-第二步</TITLE>
  4. <%@ page contentType="text/html; charset=gb2312"%>
  5. <jsp:useBean id="findstep" class="MyFly.Bean.findstep" scope="request"/>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <link rel="stylesheet" href="../image/buyok_shop.css" type="text/css">
  8. </HEAD>
  9. <%
  10. String str=(String)session.getAttribute("username");
  11. findstep.getUserfind(str);
  12. String question=findstep.getUser_ques();
  13. String answer=findstep.getUser_answ();
  14. //System.out.print(answer);
  15. %>
  16. <script language="JavaScript">
  17. function checkform(){
  18. if (document.getpsw.UserAnswer.value.length ==0){
  19. alert("出错了,您没有回答问题的答案。");
  20. document.getpsw.UserAnswer.focus();
  21. return false;
  22. }
  23. if (document.getpsw.UserAnswer.value !=<%=answer%>){
  24. alert("出错了,您的回答出错了");
  25. document.getpsw.UserAnswer.focus();
  26. return false;
  27. }
  28. return true;
  29. }
  30. </script>
  31. <link href="buyok_shop.css" rel="stylesheet" type="text/css">
  32. <style type="text/css">
  33. <!--
  34. body {
  35. margin-left: 0px;
  36. margin-top: 0px;
  37. margin-right: 0px;
  38. margin-bottom: 0px;
  39. }
  40. .STYLE1 {color: #FF3300}
  41. .STYLE2 {color: #FF0000}
  42. -->
  43. </style>
  44. <title>星海网上书店</title>
  45. <body>
  46. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  47. bgColor=#ffffff border=0>
  48.   <TBODY>
  49.     <TR>
  50.       <TD width=760>
  51.         <TABLE class=4l borderColor=#ebebeb cellSpacing=0 cellPadding=0 
  52.       width="100%" align=center border=0>
  53.           <TBODY>
  54.             <TR>
  55.               <TD>
  56.                 <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
  57.             border=0>
  58.                   <TBODY>
  59.                     <TR>
  60.                       <TD colSpan=2 height=13></TD>
  61.                     </TR>
  62.                     <TR>
  63.                       <TD width=260>
  64.                         <DIV align=center><IMG height=45 
  65.                   src="../image/logo.gif" width=200></DIV></TD>
  66.                       <TD align=right width=500>
  67.                         <TABLE cellSpacing=0 cellPadding=0 width=500 align=right 
  68.                   border=0>
  69.                           <TBODY>
  70.                             <TR>
  71.                               <TD align=right width=22><IMG height=67 
  72.                         src="../image/top_1.gif" width=7></TD>
  73.                               <TD align=right width=82><A onfocus=this.blur() 
  74.                         href="../default.jsp"><IMG 
  75.                         height=67 src="../image/home.gif" width=82 
  76.                         border=0></A></TD>
  77.                               <TD align=right width=74><A onfocus=this.blur() 
  78.                         href="../newbook.jsp?pageNum=1"><IMG 
  79.                         height=67 src="../image/newbook.gif" 
  80.                         width=74 border=0></A></TD>
  81.                               <TD align=right width=79><A onfocus=this.blur() 
  82.                         href="../tuibook.jsp?pageNum=1"><IMG 
  83.                         height=67 src="../image/jptj.gif" width=79 
  84.                         border=0></A></TD>
  85.                               <TD align=right width=75><A onfocus=this.blur() 
  86.                         href="../upload_show.jsp"><IMG 
  87.                         height=67 src="../image/tejia.gif" 
  88.                         width=75 border=0></A></TD>
  89.                               <TD align=right width=78><a onFocus=this.blur() 
  90.                         href="../messagebox/indexme.jsp"><img 
  91.                         height=67 src="../image/guest.gif" 
  92.                         width=78 border=0></a></TD>
  93.                               <TD align=right width=90><A onfocus=this.blur() 
  94.                         href="../contactus.jsp"><IMG 
  95.                         height=67 src="../image/link_wo.gif" 
  96.                         width=90 
  97.             border=0></A></TD>
  98.                             </TR>
  99.                           </TBODY>
  100.                       </TABLE></TD>
  101.                     </TR>
  102.                   </TBODY>
  103.               </TABLE></TD>
  104.             </TR>
  105.           </TBODY>
  106.       </TABLE></TD>
  107.     </TR>
  108.   </TBODY>
  109. </TABLE>
  110. <TABLE width=760 border=0 cellpadding=3 cellspacing=1 align=center  bgcolor=#FFFFFF height=300    class="grayline">
  111. <tr><td width="45" height=30 align="right"><img src="../image/jt_2.gif" width="11" height="11"></td>
  112.   <td width="698">当前位置:<a href=default.asp>首页</a> > 取回密码</td>
  113. </tr> 
  114. <tr><td height="1" colspan="2" background="images/small/bgline.gif"></td></tr>
  115. <tr>
  116. <td colspan="2">
  117. <form method="post" name="getpsw" action="findstep3.jsp" onsubmit="return checkform();">
  118. <table border=0 width=547 align=center cellpadding=0 cellspacing=0  background=images/small/regbg2.gif>
  119. <tr><td width=100% height=60 valign=middle bgcolor=#FFFFFF class="new">
  120. · 不要尝试获取他人的密码,本系统有严格的检测和监视机制&nbsp;<br>
  121. · 请如实填写以下资料,以便系统为您重设密码 
  122. </td></tr>
  123. <tr><td width=547 height=12><img src=../image/regbg1.gif border=0></td></tr>
  124. <tr><td width=547 height=150 align=center  background=../image/regbg2.gif>
  125. <table border="0" width="84%" height="126">
  126.   <tr>
  127.     <td  height="31" colspan=2><b><font color="#f47d0c">第二步:请回答问题</font></b></td>
  128.   </tr>
  129.   <tr>
  130.     <td width=80 height="31">&nbsp; 1. 问题:</td>
  131.     <td  height="31"><%=question%></td>
  132.   </tr>
  133.   <tr>
  134.     <td  height="32">&nbsp; 2. 答案:</td>
  135.     <td  height="32"><input type="text" name="UserAnswer" size="20" maxlength=50></td></tr>
  136.   <tr>
  137.     <td  height="32" colspan=2>&nbsp; 3. 点击“下一步”继续</td>
  138.   </tr>
  139. </table>
  140. <tr><td width=547 height=12 bgcolor="#FFFFFF"><img src=../image/regbg3.gif border=0></td></tr>
  141. </table>
  142. <table border=0 width=547 align=center cellpadding=0 cellspacing=0>
  143. <tr><td height="100" align="center">
  144. <input type=hidden name=userid value="qazw">
  145. <input type="image" src="../image/next.gif" alt="下一步">&nbsp;&nbsp;&nbsp;&nbsp; 
  146. <a href=../default.jsp><img border=0 src="../image/exit.gif" alt="离开"></a>
  147. </td></tr></table>
  148. </form>
  149. </td>
  150. </tr>
  151. </table>
  152. <%@ include file="foot.jsp" %>