<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" align="center" >
  <tr> 
   <td height="25" class=table-xia align="center"><b><font color=#ff6600><% = strcat %>分类销售排行</font></b></td>
              </tr>
              <%
			
		  rs.open "select top 10 id,name,solded from product where categoryid in ("& CatList&") and stock >= 0 order by solded desc",conn,1,1
			 if rs.eof and rs.bof then
		   rs.close
			  response.write "<TR><TD height=20 bgcolor=#FFFFFF align=center>暂无此类商品</td></tr>"
			  else
			  i=0 
			  do while not rs.eof %>
			  <TR>
                <TD height="20" bgcolor="#FFFFFF"> 
			<%  response.write "&nbsp;·<a href=product.asp?id="&rs("id")&" target=_blank title=此商品已成功销售"&rs("solded")&"次>"
				if len(trim(rs("name")))>13 then
				response.write left(trim(rs("name")),12)&"..."
				else
				response.write trim(rs("name"))
				end if
				response.write "</a><br>" %>
				</TD>
              </TR>
				<%
				i=i+1
			  if i>=10 then exit do
			  rs.movenext
			  loop 
			  rs.close
		
			  end if%>
            </TABLE>