
<TABLE align="center" cellSpacing=0 cellPadding=0 width=98% border=0>
  <TBODY> 
  <TR> 
      <TD vAlign=top>
	   
        
     
		
        
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <%
		  rs.open "select top 10 id,name,viewnum from product where stock >= 0 order by viewnum desc",conn,1,1
		  if rs.eof and rs.bof then
		   rs.close
			  response.write "<tr><td align=center background=images/bg12.gif>数据库中无商品</td></tr>"
		  end if
        	i=0
			  do while not rs.eof%>
        <TR> 
          <TD height="25"> 
            <%response.write "&nbsp;<img src=image/dot2.gif><a href=product.asp?id="&rs("id")&" target=_blank title=此商品被浏览"&rs("viewnum")&"次>"
				if len(trim(rs("name")))>11 then
				response.write left(trim(rs("name")),11)&"..."
				else
				response.write trim(rs("name"))
				end if
				response.write "</a>"
				%>
          </TD>
        </TR>
        <TR>
          <TD height="1" bgcolor="#F0F0F0"></TD>
        </TR>
        <%i=i+1
			  if i>=10 then exit do
			  rs.movenext
			  loop
			  rs.close

			  %>
        </TBODY> 
      </TABLE>
    </TD>
    </TR>
  </TBODY>
</TABLE>
