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

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. <HTML><HEAD><TITLE>图书高级搜索-</TITLE>
  4. <%@ include file ="top.jsp" %>
  5. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  6. href="image/buyok_shop.css" type=text/css rel=stylesheet><LINK 
  7. href="image/table.css" type=text/css rel=stylesheet><LINK 
  8. href="image/buyok_shop.css" type=text/css rel=stylesheet>
  9. <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
  10. <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
  11. <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
  12. <BODY>
  13. <CENTER>
  14. <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
  15. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  16. bgColor=#fafafa border=0>
  17.   <TBODY>
  18.   <TR>
  19.     <TD vAlign=top align=middle width=210>
  20.       <SCRIPT language=JavaScript>
  21. function checkform(){
  22. if (document.loginbox.name.value.length ==0){
  23. alert("出错了,您没有填写用户名。");
  24. document.loginbox.name.focus();
  25. return false;
  26. }
  27. if (document.loginbox.password.value.length==0){
  28. alert("出错了,您没有填写密码。");
  29. document.loginbox.password.focus();
  30. return false;
  31. }
  32. if (document.loginbox.yzm.value.length==0){
  33. alert("出错了,您没有填写验证码。");
  34. document.loginbox.yzm.focus();
  35. return false;
  36. }
  37. if (document.loginbox.yzm.value!=2228){
  38. alert("出错了,您填写的验证码不正确。");
  39. document.loginbox.yzm.focus();
  40. return false;
  41. }
  42. return true;
  43. }
  44. </SCRIPT>
  45.   <TABLE cellSpacing=0 cellPadding=0 width=208 border=0>
  46.         <TBODY>
  47.         <TR>
  48.           <TD vAlign=center align=middle>
  49.    <%
  50.  String userid=(String)session.getAttribute("userid");
  51.  if(userid==null)
  52. {
  53. %>
  54.             <TABLE cellSpacing=0 cellPadding=0 width=190 align=center 
  55.               border=0><TBODY>
  56.               <TR>
  57.                 <TD vAlign=top align=left width=190 height=52><IMG height=51 
  58.                   alt=登陆 src="image/login_top.gif" width=190></TD></TR>
  59.    
  60.               <TR>
  61.                 <TD height=11><IMG height=14 alt=1 
  62.                   src="image/login_1.gif" width=190></TD></TR>
  63.   
  64.               <TR>
  65.                 <TD vAlign=top align=left background=image/login_bg.gif 
  66.                 height=7>
  67.      
  68.                   <TABLE height=16 cellSpacing=0 cellPadding=0 width="100%" 
  69.                   border=0>
  70.                     <FORM name=loginbox onsubmit="return checkform();" 
  71.                     action=check_login.jsp method=post>
  72.                     <TBODY>
  73.                     <TR>
  74.                       <TD vAlign=top align=left height=16>
  75.   
  76.                         <TABLE height=72 cellSpacing=2 cellPadding=0 
  77.                         width="100%" border=0>
  78.                           <TBODY>
  79.                           <TR>
  80.                             <TD align=right width="31%">用户名:</TD>
  81.                             <TD width="45%" height=22><INPUT 
  82.                               style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana" 
  83.                               alt=请填写要登陆的用户名 maxLength=16 size=10 
  84. name=name></TD>
  85.                             <TD vAlign=top align=left width="24%" 
  86.                               rowSpan=3><INPUT type=image 
  87.                               src="image/login.gif" 
  88.                           name=imageField></TD></TR>
  89.                           <TR>
  90.                             <TD align=right>密 &nbsp;码:</TD>
  91.                             <TD height=22><INPUT 
  92.                               style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana" 
  93.                               type=password alt=请填写正确的密码 maxLength=16 size=10 
  94.                               name=password> <INPUT type=hidden value=ok 
  95.                               name=login></TD></TR>
  96.                           <TR>
  97.                             <TD align=right>验证码:</TD>
  98.                             <TD vAlign=center height=22><INPUT 
  99.                               style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana" 
  100.                               alt=请根据右边的图片填写验证码 maxLength=4 size=4 name=yzm> 
  101.                              <img src="checkCode/image.jsp" width="38" height="21" border=0></TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE></TD>
  102.               <TR>
  103.                 <TD vAlign=center align=middle 
  104.                 background=image/login_bg.gif height=10><IMG height=1
  105.                   alt=5 src="image/login_line.gif" width=189></TD>
  106.               </TR>
  107.               <TR>
  108.                 <TD vAlign=center align=middle 
  109.                 background=image/login_bg.gif height=10>
  110.                   <TABLE height=20 cellSpacing=0 cellPadding=0 width="100%" 
  111.                   border=0>
  112.                     <TBODY>
  113.                     <TR>
  114.                       <TD align=middle width=95><IMG height=5 alt=4 
  115.                         src="image/login_bt.gif" width=5> <A 
  116.                         href="reginfo.jsp">注 册</A></TD>
  117.                       <TD align=middle width=95><IMG height=5 alt=3 
  118.                         src="image/login_bt.gif" width=5> <A 
  119.                         href="UserCenter/findstep1.jsp">找回密码</A></TD>
  120.                     </TR></TBODY></TABLE></TD></TR>
  121.               <TR>
  122.         <TD height=13><IMG height=13 alt=2 
  123.                   src="image/login_2.gif" 
  124.           width=190></TD></TR></TABLE>
  125.  <%
  126. }
  127. else
  128. {
  129.    String name=(String)session.getAttribute("name");
  130.                                    String goods_num=String.valueOf((Integer)session.getAttribute("goods_num"));
  131.            String goods_price=String.valueOf((Float)session.getAttribute("goods_price"));
  132.       if(goods_price=="null")
  133.    {
  134.    goods_price="0";
  135.   
  136.    } 
  137.     if(goods_num=="null")
  138.    {
  139.    goods_num="0";
  140.   
  141.    }
  142. %>
  143.  <TABLE height=16 cellSpacing=0 cellPadding=0 
  144.                         width="91%" border=0>
  145.     <TBODY>
  146.   <TR>
  147.                 <TD vAlign=top align=left width=190 height=52><IMG height=51 
  148.                   alt=登陆 src="image/login_top.gif" width=190></TD></TR>
  149.    
  150.               <TR>
  151.                 <TD height=11><IMG height=14 alt=1 
  152.                   src="image/login_1.gif" width=190></TD></TR>
  153.       <TR>
  154.         <TD vAlign="middle" align="center"
  155.                             background="image/login_bg.gif" 
  156.                             height=25><%=name%>,您的购物车中有 <FONT color=red><%=goods_num%></FONT> 件图书</TD>
  157.       </TR>
  158.       <TR>
  159.         <TD vAlign=center align=middle 
  160.                             background=image/login_bg.gif 
  161.                             height=25>总计货款: <FONT color=red><%=goods_price%></FONT> 元</TD>
  162.       </TR>
  163.       <TR>
  164.         <TD vAlign=center align=middle 
  165.                             background=image/login_bg.gif 
  166.                             height=25><A 
  167.                               href="UserCenter/usermanage.jsp"><FONT 
  168.                               color=red><U 
  169.                               title=进入会员中心>会员中心</U></FONT></A>&nbsp;&nbsp;<SPAN 
  170.                               style="CURSOR: hand" 
  171.                               onclick="window.open('shopcar/cartlist.jsp','blank_','scrollbars=yes,resizable=no,width=650,height=450')"><FONT 
  172.                               color=red><U title=查看购物车>购 物 车</U></FONT></SPAN></TD>
  173.       </TR>
  174.       <TR>
  175.         <TD height=13><IMG height=13 alt=2 
  176.                               src="image/login_2.gif" 
  177.                             width=190></TD>
  178.       </TR>
  179.     </TBODY>
  180.   </TABLE>
  181. <%}%>
  182.   </TD></TR></TABLE>
  183.       <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  184.         <TBODY>
  185.         <TR>
  186.           <TD vAlign=top align=left>
  187.             <TABLE height=263 cellSpacing=0 cellPadding=0 width=200 align=left 
  188.             border=0>
  189.               <TBODY>
  190.               <TR>
  191.                 <TD width=206 height=31><IMG height=50 
  192.                   src="image/lei.gif" width=200></TD></TR>
  193.               <TR>
  194.                 <TD vAlign=top align=middle height=189>
  195.                   <TABLE height=226 cellSpacing=0 cellPadding=0 width=190 
  196.                   align=center background=image/leftlist_bg.jpg border=0>
  197.                     <TBODY>
  198.                     <TR>
  199.                       <TD vAlign=top align=middle 
  200.                       background=image/leftlist_bg.jpg bgColor=#ebebeb 
  201.                       height=189>
  202.                         <TABLE cellSpacing=0 cellPadding=0 width="88%" 
  203.                         bgColor=#fafafa border=0>
  204.                           <TBODY>
  205.                             <TR>
  206.                               <TD background=image/erbook.com.htm 
  207.                             height=11>
  208.                                 <TABLE height=9 cellSpacing=0 cellPadding=0 
  209.                               width="100%" align=center border=0>
  210.                                   <TBODY>
  211.                                     <TR>
  212.                                       <TD   bgColor=#ffffff></TD>
  213.                                     </TR>
  214.                                   </TBODY>
  215.                               </TABLE></TD>
  216.                             </TR>
  217.                             <%
  218.  characterclassBeans.getQuery("-1");
  219. for(int i_c=0; i_c<characterclassBeans.getItems(); i_c++)//第一层循环读出大类
  220.     {
  221.   
  222. %>
  223.                             <TR>
  224.                               <TD style="PADDING-LEFT: 20px" 
  225.                             background=image/erbook.com.htm 
  226.                               height=23><IMG height=9 
  227.                               src="image/bit05.gif" width=8 
  228.                               align=absMiddle> <A class=lei1 
  229.                               onclick=javascript:ShowFLT(<%=(i_c+1)%>) 
  230.                               href="javascript:void(null)"><%=characterclassBeans.getCharacterName(i_c)%></A> </TD>
  231.                             </TR>
  232.                             <TR id=LM<%=(i_c+1)%> style="DISPLAY: none">
  233.                               <TD>
  234.                                 <TABLE cellSpacing=2 cellPadding=0 width="100%" 
  235.                               border=0>
  236.                                   <TBODY>
  237.                                     <%
  238. int j_u=characterclassBeans.getCharacterID(i_c);
  239. int num1=useclassBeans.getQuerycha(j_u);
  240.  for(int i_q=0; i_q<num1; i_q++)
  241.  {
  242. %>
  243.                                     <TR>
  244.                                       <TD style="PADDING-LEFT: 40px" height=23> <IMG height=7 src="image/bit06.gif" width=8 align=absMiddle> <A  href="prosort.jsp?proType=<%=java.net.URLEncoder.encode(useclassBeans.getUseclassName(i_q),"utf-8")%>
  245. &pageNum=1&proNum=<%=useclassBeans.getUseclassID(i_q)%>"  target=_blank><%=useclassBeans.getUseclassName(i_q)%></A> </TD>
  246.                                     </TR>
  247.                                     <%}
  248. %>
  249.                                   </TBODY>
  250.                               </TABLE></TD>
  251.                             </TR>
  252.                             <%}
  253. %>
  254.                             <TR id=LM18 style="DISPLAY: none">
  255.                               <TD>&nbsp; </TD>
  256.                             </TR>
  257.                           </TBODY>
  258.                         </TABLE></TD></TR></TBODY></TABLE>
  259.                   <SCRIPT language=javascript id=clientEventHandlersJS>
  260. <!--
  261. var number=3;
  262. function LMYC() {
  263. var lbmc;
  264. //var treePic;
  265.     for (i=1;i<=number;i++) {
  266.         lbmc = eval('LM' + i);
  267.         //treePic = eval('treePic'+i);
  268.         //treePic.src = 'images/file.gif';
  269.         lbmc.style.display = 'none';
  270.     }
  271. }
  272.  
  273. function ShowFLT(i) {
  274.     lbmc = eval('LM' + i);
  275.     //treePic = eval('treePic' + i)
  276.     if (lbmc.style.display == 'none') {
  277.         LMYC();
  278.         //treePic.src = 'images/nofile.gif';
  279.         lbmc.style.display = '';
  280.     }
  281.     else {
  282.         //treePic.src = 'images/file.gif';
  283.         lbmc.style.display = 'none';
  284.     }
  285. }
  286. //-->
  287.       </SCRIPT>
  288.                   <IMG height=9 src="image/leftlist_bottom.gif" 
  289.                   width=190></TD></TR></TBODY></TABLE></TD></TR>
  290.         <TR>
  291.           <TD vAlign=top align=left>&nbsp;</TD></TR></TBODY></TABLE></TD>
  292.     <TD width=1 bgColor=#cccccc></TD>
  293.     <TD vAlign=top align=middle width=550 bgColor=#fdfdfd>
  294.       <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0>
  295.         <TBODY>
  296.         <TR>
  297.           <TD align=right width="6%"><IMG height=11 
  298.             src="image/jt_2.gif" width=11></TD>
  299.           <TD height=30>当前位置:<A 
  300.             href="default.jsp">首页</A> &gt; 
  301.         服务中心</TD></TR></TBODY></TABLE>
  302.       <P align=left><FONT 
  303.       color=red>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>根据以下一个或多个复合条件搜索:</B></FONT> 
  304.       <table 
  305.       style="BORDER-RIGHT: 0px dotted; BORDER-TOP: 0px dotted; BORDER-LEFT: 0px dotted; BORDER-BOTTOM: 0px dotted; BORDER-COLLAPSE: collapse" 
  306.       bordercolor=#333333 cellspacing=0 cellpadding=2 width="90%" align=center 
  307.       border=1>
  308.         <form name=search action=searchPro.jsp?pageNum=1 method=post>
  309.           <tbody>
  310.             <tr>
  311.               <td align=middle width="25%">根据图书名称 </td>
  312.               <td><input class=4l maxlength=20 name=name_key></td>
  313.             </tr>
  314.             <tr>
  315.               <td align=middle width="25%">根据图书作者 </td>
  316.               <td><input class=4l maxlength=20 name=writer_key></td>
  317.             </tr>
  318.             <tr>
  319.               <td align=middle width="25%">根据条形码 </td>
  320.               <td><input class=4l maxlength=20 name=code_key></td>
  321.             </tr>
  322.             <tr>
  323.               <td align=middle width="25%">根据出版社 </td>
  324.               <td><input class=4l maxlength=20 name=cbs_key></td>
  325.             </tr>
  326.             <tr>
  327.               <td align=middle width="25%">根据图书价格 </td>
  328.               <td>价格范围:从
  329.                   <input class=4l maxlength=5 size=5 name=jg1_key>
  330.           元 至
  331.           <input class=4l maxlength=5 size=5 name=jg2_key>
  332.           元</td>
  333.             </tr>
  334.             <tr>
  335.               <td align=middle width="25%">搜索结果排序方式 </td>
  336.               <td><br>
  337.                   <input type=radio checked value=1 name=paixu>
  338.           按出版日期<br>
  339.           <br>
  340.           <input type=radio value=2 name=paixu>
  341.           按图书价格</td>
  342.             </tr>
  343.             <tr>
  344.               <td colspan=2>
  345.                 <div align=center>
  346.                   <input type=hidden value=ok name=action>
  347.                   <input type=submit value=开始搜索 name=action>
  348.               </div></td>
  349.             </tr>
  350.         </form>
  351.               
  352.       </table>      </P>
  353.   </TR></TBODY></TABLE><LINK 
  354. href="image/main.css" type=text/css rel=stylesheet><LINK 
  355. href="image/buyok_shop.css" type=text/css rel=stylesheet>
  356. <STYLE type=text/css>BODY {
  357. MARGIN: 0px
  358. }
  359. </STYLE>
  360. <LINK 
  361. href="image/main.css" type=text/css rel=stylesheet><LINK 
  362. href="image/buyok_shop.css" type=text/css rel=stylesheet>
  363. <STYLE type=text/css>BODY {
  364. MARGIN: 0px
  365. }
  366. </STYLE>
  367. <%@ include file ="foot.jsp" %></CENTER></BODY></HTML>