<table class="singleborder" cellspacing=1 width="100%" align=center height=180>
        <tr>
          <th valign=middle height=25 width="100%">累计下载Top<%=alltop%>
</th>
</tr>
<tr>
<td valign="top" class=tablebody1><%
if vipshow=2 then 
sqlvip="select * from [DV_user] where username='"&DVBBS.membername&"' and vip=5"
    rs.open sqlvip,conn,1,3
     if not(rs.bof and rs.eof) then
	sql="select top "&alltop&" * from download where stop=0 order by hits desc"
     else
        sql="select top "&alltop&" * from download where stop=0 and downshow<>6 order by hits desc"
   end if
rs.close
else
  sql="select top "&alltop&" * from download where stop=0 order by hits desc"
end if
	rs.open sql,conndown,0,1
	if rs.eof and rs.bof then

for topcount=1 to alltop
%>
 暂时没有下载<BR>
<%
next
else%>
<%dim im
im=0
do while not rs.eof and im<alltop %>
<a href="down_list.asp?id=<%=rs("id")%>" title=<%=rs("showname")%>> <img src="down_images/s001.gif" border="0"> <%=left(rs("showname"),10)%><font color=red>[<%=rs("hits")%>]</font></a><br>
<%
	rs.movenext
	im=im+1
	loop
     	end if
	rs.close
%></td>
  </tr>
</table>
