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

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. <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
  4. <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
  5. <jsp:useBean id="productinfoBeans" class="MyFly.Bean.productinfoBeans" scope="request"/>
  6. <jsp:useBean id="useclassBean" class="MyFly.Bean.useclassBean" scope="request"/>
  7. <jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
  8. <jsp:useBean id="friendlinkBeans" class="MyFly.Bean.friendlinkBeans" scope="request"/>
  9. <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
  10. <script language="javascript" src="js/showimg.js"></script>
  11. <%@ include file ="top_chanpinzhongxin.jsp"%>
  12. <%
  13.    
  14.     String Type="";
  15. String pageSize="5";
  16. String proType=(String)request.getParameter("proType"); //取得类别 用途类或性质类
  17. String pageNum=(String)request.getParameter("pageNum"); //取得想要显示的页
  18. String proNum=(String)request.getParameter("proNum");   // 取得类别编号
  19. productinfoBeans.setProType(proType);
  20. productinfoBeans.setProNum(proNum);
  21. productinfoBeans.setPageSize(Integer.parseInt(pageSize));
  22. productinfoBeans.setPageNum(pageNum);
  23. productinfoBeans.init();
  24. productinfoBeans.getQuery();
  25. int num=productinfoBeans.getItems();
  26. int pageCount=productinfoBeans.getPageCount();
  27. %>
  28. <HTML><HEAD><TITLE>仙客吧, 每时每刻, 仙妮蕾德,每时每刻贸易公司,每时每刻,每时每刻贸易有限公司,仙妮蕾德论坛,仙妮蕾德事业论坛,仙妮蕾德产品论坛,生之源,力之源,维体力,蔻蒂森,加力能,Sunrider, Money, Fortune, Health,二十一世纪,财富第五波,黄金产业,加盟,开店,健康,亚健康,疾病,糖尿病,高血压,高脂肪,尿结石,尿毒症,头痛,感冒,健康论坛,事业分享,产品分享,高考,美容,绿色产品,保健产品,杭州, 食疗,食养,膳食,营养,杭州市, 上海市, 浙江省, 做生意, 发财, 发财致富, 特许经营, 连锁加盟, 商务部, 营养学, 营养师, 营养论坛, 创业,心脏病, 痛风, 腰肌劳损, 腰酸背痛, 关节炎, 肝硬化,减肥, 瘦身, 苗条, 肌肉, 长高, 聪明, 机会分享、财富分享、希望分享、事业中心、创业中心、商机、商业机会,安利、完美、立新世纪、优莎娜、如新、南方李锦记、康宝莱、罗麦</TITLE>
  29. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  30. <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
  31. <META content="Visual Basic 7.0" name=CODE_LANGUAGE>
  32. <META content=JavaScript name=vs_defaultClientScript>
  33. <STYLE type=text/css>
  34. TD {
  35. FONT-SIZE: 9pt; LETTER-SPACING: 0.02em
  36. }
  37. A {
  38. COLOR: #000000; TEXT-DECORATION: none
  39. }
  40. A:hover {
  41. COLOR:#ff6600 ; POSITION: relative; RIGHT: 0px; TOP: 1px
  42. }
  43. .hg {
  44. LINE-HEIGHT: 18px
  45. }
  46. .whitetx {
  47. COLOR: #000000;
  48. }
  49. .ibox {
  50. 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
  51. }
  52. .style2 {color: #808080}
  53. .style7 {color: #000000}
  54. .style8 {color: #F5BA5E}
  55. .opacity {FILTER: alpha(opacity=100)
  56. }
  57. .style3 {color: #FF0099}
  58. </STYLE>
  59. <BODY background="image/bk.jpg" leftMargin=0 topMargin=0>
  60. <SCRIPT event=FSCommand() for=sinadl language=JavaScript>
  61. huashuolayer2.style.visibility='hidden';
  62. huashuolayer3.style.visibility='hidden';
  63. </SCRIPT>
  64.   
  65. <table width="771" height="410" border="0" align="center" cellspacing="0" background="image/bk1.jpg">
  66.   <tr valign="top">
  67.       <td width="160" height="55" background="image/spfl1.jpg">&nbsp;</td>
  68.       <td width="13" rowspan="5" background="0">&nbsp;</td>
  69.       <td width="592" rowspan="5"><table width="99%" height="245"  border="0" cellspacing="0">
  70.           <tr>
  71.             <td height="25"><table width="99%"  border="0">
  72.                 <tr>
  73.                   <td width="8%">&nbsp;</td>
  74.                   <td width="71%"><img src="image/xz07.gif" width="16" height="16"> <strong>当前位置:</strong><a href="index.jsp">首页</a><strong>—&gt; </strong>产品中心<strong>—&gt; </strong>
  75.                   
  76.   <%
  77.   try
  78.   {
  79.       if(proType.equals("useType"))
  80.   {   
  81.           useclassBean.getNew(Integer.parseInt(proNum));
  82.      Type=useclassBean.getUseclassName();
  83.   }
  84.   else
  85.   {    
  86.         characterclassBean.getNew(Integer.parseInt(proNum));
  87.         Type=characterclassBean.getCharacterName();
  88.   }
  89.   }catch(Exception e)
  90.   {
  91.      Type="";
  92.   }
  93.   %>
  94.                   <%=Type%>
  95.   </td>
  96.                   <td width="21%">&nbsp;</td>
  97.                 </tr>
  98.             </table></td>
  99.           </tr>
  100.           <tr>
  101.             <td height="219" align="center" valign="top"><table border=0 cellpadding=0 cellspacing=1 width="100%">
  102.               <tbody>
  103.                 <tr>
  104.                   <td rowspan=6 width="30%">            
  105.             </table>
  106.             <table width="99%" height="213"  border="0" cellspacing="0">
  107.                 <tr>
  108.                   <td width="78%" height="28" align="left">&nbsp;</td>
  109.   
  110.                   <td width="22%" align="left">本页共有 <%=num%> 个产品 </td>
  111.                 </tr>
  112.                 <TR>
  113.                   <TD colspan="2" rowSpan=6>
  114.   <%
  115.     for(int i=0; i<num; i++)
  116. {
  117.   
  118. %>
  119.   <TABLE border=0 cellPadding=0 cellSpacing=1 width="100%">
  120.                       <TBODY>
  121.                         <TR>
  122.                           <TD rowSpan=6 width="30%">
  123.   
  124.                             <DIV align=center><a href="product_detail.jsp?proNum=<%=productinfoBeans.getProductID(i).replace('#', ',')%>&proType=<%=Type%>">
  125. <%  
  126.   String proNum1=productinfoBeans.getProductID(i);
  127.   String proNum2=proNum1.replace(',','#');
  128.     productinfoBean.getNew(proNum2);
  129. String num1=productinfoBeans.getProductID(i).replace('#', '1');
  130. %>
  131. <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>
  132. <!--img 
  133.                   onMouseOver="showBigImg('3.jpg', 1, event);" 
  134.                   onMouseOut="mouseout('2.jpg', event)" 
  135.                   height=80 
  136.                   src="2/2.jpg" 
  137.                   width=80 border=0
  138.   Math.Random()//0-1的数
  139.   -->
  140.   
  141.                           <TD width="13%" height=38 valign="bottom">产品名称:</TD>
  142.                           <TD width="57%" valign="bottom"><%=productinfoBeans.getProductName(i)%></A></TD>
  143.                         </TR>
  144.                         <TR>
  145.                           <TD height=22 width="13%">产品编号:</TD>
  146.                           <TD><%=productinfoBeans.getProductID(i)%></TD>
  147.                         </TR>
  148.                         <TR>
  149.                           <TD height=21>所属类别:</TD>
  150.                           <TD><%=Type%></TD>
  151.                         </TR>
  152.                         <TR>
  153.                           <TD height=18>详细信息:</TD>
  154.                           <TD>
  155.   
  156. <a href="product_detail.jsp?proNum=<%=productinfoBeans.getProductID(i).replace('#', ',')%>&proType=<%=Type%>"><img src="yanshi_image/arrow_7.gif" width="52" height="18" 
  157.                   border=0></a></TD>
  158.                         </TR>
  159.                         <TR> </TR>
  160.                         <TR>
  161.                           <TD bgColor=#83D8EC colSpan=3 height=3></TD>
  162.                         </TR>
  163.                       </TBODY>
  164.                   </TABLE>
  165.   <%
  166.   }
  167.   %>
  168.                   </TD>
  169.                 </TR>
  170.                 <TR> </TR>
  171.                 <TR> </TR>
  172.                 <TR> </TR>
  173.                 <TR> </TR>
  174.                 <TR> </TR>
  175.                 <tr>
  176.                   <td height="31" colspan="2" align="right" valign="top"><table width="77%"  border="0" cellspacing="0">
  177.                         <tr>
  178.                           <td height="29" align="right" valign="middle"><table width="96%"  border="0">
  179.                               <tr>
  180.                
  181.                    <td height="23" align="center">
  182. <a href="jjyp.jsp?proType=<%=proType%>&pageNum=1&proNum=<%=Integer.parseInt(proNum)%>">首页</a> 
  183. <% 
  184. if(Integer.parseInt(pageNum) > 1)
  185.    {
  186. %>
  187.      <a href="jjyp.jsp?proType=<%=proType%>&pageNum=<%=Integer.parseInt(pageNum)-1%>&proNum=<%=Integer.parseInt(proNum)%>">上一页</a> &nbsp;
  188. <%
  189. }
  190. %>
  191. <% 
  192. if(Integer.parseInt(pageNum) < pageCount)
  193.    {
  194. %>
  195.      <a href="jjyp.jsp?proType=<%=proType%>&pageNum=<%=Integer.parseInt(pageNum)+1%>&proNum=<%=Integer.parseInt(proNum)%>">下一页</a> &nbsp;
  196. <%
  197. }
  198. %>
  199. <a href="jjyp.jsp?proType=<%=proType%>&pageNum=<%=pageCount%>&proNum=<%=Integer.parseInt(proNum)%>">尾页</a> 
  200. 页次:<STRONG><FONT 
  201.                   color=red><%=Integer.parseInt(pageNum)%></FONT>/<%=pageCount%></STRONG>页 &nbsp;<B>5</B>个产品/页&nbsp;<!--;转到:-->
  202.   
  203.                       </td>
  204.                               </tr>
  205.                           </table></td>
  206.                         </tr>
  207.                   </table></td>
  208.                 </tr>
  209.             </table></td>
  210.           </tr>
  211.         
  212.       </table></td>
  213.   </tr>
  214.     <tr valign="top">
  215.       <td height="91" background="image/spfl22.jpg"><table width="97%" height="359"  border="0" cellspacing="0">
  216.         <tr>
  217.           <td height="359" valign="top"><table width="99%" height="124"  border="0" cellspacing="0">
  218.               <tr>
  219.                 <td height="124" valign="top"><table width="151" height="86" cellpadding="0" cellspacing="0">
  220.                     <tr>
  221.                       <td height="23" colspan="2" valign="middle">&nbsp;&nbsp;<span class="style3">---- <font  style="font-size:13px;font-weight: bold">用途类别 ----</font></span></td>
  222.                     </tr>
  223.                     <%
  224.    useclassBeans.getQuery("-1");
  225.    for(int i=0; i<useclassBeans.getItems(); i++)
  226.    {
  227.      %>
  228.                     <tr>
  229.                       <td width="18" height="18" align="center" valign="middle">·</td>
  230.                       <td width="129" valign="middle" class="left"><a href="jjyp.jsp?proType=useType&pageNum=1&proNum=<%=useclassBeans.getUseclassID(i)%>"><%=useclassBeans.getUseclassName(i)%></a></td>
  231.                     </tr>
  232.                     <%
  233. }
  234. %>
  235.                     <tr>
  236.                       <td height="25" colspan="2" valign="middle">&nbsp;<span class="style3">&nbsp;---- <font  style="font-size:13px;font-weight: bold">性质类别 ----</font></span><font  style="font-size:13px;font-weight: bold">&nbsp; </font></td>
  237.                     </tr>
  238.                     <%
  239.  characterclassBeans.getQuery("-1");
  240.    for(int i=0; i<characterclassBeans.getItems(); i++)
  241.    {
  242.      %>
  243.                     <tr>
  244.                       <td width="18" height="18" align="center" valign="middle">·</td>
  245.                       <td width="129" valign="middle" class="left"><a href="jjyp.jsp?proType=characterType&pageNum=1&proNum=<%=characterclassBeans.getCharacterID(i)%>"><%=characterclassBeans.getCharacterName(i)%></a></td>
  246.                     </tr>
  247.                     <%
  248. }
  249. %>
  250.                 </table></td>
  251.               </tr>
  252.           </table></td>
  253.         </tr>
  254.       </table></td>
  255.     </tr>
  256.     <tr valign="top">
  257.       <td height="15" background="image/spfl23.jpg">&nbsp;</td>
  258.     </tr>
  259.     <tr valign="top">
  260.       <td height="55" background="image/yqlj.jpg">&nbsp;</td>
  261.     </tr>
  262.     <tr align="center" valign="middle" background="image/bk.jpg">
  263.       <td height="137" valign="top" background="image/spfl22.jpg"><table width="78%" height="12"  border="0" cellspacing="0">
  264.         
  265. <%
  266.       friendlinkBeans.getQuery("-1");
  267.   for(int i=0; i<friendlinkBeans.getItems(); i++)
  268.   {
  269.        String url="http://"+friendlinkBeans.getOriginURL(i);
  270.   %>
  271.           <tr>
  272.             <td align="left" height="5"></td>
  273.           </tr>
  274.           <tr>
  275.             <td align="left"><span class="left"><a href=<%=url%>><%=friendlinkBeans.getTopic(i)%></a></span></td>
  276.           </tr>
  277.           <%
  278.   }
  279.   %>
  280.   
  281.       </table></td>
  282.     </tr>
  283. </table>
  284.   <%@ include file ="foot.jsp"%>
  285. </BODY>
  286. </HTML>