<table class="singleborder" cellspacing=1 width="100%" align=center height=180>
        <tr>
          <th valign=middle height=25 width="100%">固顶推荐</th>
        </tr>
        <tr><td class=tablebody1 valign=top><%
        dim a
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 "&gudinnum&" id,showname,hits from download where gudin=1 and stop=0"
    else
        sql="select top "&gudinnum&" id,showname,hits from download where gudin=1 and downshow<>6 and stop=0" 
end if
 rs.close
else
 sql="select top "&gudinnum&" id,showname,hits from download where gudin=1 and stop=0"
end if
 rs.close
	sql=sql&" order by dateandtime,hits desc"
	rs.open sql,conndown,1,1
	if rs.eof and rs.bof then
for topcount=1 to daytop
%>
暂时没有固顶推荐<BR>
<%
next
else
a=0
%>
<%do while not rs.eof and a<gudinnum%>        
            <a href="down_list.asp?id=<%=rs("id")%>" title=<%=rs("showname")%>><img src="down_images/s002.gif" border="0"> <%=left(rs("showname"),10)%><font color=red>[<%=rs("hits")%>]</font></a><br>       
<%
	rs.movenext
	a=a+1
	loop
    
	end if
	rs.close
%></td></tr>
</table>