<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select top 10 bookid,bookname,liulancount from shop_books order by liulancount desc",conn,1,1%>
  <tr> 
    <td>热点商品</td>
  </tr>
  <tr> 
    <td> 
      <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
        <%i=0
			  do while not rs.eof%>
        <tr> 
          <td height="23"><img src="images/0.gif" width="12" height="11">  
            <%response.write "<a href=list.asp?id="&rs("bookid")&"  title=此商品已被浏览过"&rs("liulancount")&"次>"
				if len(trim(rs("bookname")))>12 then
				response.write left(trim(rs("bookname")),11)&"..."
				else
				response.write trim(rs("bookname"))
				end if
				response.write "</a>"
				%>
          </td>
        </tr>
        <%i=i+1
			  if i>=10 then exit do
			  rs.movenext
			  loop
			  rs.close
			  set rs=nothing%>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="10">
        <tr>
          <td></td>
        </tr>
      </table>
    </td>
  </tr>
</table> 