- 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源码
prosort.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:12k
源码类别:
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.*,java.net.*" 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"/>
- <script language="javascript" src="js/showimg.js"></script>
- <%@ include file ="top.jsp" %>
- <%!
- String fun(String str)
- {
- try
- {
- return new String(str.getBytes("ISO8859_1"));
- }
- catch(Exception e)
- {
- return "";
- }
- }
- %>
- <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="12";
- //String str = new String(request.getParameter("something").getBytes("ISO-8859-1"),"utf-8")
- String proType=request.getParameter("proType"); //取得子类
- String pageNum=(String)request.getParameter("pageNum"); //取得想要显示的页
- String proNum=(String)request.getParameter("proNum"); // 取得类别编号
- 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();
- //String s=java.net.URLEncoder.encode(proType,"gb2312");
- //System.out.print(URLEncode.encode(proType,"utf-8"));
- %>
- <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>
- <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/tsfl_top.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> 当前位置:<A
- href="default.jsp">首页</A>>><A
- href="#">图书分类</A>>> <FONT
- class=orge size=2><B>
- <%=proType%></FONT></TD></TR>
- <TR>
- <TD background=image/bgline.gif
- height=1></TD></TR></TBODY></TABLE>
- <TABLE>
- <TBODY>
- <%
- 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
- {
- int t = (num%2 == 0)? num/2 : num/2+1;
- for(int i=0; i<t; i++)//行数
- {
- %>
- <TR>
- <%
- for(int j=0;j<2;j++)//一行两个
- {
- if(2*i+j == num)
- {
- break;
- }
- %>
- <TD>
- <DIV></DIV>
- <CENTER>
- <TABLE cellSpacing=0 cellPadding=0 width=270 align=left
- bgColor=#cccccc border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle width=130 bgColor=#ffffff
- height=130>
- <TABLE height=136 cellSpacing=0 cellPadding=0 width=116
- align=center border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle
- background=image/bg.jpg>
- <a href="listbook.jsp?proNum=<%=productinfoBeans.getProductID(2*i+j).replace('#', ',')%>&proType=<%=proType%>">
- <%
- String proNum1=productinfoBeans.getProductID(2*i+j);
- String proNum2=proNum1.replace(',','#');
- productinfoBean.getNew(proNum2);
- String num1=productinfoBeans.getProductID(i).replace('#', '1');
- %>
- <img src="product_image/<%=productinfoBeans.getMinPicture(2*i+j)%>" onMouseOver="showBigImg('<%=productinfoBean.getMaxPicture()%>',<%=num1%>,event);" onMouseOut="mouseout('<%=productinfoBeans.getMinPicture(2*i+j)%>',event)" width="93" height="112" border="0"></a>
- </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=center align=left width=140 bgColor=#ffffff>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD height=25><A
- href="http://www.erbook.com.cn/list.asp?sp_code=978780115677801"
- target=_blank><SPAN
- class=font_blu><%=productinfoBeans.getProductName(2*i+j)%></SPAN></A></TD></TR>
- <TR>
- <TD height=20>作者:<%=productinfoBeans.getAuthor(2*i+j)%> </TD></TR>
- <TR>
- <TD height=20>出版日期:<%=productinfoBeans.getShangData(2*i+j)%></TD></TR>
- <TR>
- <TD height=20>原 价:<%=productinfoBeans.getMarketPrice(2*i+j)%></TD></TR>
- <TR>
- <TD height=20>会员价:<SPAN class=red1>¥<A
- class=font><%=productinfoBeans.getPreferPrice(2*i+j)%></A></SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></CENTER></TD>
- <%}%>
- </TR>
- <%
- }
- %>
- </TBODY></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="prosort.jsp?proType=<%=proType%>&pageNum=1&proNum=<%=Integer.parseInt(proNum)%>">首页</a>
- <%
- if(Integer.parseInt(pageNum) > 1)
- {
- %>
- <a href="prosort.jsp?proType=<%=proType%>&pageNum=<%=Integer.parseInt(pageNum)-1%>&proNum=<%=Integer.parseInt(proNum)%>">上一页</a>
- <%
- }
- %>
- <%
- if(Integer.parseInt(pageNum) < pageCount)
- {
- %>
- <a href="prosort.jsp?proType=<%=proType%>&pageNum=<%=Integer.parseInt(pageNum)+1%>&proNum=<%=Integer.parseInt(proNum)%>">下一页</a>
- <%
- }
- %>
- <a href="prosort.jsp?proType=<%=proType%>&pageNum=<%=pageCount%>&proNum=<%=Integer.parseInt(proNum)%>">尾页</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>