
	 
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" align="center"  class=table-xia>
  <tr>
 <td>  <TABLE height=1 cellSpacing=1 cellPadding=0 width=100% border=0>
          <TBODY>
            <TR> 
              <TD height=3 > </TD>
            </TR>
          </TBODY>
        </TABLE>
</td>
</tr> 
<tr> 
   <td height="25"  align="center" background="skin/skin<%=skin%>/classmenu/mnu<% = webbg6 %>_bg.png" ><b><FONT COLOR="#ffffff">人气排行</FONT></b></td>
              </tr>
              <%
			 set rs=server.CreateObject("adodb.recordset")
		  rs.open "select top 10 id,name,viewnum from product where  stock >= 1 order by viewnum desc",conn,1,1
			  if rs.eof and rs.bof then
			  response.write "<TR><TD height=20 BGCOLOR=#ffffff align=center>暂无此类商品"
			  else
			  i=0 
			  do while not rs.eof %>
			  <TR>
                <TD height="20"   background="images/class_menu_01.gif"> &nbsp;<img src='images/dot11.gif' border=0>
			<a href=product.asp?id=<%=trim(rs("id"))%> target=_blank title=此商品已被浏览"&rs("viewnum")&"次> <FONT COLOR="#333333"><%=left(trim(rs("name")),10)%>
				</font></a><br> 
				</TD>
              </TR>
				<%
				i=i+1
			  if i>=10 then exit do
			  rs.movenext
			  loop 
                         end if
			  rs.close
			  set rs=nothing
			  %>
            </TABLE>
