<META http-equiv=Content-Type content="text/html; charset=gb2312">
<%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select top 20 id,name,pic,price1,price2,viewnum,stock,adddate,spic from product where recommend=2 and stock >= 0 and (recommend<>3 and recommend = 2) order by adddate desc",conn,1,1
		  if rs.eof and rs.bof then
		   rs.close
		  response.write "<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=""100%""><tr><td align=center>对不起，请您先到后台添加商品！</td></tr></table>"
		  else
%> 
            <style type="text/css">
<!--
.style1 {color: #999999}
.style2 {color: #000000}
.unnamed1 {text-decoration: none;
}
.STYLE9 {color: #FF6600}
.bg {
	border: 1px solid #CCCCCC;
}
-->
            </style>
            <script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
            </script>
<TABLE cellSpacing=4 cellPadding=10 width=140 align=center border=0>
              <TBODY>
              <TR>
			  <% 
			  j=0
			  do while not rs.eof 
			  if j>=5 then exit do
			  %>
                <TD width="122" align=center valign="top" border="0">
                  <TABLE cellSpacing=0 cellPadding=0 width="122" border=0>
                  <TBODY>
				  <tr><td width="122" height="122" align="center" class="bg"> 
				  <A  HREF=b2b_cpinfo.asp?id=<%=rs("id")%> TARGET=_blank>
				  <IMG SRC=<%if trim(rs("spic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  image\<% = trim(rs("spic")) %>
				  <% end if%> BORDER=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></A></td>
				  </tr>
                    <TR align="center"> 
                      <TD><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td align="center"><%=trim(rs("name"))%></td>
                        </tr>
                      </table></TD>
                    </TR>
                    <% if rs("stock") > 0 then %><TR align="center" height=20> 
                      <TD><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td width="92%" align="left"><span class="style1 unnamed1 STYLE9"><img src="images/won.gif" />&nbsp;市场价</span><span class="STYLE9">:<%=trim(rs("price1"))%>元</span></td>
                          <td width="8%" align="center"><a href="b2b_cpinfo.asp?id=<%=rs("id")%>" target="_blank"><img src="image/but_bbogi.gif" alt="查看详细" width="14" height="16" border="0" /></a></td>
                        </tr>
                        <tr>
                          <td align="left"><span class="STYLE9"><img src="images/won.gif" />&nbsp;会员价:<%=trim(rs("price2"))%>元</span></td>
                          <td align="center"><a href="####" onClick="MM_openBrWindow('check.asp?ProdId=<%=rs("id")%>','','scrollbars=yes,width=760,height=500')"><img src="image/but_bbogi2.gif" alt="购物车" width="14" height="14" border="0" /></a></td>
                        </tr>
                      </table></TD>
                    </TR>
					<% else %>
					<tr><td align="center"><font color="#FF6600">暂时缺货</font></td></tr>
					<% end if %>
                  </TBODY>
                </TABLE></TD>
				<% rs.movenext 
				j=j+1
				if rs.eof then 
		  exit do
	  end if 
	
	  loop %> </TR>
	  
	  
	  
	  
	  
	  
	  <%
	    rs.absoluteposition=6
		j=5 %>
		              <TR>
			  <% 
			  do while not rs.eof 
			  if j>=10 then exit do
			  %>
                <TD align=center valign="top" border="0">
                  <TABLE cellSpacing=0 cellPadding=0 width="122" border=0>
                  <TBODY>
				  <tr><td width="130" height="122" colspan="2" align="center" class="bg"> 
				  <A  HREF=b2b_cpinfo.asp?id=<%=rs("id")%> TARGET=_blank>
				  <IMG SRC=<%if trim(rs("spic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  image\<% = trim(rs("spic")) %>
				  <% end if%> BORDER=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></A></td>
				  </tr>
                    <TR align="center"> 
                      <TD colSpan=2><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td align="center"><%=trim(rs("name"))%></td>
                        </tr>
                      </table></TD>
                    </TR>
                    <% if rs("stock") > 0 then %><TR align="center" height=20> 
                      <TD colspan="2"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td width="92%" align="left"><span class="style1 unnamed1 STYLE9"><img src="images/won.gif" />&nbsp;市场价</span><span class="STYLE9">:<%=trim(rs("price1"))%>元</span></td>
                          <td width="8%" align="center"><a href="b2b_cpinfo.asp?id=<%=rs("id")%>" target="_blank"><img src="image/but_bbogi.gif" alt="查看详细" width="14" height="16" border="0" /></a></td>
                        </tr>
                        <tr>
                          <td align="left"><span class="STYLE9"><img src="images/won.gif" />&nbsp;会员价:<%=trim(rs("price2"))%>元</span></td>
                          <td align="center"><a href="####" onclick="MM_openBrWindow('check.asp?ProdId=<%=rs("id")%>','','scrollbars=yes,width=760,height=500')"><img src="image/but_bbogi2.gif" alt="购物车" width="14" height="14" border="0" /></a></td>
                        </tr>
                      </table></TD>
                    </TR>
                    <% else %>
					<tr><td colspan="2" align="center"><font color="#FF6600">暂时缺货</font></td></tr>
					<% end if %>
                  </TBODY>
                </TABLE></TD>
				<% rs.movenext 
				j=j+1
				if rs.eof then 
		  exit do
	  end if 
	
	  loop %> </TR>
	  
	  
	  
	  
	  
	  	  <%
	    rs.absoluteposition=11
		j=10 %>
		              <TR>
			  <% 
			  do while not rs.eof 
			  if j>=15 then exit do
			  %>
                <TD align=center valign="top" border="0">
                  <TABLE cellSpacing=0 cellPadding=0 width="122" border=0>
                  <TBODY>
				  <tr><td width="130" height="122" colspan="2" align="center" class="bg"> 
				  <A  HREF=b2b_cpinfo.asp?id=<%=rs("id")%> TARGET=_blank>
				  <IMG SRC=<%if trim(rs("spic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  image\<% = trim(rs("spic")) %>
				  <% end if%> BORDER=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></A></td>
				  </tr>
                    <TR align="center"> 
                      <TD colSpan=2><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td align="center"><%=trim(rs("name"))%></td>
                        </tr>
                      </table></TD>
                    </TR>
                    <% if rs("stock") > 0 then %><TR align="center" height=20> 
                      <TD colspan="2"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td width="92%" align="left"><span class="style1 unnamed1 STYLE9"><span class="style1 unnamed1 STYLE9"><img src="images/won.gif" />&nbsp;市场价</span></span><span class="STYLE9">:<%=trim(rs("price1"))%>元</span></td>
                          <td width="8%" align="center"><a href="b2b_cpinfo.asp?id=<%=rs("id")%>" target="_blank"><img src="image/but_bbogi.gif" alt="查看详细" width="14" height="16" border="0" /></a></td>
                        </tr>
                        <tr>
                          <td align="left"><span class="STYLE9"><img src="images/won.gif" />&nbsp;会员价:<%=trim(rs("price2"))%>元</span></td>
                          <td align="center"><a href="####" onclick="MM_openBrWindow('check.asp?ProdId=<%=rs("id")%>','','scrollbars=yes,width=760,height=500')"><img src="image/but_bbogi2.gif" alt="购物车" width="14" height="14" border="0" /></a></td>
                        </tr>
                      </table></TD>
                    </TR>
                    <% else %>
					<tr><td colspan="2" align="center"><font color="#FF6600">暂时缺货</font></td></tr>
					<% end if %>
                  </TBODY>
                </TABLE></TD>
				<% rs.movenext 
				j=j+1
				if rs.eof then 
		  exit do
	  end if 
	
	  loop %> </TR>
	  
	  
	  
		             <%
	    rs.absoluteposition=16
		j=15 %> 
					  <TR>
					  <% 
			  do while not rs.eof 
			  if j>=20 then exit do%>
		                <TD align=center valign="top" border="0"><TABLE cellSpacing=0 cellPadding=0 width="122" border=0>
                          <TBODY>
                            <tr>
                              <td width="130" height="122" colspan="2" align="center" class="bg"><A  HREF=b2b_cpinfo.asp?id=<%=rs("id")%> TARGET=_blank> <IMG SRC=<%if trim(rs("spic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  image\<% = trim(rs("spic")) %>
				  <% end if%> BORDER=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></A></td>
                            </tr>
                            <TR align="center">
                              <TD colSpan=2><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                  <td align="center"><%=trim(rs("name"))%></td>
                                </tr>
                              </table></TD>
                            </TR>
                           <% if rs("stock") > 0 then %><TR align="center" height=20>
                              <TD colspan="2"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                  <td width="92%" align="left"><span class="unnamed1 style1 "><span class="STYLE9 style1 unnamed1"><img src="images/won.gif" />&nbsp;市场价</span></span><span class="STYLE9">:<%=trim(rs("price1"))%>元</span></td>
                                  <td width="8%" align="center"><a href="b2b_cpinfo.asp?id=<%=rs("id")%>" target="_blank"><img src="image/but_bbogi.gif" alt="查看详细" width="14" height="16" border="0" /></a></td>
                                </tr>
                                <tr>
                                  <td align="left" class="STYLE9"><img src="images/won.gif" />&nbsp;会员价:<%=trim(rs("price2"))%>元</td>
                                  <td align="center"><a href="####" onclick="MM_openBrWindow('check.asp?ProdId=<%=rs("id")%>','','scrollbars=yes,width=760,height=500')"><img src="image/but_bbogi2.gif" alt="购物车" width="14" height="14" border="0" /></a></td>
                                </tr>
                              </table></TD>
                           </TR>
                            <% else %>
                            <tr>
                              <td colspan="2" align="center"><font color="#FF6600">暂时缺货</font></td>
                            </tr>
                            <% end if %>
                          </TBODY>
                        </TABLE>
						</TD>
		                <% rs.movenext 
				j=j+1
				if rs.eof then 
		  exit do
	  end if 
	
	  loop %>
                </TR>
		<%
	  rs.close
	   %>
	   <% end if %>
</TBODY></TABLE>
