<!--#include file="Inc.asp"-->
<!--#include file="ydzq1.asp"-->
<%
Response.write "<card id=""main"" title=""管理团队""><p>"
Response.write "<a href=""uinfo.asp?id=1&amp;sid="&sid&""">投诉/报错/建议</a>"



Response.write "<br/>-----------<br/>"

Response.write "【论坛版主】<br/>"
dim rs1,sellname
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users Where skey>0 order by id desc",conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="managers.asp?sid="&sid&"&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
set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open"select name from ydbbs Where ID="&rs("skey"),conn,1,1
if not rs1.eof then
sellname=rs1("name")
end if
rs1.close
set rs1=nothing
   Response.write ""&i+(page-1)*PageSize&"."
   Response.write "<a href=""uinfo.asp?id="&rs("id")&"&amp;sid="&sid&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   if keys=1 or keys=2 then
   Response.write "[<a href=""getsave.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&""">撤</a>]"
   end if
   Response.write "<br/>"
   Response.write "(管辖论坛:"
    Response.write "<a href='board.asp?bbsid="&rs("skey")&"&amp;sid="&sid&"'>"&ubb(sellname)&"</a>)<br/>"
	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&"页<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">跳转</a><br/>"
Else
   Response.write "暂时没有版主！<br/>"
end if
rs.close
set rs=nothing

   Response.write "【社区管理】<br/>"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users Where keys=1 order by id desc",conn,1,1
If Not rs.eof	Then
	For i=1 To rs.recordcount
   Response.write "<a href=""uinfo.asp?id="&rs("id")&"&amp;sid="&sid&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a><br/>"
	rs.moveNext
 	Next
else
   Response.write "暂时没有管理员！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=Nothing
   Response.write "------------<br/>"
   Response.write "<a href=""bbslist.asp?sid="&sid&""">返回社区排行榜</a><br/>"
   Response.write "<a href=""/bbs/show.asp?sid="&sid&""">空间</a>>>"
   Response.write "<a href=""/bbs/index.asp?sid="&sid&""">社区</a>"
   Response.write ">><a href=""/index.asp?sid="&sid&""">首页</a><br/>(c) "&Request.ServerVariables("SERVER_NAME")&"["&String(2-Len(hour(now)),"0") & hour(now) &":"&String(2-len(minute(now)),"0") & minute(now)&"]"
   Response.write "</p></card></wml>"
%>