<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%
call head()
Call saycarda("VIP会员")
Response.write "<a href=""index.asp?sid="&sid&"&amp;saytk="&saytk&""">社区</a>"

   Response.write ">><a href=""bbslist.asp?sid="&sid&"&amp;saytk="&saytk&""">排行</a><br/>"

dim gettxt
gettxt="where vipface=1 "

set rs=Server.CreateObject("ADODB.Recordset")
rsppl="select * from Users "&gettxt&" order by vipdj desc"
rs.open rsppl,conn,1,1

If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="vipusers.asp?sid="&sid&"&amp;saytk="&saytk&"&amp;"
	Count=rs.recordcount	
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
        if page>pagecount then page=pagecount
	rs.move(pagesize*(page-1))
	For i=1 To PageSize     						
	If rs.eof Then Exit For
   Response.write ""&i+(page-1)*PageSize&"."
   Response.write "<a href=""uinfo.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"

   
   if rs("vipdj")<>0 then
   Response.write "<img src=""/img/vip.gif"" alt='.'/><img src=""/img/vip"&rs("vipdj")&".gif"" alt='.'/><br/>"
   else
   Response.write "<img src=""/img/vip.gif"" alt='.'/><img src=""/img/vip"&getvip(rs("myjb"),rs("myjy"))&".gif"" alt='.'/><br/>"
   end if
	rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页"
if saytk=1 then
response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">跳转</a><br/>"
end if
Else
   Response.write "暂时没有VIP会员！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=Nothing
%>
<!--#include file="fanhui.asp"-->
<%call head1()%>