<TABLE align="center" cellSpacing=0 cellPadding=0 width=98% border=0>
  <TBODY>
    <TR> 
      <TD vAlign=top>
	   <TABLE height=5 cellSpacing=1 cellPadding=0 width=98% border=0>
          <TBODY>
            <TR> 
              <TD bgColor=#ff93c9></TD>
            </TR>
          </TBODY>
        </TABLE>
        <TABLE height=20 cellSpacing=0 cellPadding=0 width=98% border=0>
          <TBODY>
            <TR> 
			  <td width="120" align="center"><font color="#ff6600">销售排行</font></td>
			  <td align="right"><a href="sold.asp">更多排行</a>&nbsp;</td>
            </TR>
			<tr><td colspan="2" background=images/bg_04.gif border=0></td></tr>
          </TBODY>
			 </TABLE>
		
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
  <%
	
		  rs.open "select top 10 id,name,solded from product where stock >= 0 order by solded 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>"
			  else
			  i=0
			  do while not rs.eof%>
              <TR>
                <TD height="20"> 
                  <%response.write "&nbsp;·<a href=product.asp?id="&rs("id")&" target=_blank title=此商品已成功销售"&rs("solded")&"次>"
				if len(trim(rs("name")))>16 then
				response.write left(trim(rs("name")),15)&"..."
				else
				response.write trim(rs("name"))
				end if
				response.write "</a>"
				%>
                </TD>
              </TR>
              <%i=i+1
			  if i>=10 then exit do
			  rs.movenext
			  loop
			  end if
			  rs.close
			  %>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
