<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" align="center"  >
  <tr> 
   <td height="25" class=table-xia align="center" WIDTH="100%"><b><FONT COLOR=#FF7E28>推荐<% = strsorts %>商品</FONT></b></td>
              </tr>
              <%
			 set rs3=server.CreateObject("adodb.recordset")
		  rs3.open "select top 5 id,name,viewnum,pic from product where sortsid="&rs2("Sortsid")&" and recommend=1 order by viewnum desc",conn,1,1
			  if rs3.eof and rs3.bof then
			  response.write "<TR><TD height=20 bgcolor=#FFFFFF align=center>暂无此类商品</td></tr>"
			  else %>
			 
				
			 <TABLE cellSpacing=0 cellPadding=0 WIDTH="100%" align=center border=0 class=table-xia>
              <TBODY><tr>
                
			  <% 
			  j=0
			  do while not rs3.eof %>
                 <TD width=120 border="0" align=center >
                  <TABLE cellSpacing=0 cellPadding=0 width="120" border=0>
                  <TBODY>
				  <tr><td  colspan="2" align="center" ><table><tr><td height="120" colspan="2" align="center"> 
				  <A  HREF=product.asp?id=<%=rs3("id")%> TARGET=_blank>
				  <IMG alt="该商品被浏览<% = rs3("viewnum") %>次" SRC=<%if trim(rs3("pic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  <% = trim(rs3("pic")) %>
				  <% end if%> BORDER=0  height="<% = webimg10 %>" style="border: 1px solid #C0C0C0"></A></td></tr>
<tr><td  align="center"><A  HREF=product.asp?id=<%=rs3("id")%> TARGET=_blank> <% = trim(rs3("name")) %></A></td></tr>
</table></td></tr>
                  </TBODY>
                </TABLE></TD>
				
                
               
				<% rs3.movenext 
				j=j+1
				if rs3.eof then 
		  exit do
	  end if 
	if j>=5 then exit do
	  loop %> </TR>
		<%
	  rs3.close
	  set rs3= nothing %>
               </TBODY></TABLE>
		<% end if %>
