<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 12 bookid,bookname,liulancount from shop_books order by liulancount desc",conn,1,1%>
<style type="text/css">
<!--
.unnamed1 {
	border-bottom-width: thin;
	border-bottom-style: dotted;
	border-bottom-color: #666666;
}
-->
</style>
 <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr> <td valign="top" bordercolor="#FFFFFF" > <%set rs=server.CreateObject("adodb.recordset")
	  rs.open "select top 12 * from shop_books where chengjiaocount>0 order by bookid desc",conn,1,1%> 
<table width="100%" border="0" ALIGN="CENTER" cellpadding="0" cellspacing="0"> 
<%i=0
do while not rs.eof%> <tr> <td height="22"> <IMG 
                  src="images/ring01.gif" > <%response.write "<a href=list.asp?id="&rs("bookid")&" target=_blank title=此商品已成功销售"&rs("chengjiaocount")&"次>"
				if len(trim(rs("bookname")))>9 then
				response.write left(trim(rs("bookname")),9)
				else
				response.write trim(rs("bookname"))
				end if
				response.write "</a>"
				%> <tr> 
                                    <td width="100%" height="0" background="imagess/please_dot_1.gif"></td>
                                  </tr></td></tr> <%i=i+1
			  if i>=12 then exit do
			  rs.movenext
			  loop
			  rs.close
			  set rs=nothing%></table></td></tr></table>















