<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%call head()
Call saycardd("VIP会员管理")

dim gettxt
gettxt="where vipface=1 "
%>==全部VIP会员==<br/><%
set rs=Server.CreateObject("ADODB.Recordset")
rsppl="select * from Users "&gettxt&" order by id desc"
rs.open rsppl,conn,1,1

If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="vippst.asp?p="&p&"&amp;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=""show.asp?id="&rs("id")&"&amp;url=vippst.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   if rs("vipdate")<>""then 
   txtname="自定义"
   else
   txtname="系统定"
   end if
   
   if rs("vipdj")<>0 then
   Response.write txtname&"<img src=""/img/vip"&rs("vipdj")&".gif"" alt='.'/><br/>"
   else
   Response.write txtname&"<img src=""/img/vip"&getvip(rs("myjb")+rs("bank"),rs("myjy"))&".gif"" alt='.'/><br/>"
   end if
	rs.moveNext
 	Next
	if page>1 then response.write "<a href="""&gopage&"page=1"">第一页</a> "
	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>"
end if
Else
   Response.write "暂时没有VIP会员！"
end if
rs.close
set rs=Nothing
%><br/>==自定义VIP会员==<br/><%
set rs1=Server.CreateObject("ADODB.Recordset")
rs1ppl="select * from Users where vipface=1 order by vipdate desc"
rs1.open rs1ppl,conn,1,1

If Not rs1.eof Then

	PageSize=10							
	gopage="vippst.asp?p="&p&"&amp;sid="&sid&"&amp;saytk="&saytk&"&amp;"
	Count=rs1.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
	rs1.move(pagesize*(page-1))
	For i=1 To PageSize     						
	If rs1.eof Then Exit For

   Response.write ""&i+(page-1)*PageSize&"."
   Response.write "<a href=""show.asp?id="&rs1("id")&"&amp;url=vippst.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs1("name"))&"(ID:"&usb(rs1("id"))&")</a>"
   if rs1("vipdate")<>""then 
   txtname="自定义"
   else
   txtname="系统定"
   end if
   
   if rs1("vipdj")<>0 then
   Response.write txtname&"<img src=""/img/vip"&rs1("vipdj")&".gif"" alt='.'/><br/>"
   else
   Response.write txtname&"<img src=""/img/vip"&getvip(rs1("myjb")+rs1("bank"),rs1("myjy"))&".gif"" alt='.'/><br/>"
   end if
	rs1.moveNext
 	Next
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">第一页</a> "
	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>"
end if
Else
   Response.write "暂时没有VIP会员！"
end if
rs1.close
set rs1=Nothing
conn.close
set conn=Nothing
%>VIP会员除了有足够<%=getcent%>和经验自动生成还可以自行添加。<br/>
自定义-->自行添加的VIP会员<br/>
系统定-->足够<%=getcent%>和经验自动生成<br/>
星星图-->一个星代表VIP一级<br/>
<a href="vipadd.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[添加VIP会员]</a>
<!--#include file="fanhui.asp"-->
<%call headsay()%>
