- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
searchPro1.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:14k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.lang.*" errorPage="" %>
- <jsp:useBean id="productinfoBeans" class="MyFly.Bean.productinfoBeans" scope="request"/>
- <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <%@ include file ="top.jsp" %>
- <script language="javascript" src="js/showimg.js"></script>
- <script language="javascript">
- function openScript(url,name, width, height){
- var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
- }
- </script>
- <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE></TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet><LINK
- href="image/table.css" type=text/css rel=stylesheet><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <STYLE type=text/css>.STYLE4 {
- FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #0072a8; TEXT-DECORATION: underline
- }
- .lei1 {
- FONT-SIZE: 13px
- }
- .STYLE5 {
- FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #0099cc
- }
- .red1 {
- COLOR: #ff0000
- }
- </STYLE>
- <%
- request.setCharacterEncoding("gb2312");
- String pageSize="5";
- String protype="searchPro";
- //String KeyWords=new String(request.getParameter("keywords").getBytes("8859_1")); //取得子类getyong
- String KeyWords=request.getParameter("keywords");
- String pageNum=request.getParameter("pageNum");
- //if(KeyWords==" "||KeyWords==null)
- // {
- //out.println("<Script language=JavaScript>alert('请填写搜索的内容');JavaScript:history.back();</Script>");
- // }
- //String url=request.getRequestURI();
- productinfoBeans.setName(KeyWords);
- productinfoBeans.setProType(protype);
- productinfoBeans.setPageSize(Integer.parseInt(pageSize));
- productinfoBeans.setPageNum(pageNum);
- productinfoBeans.init();
- productinfoBeans.selectProductName(KeyWords);
- int num=productinfoBeans.getItems();
- int pageCount=productinfoBeans.getPageCount();
- //System.out.print(proNum);
- ///System.out.println(url);
- //productinfoBeans.setProType(proType);
- ///productinfoBeans.setProNum(proNum);
- //productinfoBeans.setPageSize(Integer.parseInt(pageSize));
- //productinfoBeans.setPageNum(pageNum);
- //productinfoBeans.init();
- //productinfoBeans.getQuery(); //查询
- //int num=productinfoBeans.getItems();
- //int pageCount=productinfoBeans.getPageCount();
- //
- %>
- <LINK href="image/table.css" type=text/css rel=stylesheet>
- <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
- <BODY><LINK href="image/buyok_shop.css" type=text/css
- rel=stylesheet>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- .STYLE1 {
- COLOR: #ff3300
- }
- .STYLE2 {
- COLOR: #ff0000
- }
- </STYLE>
- <META name=KEYWords
- contect="网上书城,网上购书,书,买书,卖书,购书,网上书店,广东,东莞,永正,购书中心,文学,经济,工商,计算机,电脑,教育,音像,电子,医药卫生,建筑工业,艺术,法律,历史,外语,儿童,动漫,小说">
- <STYLE type=text/css>BODY {
- FONT-SIZE: 12px
- }
- TD {
- FONT-SIZE: 12px
- }
- TH {
- FONT-SIZE: 12px
- }
- BODY {
- MARGIN: 0px
- }
- </STYLE>
- <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center
- border=0>
- <TBODY>
- <TR>
- <TD class=right vAlign=top align=left width=210 height=239 rowSpan=2>
- <STYLE type=text/css>.STYLE4 {
- FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #0072a8; TEXT-DECORATION: underline
- }
- .STYLE5 {
- FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #0099cc
- }
- </STYLE>
- <LINK href="image/buyok_shop.css" type=text/css
- rel=stylesheet>
- <TABLE height=263 cellSpacing=0 cellPadding=0 width=200 align=left
- border=0>
- <TBODY>
- <TR>
- <TD width=206 height=31><IMG height=50
- src="image/lei.gif" width=200></TD></TR>
- <TR>
- <TD vAlign=top align=middle height=189>
- <TABLE height=226 cellSpacing=0 cellPadding=0 width=190 align=center
- background=image/leftlist_bg.jpg border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle
- background=image/leftlist_bg.jpg bgColor=#ebebeb
- height=189><TABLE cellSpacing=0 cellPadding=0 width="88%"
- bgColor=#fafafa border=0>
- <TBODY>
- <TR>
- <TD background=image/erbook.com.htm
- height=11>
- <TABLE height=9 cellSpacing=0 cellPadding=0
- width="100%" align=center border=0>
- <TBODY>
- <TR>
- <TD bgColor=#ffffff></TD>
- </TR>
- </TBODY>
- </TABLE></TD>
- </TR>
- <%
- characterclassBeans.getQuery("-1");
- for(int i_c=0; i_c<characterclassBeans.getItems(); i_c++)//第一层循环读出大类
- {
- %>
- <TR>
- <TD style="PADDING-LEFT: 20px"
- background=image/erbook.com.htm
- height=23><IMG height=9
- src="image/bit05.gif" width=8
- align=absMiddle> <A class=lei1
- onclick=javascript:ShowFLT(<%=(i_c+1)%>)
- href="javascript:void(null)"><%=characterclassBeans.getCharacterName(i_c)%></A> </TD>
- </TR>
- <TR id=LM<%=(i_c+1)%> style="DISPLAY: none">
- <TD>
- <TABLE cellSpacing=2 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <%
- int j_u=characterclassBeans.getCharacterID(i_c);
- int num1=useclassBeans.getQuerycha(j_u);
- for(int i_q=0; i_q<num1; i_q++)
- {
- %>
- <TR>
- <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")%>
- &pageNum=1&proNum=<%=useclassBeans.getUseclassID(i_q)%>" target=_blank><%=useclassBeans.getUseclassName(i_q)%></A> </TD>
- </TR>
- <%}
- %>
- </TBODY>
- </TABLE></TD>
- </TR>
- <%}
- %>
- <TR id=LM18 style="DISPLAY: none">
- <TD> </TD>
- </TR>
- </TBODY>
- </TABLE>
- <SCRIPT language=javascript id=clientEventHandlersJS>
- <!--
- var number=3;
- function LMYC() {
- var lbmc;
- //var treePic;
- for (i=1;i<=number;i++) {
- lbmc = eval('LM' + i);
- //treePic = eval('treePic'+i);
- //treePic.src = 'images/file.gif';
- lbmc.style.display = 'none';
- }
- }
- function ShowFLT(i) {
- lbmc = eval('LM' + i);
- //treePic = eval('treePic' + i)
- if (lbmc.style.display == 'none') {
- LMYC();
- //treePic.src = 'images/nofile.gif';
- lbmc.style.display = '';
- }
- else {
- //treePic.src = 'images/file.gif';
- lbmc.style.display = 'none';
- }
- }
- //-->
- </SCRIPT>
- </TD>
- </TR></TBODY></TABLE><IMG
- height=9 src="image/leftlist_bottom.gif"
- width=190></TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top align=left width=550>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
- <TBODY>
- <TR>
- <TD><IMG height=201 src="image/tops.gif"
- width=550></TD></TR></TBODY></TABLE>
- <DIV align=center>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD height=25><IMG height=11 src="image/jt_2.gif"
- width=11 align=absMiddle> <strong>当前位置:</strong><a href="default.jsp">首页</a><strong>—> </strong>搜索结果 <FONT
- class=orge size=2><B></FONT></TD>
- </TR>
- <TR>
- <TD background=image/bgline.gif
- height=1></TD></TR></TBODY></TABLE>
- <%
- if(num==-1)
- {
- out.print("<table width="485" height="145" border="0" align="center" cellpadding="0" cellspacing="0">");
- out.print("<tr><td>对不起暂时没有您要的图书,请试试<font color="red">高级查询</font></td></tr>");
- out.print("</table>");
- }
- else
- {
- for(int i=0;i<num;i++)
- {
- %>
- <table width="485" height="145" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><img src="image/bg_top.jpg" width="485" height="14"></td>
- </tr>
- <tr>
- <td height="128" align="left" valign="top" background="image/bg_line.jpg"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="170" align="center" valign="top"><table width="116" height="136" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" valign="middle" background="image/bg.jpg">
- <a href="listbook.jsp?proNum=<%=productinfoBeans.getProductID(i).replace('#', ',')%>">
- <%
- String proNum1=productinfoBeans.getProductID(i);
- String proNum2=proNum1.replace(',','#');
- productinfoBean.getNew(proNum2);
- String num1=productinfoBeans.getProductID(i).replace('#', '1');
- %>
- <img src="product_image/<%=productinfoBeans.getMinPicture(i)%>" onMouseOver="showBigImg('<%=productinfoBean.getMaxPicture()%>',<%=num%>,event);" onMouseOut="mouseout('<%=productinfoBeans.getMinPicture(i)%>',event)" width="93" height="112" border="0"></a>
- </td>
- </tr>
- </table></td>
- <td width="65%" align="left" valign="top"><table width=100% border=0 cellpadding="0" cellspacing="0" style="table-layout:fixed;word-break:break-all">
- <tr>
- <td height=20 width=77>【书 名】</td>
- <td width="228" height="25"><%=productinfoBeans.getProductName(i)%></td>
- </tr>
- <tr>
- <td height=20>【作 者】</td>
- <td height="20"><%=productinfoBeans.getAuthor(i)%> </td>
- </tr>
- <tr>
- <td height="20" valign=middle>【出版社】</td>
- <td height="20"><%=productinfoBeans.getPublish(i)%></td>
- </tr>
- <tr>
- <td height="20" valign=middle>【上架日期】</td>
- <td height="20" ><%=productinfoBeans.getShangData(i)%></td>
- </tr>
- <tr>
- <td width=77 height="20" valign=middle>【商品价格】</td>
- <td height="20" >原价:<%=productinfoBeans.getMarketPrice(i)%> 会员价:<span class="red1">¥<a class="font"><%=productinfoBeans.getPreferPrice(i)%></a></span></td>
- </tr>
- <tr>
- <td height="35" colspan=2 align=center><a href=listbook.jsp?proType=<%=productinfoBeans.getUseclassID(i)%>&proNum=<%=productinfoBeans.getProductID(i).replace('#', ',')%>><img src=image/xiangxi.jpg alt=详细了解 width="102" height="32" border=0 align="left"></a> <span style="CURSOR: hand" onClick="openScript('purchasecart.jsp?bookid=<%=num1 %>','pur',650,300);"><img src=image/buynow.jpg alt=千寻万觅,要的就是她 width="90" height="32" border=0></span> <SPAN style="CURSOR: hand"
- onclick="openScript('UserCenter/collection.jsp?bookid=<%= num1 %>','collection',650,300);"> <img src=image/favnow.jpg alt=好东东,收藏起来先 width="90" height="32" border=0></span> </td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><img src="image/bg_bt.jpg" width="485" height="14"></td>
- </tr>
- </table>
- <%}}%>
- </DIV></TD></TR>
- <TR>
- <TD vAlign=top align=left>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center
- bgColor=#ffffff border=0>
- <TBODY>
- <TR>
- <TD height=10>
- <HR id=hr width="100%" SIZE=1>
- </TD></TR>
- <tr>
- <td height="23" align="center">
- <!-- 放分页代码-->
- <div align="right"><a href="searchPro1.jsp?pageNum=<%=Integer.parseInt(pageNum)%>&keywords=<%=KeyWords%>">首页</a>
- <%
- if(Integer.parseInt(pageNum) > 1)
- {
- %>
- <a href="searchPro1.jsp?pageNum=<%=Integer.parseInt(pageNum)-1%>&keywords=<%=KeyWords%>">上一页</a>
- <%
- }
- %>
- <%
- if(Integer.parseInt(pageNum) < pageCount)
- {
- %>
- <a href="searchPro1.jsp?pageNum=<%=Integer.parseInt(pageNum)+1%>&keywords=<%=KeyWords%>">下一页</a>
- <%
- }
- %>
- <a href="searchPro1.jsp?pageNum=<%=pageCount%>&keywords=<%=KeyWords%>">尾页</a>
- 页次:<STRONG><FONT color=red><%=Integer.parseInt(pageNum)%></FONT>/<%=pageCount%></STRONG>页 </div>
- </td>
- </tr></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <%@ include file ="foot.jsp" %>
- </BODY></HTML>