jjyp.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.*" errorPage="" %>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <jsp:useBean id="productinfoBeans" class="MyFly.Bean.productinfoBeans" scope="request"/>
- <jsp:useBean id="useclassBean" class="MyFly.Bean.useclassBean" scope="request"/>
- <jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
- <jsp:useBean id="friendlinkBeans" class="MyFly.Bean.friendlinkBeans" scope="request"/>
- <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
- <script language="javascript" src="js/showimg.js"></script>
- <%@ include file ="top_chanpinzhongxin.jsp"%>
- <%
- String Type="";
- String pageSize="5";
- String proType=(String)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();
- %>
- <HTML><HEAD><TITLE>仙客吧, 每时每刻, 仙妮蕾德,每时每刻贸易公司,每时每刻,每时每刻贸易有限公司,仙妮蕾德论坛,仙妮蕾德事业论坛,仙妮蕾德产品论坛,生之源,力之源,维体力,蔻蒂森,加力能,Sunrider, Money, Fortune, Health,二十一世纪,财富第五波,黄金产业,加盟,开店,健康,亚健康,疾病,糖尿病,高血压,高脂肪,尿结石,尿毒症,头痛,感冒,健康论坛,事业分享,产品分享,高考,美容,绿色产品,保健产品,杭州, 食疗,食养,膳食,营养,杭州市, 上海市, 浙江省, 做生意, 发财, 发财致富, 特许经营, 连锁加盟, 商务部, 营养学, 营养师, 营养论坛, 创业,心脏病, 痛风, 腰肌劳损, 腰酸背痛, 关节炎, 肝硬化,减肥, 瘦身, 苗条, 肌肉, 长高, 聪明, 机会分享、财富分享、希望分享、事业中心、创业中心、商机、商业机会,安利、完美、立新世纪、优莎娜、如新、南方李锦记、康宝莱、罗麦</TITLE>
- <META content="text/html; charset=gb2312" http-equiv=Content-Type>
- <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
- <META content="Visual Basic 7.0" name=CODE_LANGUAGE>
- <META content=JavaScript name=vs_defaultClientScript>
- <STYLE type=text/css>
- TD {
- FONT-SIZE: 9pt; LETTER-SPACING: 0.02em
- }
- A {
- COLOR: #000000; TEXT-DECORATION: none
- }
- A:hover {
- COLOR:#ff6600 ; POSITION: relative; RIGHT: 0px; TOP: 1px
- }
- .hg {
- LINE-HEIGHT: 18px
- }
- .whitetx {
- COLOR: #000000;
- }
- .ibox {
- BACKGROUND-COLOR: #EEFBEA; BORDER-BOTTOM: #00CC00 1px solid; BORDER-LEFT: #00CC00 1px solid; BORDER-RIGHT: #00CC00 1px solid; BORDER-TOP: #00CC00 1px solid; FONT-SIZE: 12px; HEIGHT: 16px
- }
- .style2 {color: #808080}
- .style7 {color: #000000}
- .style8 {color: #F5BA5E}
- .opacity {FILTER: alpha(opacity=100)
- }
- .style3 {color: #FF0099}
- </STYLE>
- <BODY background="image/bk.jpg" leftMargin=0 topMargin=0>
- <SCRIPT event=FSCommand() for=sinadl language=JavaScript>
- huashuolayer2.style.visibility='hidden';
- huashuolayer3.style.visibility='hidden';
- </SCRIPT>
- <table width="771" height="410" border="0" align="center" cellspacing="0" background="image/bk1.jpg">
- <tr valign="top">
- <td width="160" height="55" background="image/spfl1.jpg"> </td>
- <td width="13" rowspan="5" background="0"> </td>
- <td width="592" rowspan="5"><table width="99%" height="245" border="0" cellspacing="0">
- <tr>
- <td height="25"><table width="99%" border="0">
- <tr>
- <td width="8%"> </td>
- <td width="71%"><img src="image/xz07.gif" width="16" height="16"> <strong>当前位置:</strong><a href="index.jsp">首页</a><strong>—> </strong>产品中心<strong>—> </strong>
- <%
- try
- {
- if(proType.equals("useType"))
- {
- useclassBean.getNew(Integer.parseInt(proNum));
- Type=useclassBean.getUseclassName();
- }
- else
- {
- characterclassBean.getNew(Integer.parseInt(proNum));
- Type=characterclassBean.getCharacterName();
- }
- }catch(Exception e)
- {
- Type="";
- }
- %>
- <%=Type%>
- </td>
- <td width="21%"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="219" align="center" valign="top"><table border=0 cellpadding=0 cellspacing=1 width="100%">
- <tbody>
- <tr>
- <td rowspan=6 width="30%">
- </table>
- <table width="99%" height="213" border="0" cellspacing="0">
- <tr>
- <td width="78%" height="28" align="left"> </td>
- <td width="22%" align="left">本页共有 <%=num%> 个产品 </td>
- </tr>
- <TR>
- <TD colspan="2" rowSpan=6>
- <%
- for(int i=0; i<num; i++)
- {
- %>
- <TABLE border=0 cellPadding=0 cellSpacing=1 width="100%">
- <TBODY>
- <TR>
- <TD rowSpan=6 width="30%">
- <DIV align=center><a href="product_detail.jsp?proNum=<%=productinfoBeans.getProductID(i).replace('#', ',')%>&proType=<%=Type%>">
- <%
- 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()%>',<%=num1%>,event);" onMouseOut="mouseout('<%=productinfoBeans.getMinPicture(i)%>',event)" width="93" height="112" border="0"></a> </DIV></TD>
- <!--img
- onMouseOver="showBigImg('3.jpg', 1, event);"
- onMouseOut="mouseout('2.jpg', event)"
- height=80
- src="2/2.jpg"
- width=80 border=0
- Math.Random()//0-1的数
- -->
- <TD width="13%" height=38 valign="bottom">产品名称:</TD>
- <TD width="57%" valign="bottom"><%=productinfoBeans.getProductName(i)%></A></TD>
- </TR>
- <TR>
- <TD height=22 width="13%">产品编号:</TD>
- <TD><%=productinfoBeans.getProductID(i)%></TD>
- </TR>
- <TR>
- <TD height=21>所属类别:</TD>
- <TD><%=Type%></TD>
- </TR>
- <TR>
- <TD height=18>详细信息:</TD>
- <TD>
- <a href="product_detail.jsp?proNum=<%=productinfoBeans.getProductID(i).replace('#', ',')%>&proType=<%=Type%>"><img src="yanshi_image/arrow_7.gif" width="52" height="18"
- border=0></a></TD>
- </TR>
- <TR> </TR>
- <TR>
- <TD bgColor=#83D8EC colSpan=3 height=3></TD>
- </TR>
- </TBODY>
- </TABLE>
- <%
- }
- %>
- </TD>
- </TR>
- <TR> </TR>
- <TR> </TR>
- <TR> </TR>
- <TR> </TR>
- <TR> </TR>
- <tr>
- <td height="31" colspan="2" align="right" valign="top"><table width="77%" border="0" cellspacing="0">
- <tr>
- <td height="29" align="right" valign="middle"><table width="96%" border="0">
- <tr>
- <td height="23" align="center">
- <a href="jjyp.jsp?proType=<%=proType%>&pageNum=1&proNum=<%=Integer.parseInt(proNum)%>">首页</a>
- <%
- if(Integer.parseInt(pageNum) > 1)
- {
- %>
- <a href="jjyp.jsp?proType=<%=proType%>&pageNum=<%=Integer.parseInt(pageNum)-1%>&proNum=<%=Integer.parseInt(proNum)%>">上一页</a>
- <%
- }
- %>
- <%
- if(Integer.parseInt(pageNum) < pageCount)
- {
- %>
- <a href="jjyp.jsp?proType=<%=proType%>&pageNum=<%=Integer.parseInt(pageNum)+1%>&proNum=<%=Integer.parseInt(proNum)%>">下一页</a>
- <%
- }
- %>
- <a href="jjyp.jsp?proType=<%=proType%>&pageNum=<%=pageCount%>&proNum=<%=Integer.parseInt(proNum)%>">尾页</a>
- 页次:<STRONG><FONT
- color=red><%=Integer.parseInt(pageNum)%></FONT>/<%=pageCount%></STRONG>页 <B>5</B>个产品/页 <!--;转到:-->
- </td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- <tr valign="top">
- <td height="91" background="image/spfl22.jpg"><table width="97%" height="359" border="0" cellspacing="0">
- <tr>
- <td height="359" valign="top"><table width="99%" height="124" border="0" cellspacing="0">
- <tr>
- <td height="124" valign="top"><table width="151" height="86" cellpadding="0" cellspacing="0">
- <tr>
- <td height="23" colspan="2" valign="middle"> <span class="style3">---- <font style="font-size:13px;font-weight: bold">用途类别 ----</font></span></td>
- </tr>
- <%
- useclassBeans.getQuery("-1");
- for(int i=0; i<useclassBeans.getItems(); i++)
- {
- %>
- <tr>
- <td width="18" height="18" align="center" valign="middle">·</td>
- <td width="129" valign="middle" class="left"><a href="jjyp.jsp?proType=useType&pageNum=1&proNum=<%=useclassBeans.getUseclassID(i)%>"><%=useclassBeans.getUseclassName(i)%></a></td>
- </tr>
- <%
- }
- %>
- <tr>
- <td height="25" colspan="2" valign="middle"> <span class="style3"> ---- <font style="font-size:13px;font-weight: bold">性质类别 ----</font></span><font style="font-size:13px;font-weight: bold"> </font></td>
- </tr>
- <%
- characterclassBeans.getQuery("-1");
- for(int i=0; i<characterclassBeans.getItems(); i++)
- {
- %>
- <tr>
- <td width="18" height="18" align="center" valign="middle">·</td>
- <td width="129" valign="middle" class="left"><a href="jjyp.jsp?proType=characterType&pageNum=1&proNum=<%=characterclassBeans.getCharacterID(i)%>"><%=characterclassBeans.getCharacterName(i)%></a></td>
- </tr>
- <%
- }
- %>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- <tr valign="top">
- <td height="15" background="image/spfl23.jpg"> </td>
- </tr>
- <tr valign="top">
- <td height="55" background="image/yqlj.jpg"> </td>
- </tr>
- <tr align="center" valign="middle" background="image/bk.jpg">
- <td height="137" valign="top" background="image/spfl22.jpg"><table width="78%" height="12" border="0" cellspacing="0">
- <%
- friendlinkBeans.getQuery("-1");
- for(int i=0; i<friendlinkBeans.getItems(); i++)
- {
- String url="http://"+friendlinkBeans.getOriginURL(i);
- %>
- <tr>
- <td align="left" height="5"></td>
- </tr>
- <tr>
- <td align="left"><span class="left"><a href=<%=url%>><%=friendlinkBeans.getTopic(i)%></a></span></td>
- </tr>
- <%
- }
- %>
- </table></td>
- </tr>
- </table>
- <%@ include file ="foot.jsp"%>
- </BODY>
- </HTML>