goodslist.jsp
上传用户:sami52198
上传日期:2010-02-11
资源大小:5174k
文件大小:19k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  1. <%@ page contentType="text/html;charset=gb2312" %>
  2. <%@ include file="include/config.jsp"%>
  3. <%@include file="include/bean.jsp"%>
  4. <%@include file="include/head.jsp"%>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  8. <title>欢迎来到乐趣工作室!</title>
  9. <LINK href="../css/style.css" rel=stylesheet type=text/css>
  10. </head>
  11. <body leftmargin="0">
  12. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  13.   <tr> 
  14.     <td><table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  15.         <tr> 
  16.           <td width="150"><img src="images/logo.gif" width="150" height="42"></td>
  17.           <td width="500"> <div align="center"><img src="images/bannar.gif" width="458" height="60"></div></td>
  18.           <td width="110"><table width="110" border="0" cellspacing="0" cellpadding="0">
  19.               <tr> 
  20.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  21.                     </font></div></td>
  22.               </tr>
  23.               <tr> 
  24.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  25.                     </font></div></td>
  26.               </tr>
  27.               <tr> 
  28.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  29.                     </font></div></td>
  30.               </tr>
  31.             </table></td>
  32.         </tr>
  33.       </table></td>
  34.   </tr>
  35.   <tr> 
  36.     <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  37.   </tr>
  38.   <tr> 
  39.     <td height="22" valign="middle" bgcolor="#FCCB05"> 
  40.     <div align="center">
  41.     <%@include file="include/board1.jsp"%> 
  42.     </div></td>
  43.   </tr>
  44.   <tr> 
  45.     <td height="17" bgcolor="#FC9803">&nbsp;</td>
  46.   </tr>
  47.   <tr> 
  48.     <td height="10"><img src="images/tmtp.gif" width="2" height="2"></td>
  49.   </tr>
  50. </table>
  51. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  52.   <tr> 
  53.     <td width="150" valign="top"> 
  54.     <table width="150" border="0" cellpadding="0" cellspacing="0">
  55.            <%@include file="include/board3.jsp"%> 
  56.         <tr> 
  57.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  58.         </tr>
  59.         <tr> 
  60.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  61.         </tr>
  62.         <tr> 
  63.           <td height="22" background="images/hydl3.jpg"><div align="center"><font size="2">联系方式</font></div></td>
  64.         </tr>
  65.         <tr> 
  66.           <td height="20" valign="bottom" background="images/hydl.jpg"><font size="2">&nbsp;&nbsp;电话:64704946</font></td>
  67.         </tr>
  68.         <tr> 
  69.           <td height="18" background="images/hydl.jpg"> <p><font size="2">&nbsp;&nbsp;E-mail:</font></p></td>
  70.         </tr>
  71.         <tr> 
  72.           <td height="18" background="images/hydl.jpg"><font size="2">&nbsp;&nbsp;MSN:</font></td>
  73.         </tr>
  74.         <tr> 
  75.           <td height="18" valign="top" background="images/hydl.jpg"><font size="2">&nbsp;&nbsp;QQ:</font></td>
  76.         </tr>
  77.         <tr> 
  78.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  79.         </tr>
  80.         <tr> 
  81.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  82.         </tr>
  83.           <%@include file="include/board2.jsp"%> 
  84.         <tr> 
  85.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  86.         </tr>
  87.         <tr> 
  88.           <td height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
  89.         </tr>
  90.         <tr> 
  91.           <td height="22" background="images/hydl3.jpg"><div align="center"><font size="2">友情链接</font></div></td>
  92.         </tr>
  93.         <tr> 
  94.           <td height="150" background="images/hydl.jpg">&nbsp;</td>
  95.         </tr>
  96.         <tr> 
  97.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  98.         </tr>
  99.       </table></td>
  100.     <td width="920" valign="top"><table width="610" border="0" cellspacing="0" cellpadding="0">
  101.         <tr> 
  102.           <td valign="top"> <table width="600" border="0" align="right" cellpadding="0" cellspacing="0">
  103.               <tr> 
  104.                 <td height="20" bgcolor="#FFCC00"><font size="2">&nbsp;&gt;&gt; 
  105.                   精品展示</font> </td>
  106.               </tr>
  107. <%
  108.  
  109.      boardParentID = request.getParameter("boardParentID");
  110.      m_vct = shop.getRecommandGoodsList1(boardParentID,"03");
  111.     
  112.      if(m_vct!=null&&m_vct.size()>0)
  113.       {
  114.          int br_judge=0;
  115.          for(int i=0;i<m_vct.size();i++)
  116.           {
  117.               
  118.               Vector t_vct = (Vector)m_vct.get(i);    
  119.               
  120.               
  121.                        
  122.               Vector img_vct = shop.getGoodsImage(t_vct.get(0).toString(),"01");
  123.               String img_url = "image/upload/shop/1.jpg";
  124.               if(img_vct!=null&&img_vct.size()>0)
  125.                {
  126.                    img_url = (String)(((Vector)img_vct.get(0)).get(1));
  127.                }
  128.               
  129.               
  130.               
  131.                if(i%2==0)
  132.                 {
  133.                     br_judge=1;
  134.                                  %>
  135.               <tr> 
  136.                 <td><table width="600" border="0" cellspacing="0" cellpadding="0">
  137.                     <tr> 
  138.                       <td height="140"> 
  139.                       <table width="300" border="0" cellspacing="0" cellpadding="0">
  140.                           <tr> 
  141.                             <td width="100"> <div align="center"> 
  142.                               <table width="66" border="0" cellpadding="0" cellspacing="0" bordercolor="#C99803" bordercolordark="#FFFBEC">
  143.                                   <tr> 
  144.                                     <td width="150" height="153"> 
  145.                                     <div align="center">
  146.                                              &nbsp;&nbsp;&nbsp;&nbsp;<a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><img src="../../<%=img_url%>" width="108" height="133" border="0"></a>
  147.                                      </div>
  148.                                    </td>
  149.                                             
  150.                                   </tr>
  151.                                 </table>
  152.                               </div></td>
  153.                             <td width="200"><font size="2">
  154. <table width="150" border="0" cellspacing="0" cellpadding="0">
  155.                                                  <tr> 
  156.                                                    <td height="25"><font color="#0386B8" size="2"><strong><%=t_vct.get(1)%></strong></font></td>
  157.                                                  </tr>
  158.                                                  <tr> 
  159.                                                    <td>
  160.                                                    <font size="2">
  161.                                                    <a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><%=t_vct.get(2)%> </a>
  162.                                                    </font></td>
  163.                                                  </tr>
  164.                                                  <tr> 
  165.                                                    <td height="20"><font size="2">市场价:¥<%=t_vct.get(3)%> </font></td>
  166.                                                  </tr>
  167.                                                  <tr> 
  168.                                                    <td height="20"><font size="2">乐趣价:¥<%=t_vct.get(4)%> </font></td>
  169.                                                  </tr>                                                 
  170.                                                  <tr> 
  171.                                                    <td height="20"><font size="2">乐趣会员价: ¥<%=t_vct.get(5)%></font></td>
  172.                                                  </tr>
  173.                                                </table>                              
  174.                             </font></td>
  175.                           </tr>
  176.                         </table> 
  177.                         </td>
  178.                                  <%
  179.                 }  
  180.                else
  181.                 {
  182.                               br_judge=0;
  183.                                  %>
  184.                          <td>
  185.                          <table width="300" border="0" cellspacing="0" cellpadding="0">
  186.                           <tr> 
  187.                             <td width="100"> <div align="center"> 
  188.                               <table width="66" border="0" cellpadding="0" cellspacing="0" bordercolor="#C99803" bordercolordark="#FFFBEC">
  189.                                   <tr> 
  190.                                     <td width="150" height="153"> 
  191.                                     <div align="center">
  192.                                              &nbsp;&nbsp;&nbsp;&nbsp;<a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><img src="../../<%=img_url%>" width="108" height="133" border="0"></a>
  193.                                      </div>
  194.                                    </td>
  195.                                             
  196.                                   </tr>
  197.                                 </table>
  198.                               </div></td>
  199.                             <td width="200"><font size="2">
  200. <table width="150" border="0" cellspacing="0" cellpadding="0">
  201.                                                  <tr> 
  202.                                                    <td height="25"><font color="#0386B8" size="2"><strong><%=t_vct.get(1)%></strong></font></td>
  203.                                                  </tr>
  204.                                                  <tr> 
  205.                                                    <td>
  206.                                                    <font size="2">
  207.                                                    <a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><%=t_vct.get(2)%> </a>
  208.                                                    </font></td>
  209.                                                  </tr>
  210.                                                  <tr> 
  211.                                                    <td height="20"><font size="2">市场价:¥<%=t_vct.get(3)%> </font></td>
  212.                                                  </tr>
  213.                                                  <tr> 
  214.                                                    <td height="20"><font size="2">乐趣价:¥<%=t_vct.get(4)%> </font></td>
  215.                                                  </tr>                                                 
  216.                                                  <tr> 
  217.                                                    <td height="20"><font size="2">乐趣会员价: ¥<%=t_vct.get(5)%></font></td>
  218.                                                  </tr>
  219.                                                </table>                              
  220.                              </font></td>
  221.                           </tr>
  222.                         </table></td>
  223.                     </tr>
  224.                   </table></td>
  225.               </tr>
  226.                                  <%                
  227.                 
  228.                 } 
  229.    
  230.           }
  231.         if(br_judge==1)
  232.          {
  233.             %>
  234.                   </table></td>
  235.               </tr>
  236.             <%         
  237.          }  
  238.          
  239.       }
  240. %>                 
  241.             </table></td>
  242.         </tr>
  243.         <tr> 
  244.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  245.         </tr>
  246.         <tr> 
  247.           <td height="142" valign="top"> 
  248.           <div align="right"> 
  249.               <table width="600" border="0" align="right" cellpadding="0" cellspacing="0">
  250.                 <tr> 
  251.                   <td height="18" colspan="2" bgcolor="#FFCC00"><font size="2"> 
  252.                     &nbsp;&gt;&gt; 产品展示</font></td>
  253.                 </tr>
  254.               
  255.                 
  256. <%
  257.        boardID = request.getParameter("boardID");
  258.        m_vct = shop.getGoodsList(boardID);      
  259.      if(m_vct!=null&&m_vct.size()>0)
  260.       {
  261.         
  262.          int br_judge=0;
  263.          for(int i=0;i<m_vct.size();i++)
  264.           {
  265.               Vector t_vct = (Vector)m_vct.get(i);
  266.               Vector img_vct = shop.getGoodsImage(t_vct.get(0).toString(),"01");
  267.                if(i%2==0)
  268.                 {
  269.                     br_judge=1;
  270.                                  %>
  271.                                      <tr> 
  272.                                        <td width="300"> <table width="300" border="0" cellspacing="0" cellpadding="0">
  273.                                            <tr> 
  274.                                              <td width="150" height="153"> <div align="center"><a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><img src="../../<%=((Vector)img_vct.get(0)).get(1)%>" width="108" height="133" border="0"></a></div></td>
  275.                                              <td width="150" height="153">
  276.                                              <table width="150" border="0" cellspacing="0" cellpadding="0">
  277.                                                  <tr> 
  278.                                                    <td height="25"><font color="#0386B8" size="2"><strong><%=t_vct.get(1)%></strong></font></td>
  279.                                                  </tr>
  280.                                                  <tr> 
  281.                                                    <td>
  282.                                                    <font size="2">
  283.                                                    <a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><%=t_vct.get(2)%> </a>
  284.                                                    </font></td>
  285.                                                  </tr>
  286.                                                  <tr> 
  287.                                                    <td height="20"><font size="2">市场价:¥<%=t_vct.get(3)%> </font></td>
  288.                                                  </tr>
  289.                                                  <tr> 
  290.                                                    <td height="20"><font size="2">乐趣价:¥<%=t_vct.get(4)%> </font></td>
  291.                                                  </tr>                                                 
  292.                                                  <tr> 
  293.                                                    <td height="20"><font size="2">乐趣会员价: ¥<%=t_vct.get(5)%></font></td>
  294.                                                  </tr>
  295.                                                </table></td>
  296.                                            </tr>
  297.                                          </table></td>          
  298.           
  299.                                  <%
  300.                 }  
  301.                else
  302.                 {
  303.                 
  304.                               br_judge=0;
  305.                                  %>
  306.                                         <td width="305"><table width="300" border="0" cellspacing="0" cellpadding="0">
  307.                                           <tr> 
  308.                                             <td width="150" height="153"> <div align="center"><a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><img src="../../<%=((Vector)img_vct.get(0)).get(1)%>" width="108" height="133" border=0></a></div></td>
  309.                                             <td width="150" height="153">
  310.                                             
  311.                                             <table width="150" border="0" cellspacing="0" cellpadding="0">
  312.                                                 <tr> 
  313.                                                   <td height="25"><font color="#0386B8" size="2">
  314.                                                   <strong>
  315.                                                   <%=t_vct.get(1)%>
  316.                                                     </strong></font></td>
  317.                                                 </tr>
  318.                                                 <tr> 
  319.                                                   <td><font size="2">
  320.                                                  <a href="shopdetail.jsp?id=<%=t_vct.get(0)%>" target="_blank"><%=t_vct.get(2)%></a>
  321.                                                   </font></td>
  322.                                                 </tr>
  323.                                                 <tr> 
  324.                                                   <td height="20"><font size="2">市场价: ¥<%=t_vct.get(3)%> </font></td>
  325.                                                 </tr>                                                 
  326.                                                 <tr> 
  327.                                                   <td height="20"><font size="2">乐趣价: ¥<%=t_vct.get(4)%></font></td>
  328.                                                 </tr>
  329.                                                 <tr> 
  330.                                                   <td height="20"><font size="2">乐趣会员价: ¥<%=t_vct.get(5)%></font></td>
  331.                                                 </tr>
  332.                                               </table>
  333.                                              
  334.                                               </td>
  335.                                           </tr>
  336.                                         </table></td>
  337.                                        </tr> 
  338.                                  <%                
  339.                 
  340.                 } 
  341.    
  342.           }
  343.           
  344.         if(br_judge==1)
  345.          {
  346.             %>
  347.                                         <td width="305">&nbsp;</td>
  348.                                       </tr>                
  349.             
  350.             <%         
  351.          }  
  352.          
  353.       }
  354.      else
  355.       {
  356.       
  357.         System.out.println("=========================================================================");
  358.       } 
  359. %>               
  360.               </table>
  361.             </div></td>
  362.         </tr>
  363.         <tr>
  364.           <td valign="top">&nbsp;</td>
  365.         </tr>
  366.       </table></td>
  367.   </tr>
  368.   <tr bgcolor="#FFCC00"> 
  369.     <td height="20" colspan="2"><font size="2">&nbsp;&gt;&gt; 合作伙伴</font></td>
  370.   </tr>
  371.   <tr bgcolor="#FFFBEC"> 
  372.     <td height="60" colspan="2"><table width="750" border="0" cellspacing="0" cellpadding="0">
  373.         <tr> 
  374.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  375.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  376.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  377.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  378.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  379.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  380.         </tr>
  381.         <tr> 
  382.           <td><div align="center"></div></td>
  383.           <td><div align="center"></div></td>
  384.           <td><div align="center"></div></td>
  385.           <td><div align="center"></div></td>
  386.           <td><div align="center"></div></td>
  387.           <td><div align="center"></div></td>
  388.         </tr>
  389.       </table></td>
  390.   </tr>
  391. <%@include file="include/foot.jsp"%>  
  392. </table>
  393. </body>
  394. </html>