<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%call head()
Call saycarda("版主管理")
Response.write "<a href='adminboss.asp?sid="&sid&"&amp;saytk="&saytk&"'>添加管理或版主</a><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="adminbbsboss.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
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=""show.asp?id="&rs("id")&"&amp;url=adminbbsboss.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a><br/>"
   Response.write "(管辖论坛:"
    Response.write "<a href='/bbs/board.asp?bbsid="&rs("skey")&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>"&ubb(sellname)&"</a>)"
   Response.write "[<a href=""adminget.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">撤</a>]"
   Response.write "<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&"页"
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 "暂时没有版主！<br/>"
end if
rs.close
set rs=nothing

   Response.write "==社区"&saybbsgl&"==<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=""show.asp?id="&rs("id")&"&amp;url=adminbbsboss.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   Response.write "[<a href=""adminget.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">撤</a>]"
   Response.write "<br/>"
	rs.moveNext
 	Next
else
   Response.write "暂时没有社区"&saybbsgl&"！<br/>"
end if
rs.close
set rs=Nothing
   Response.write "==社区"&saybbsgl1&"==<br/>"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users Where keys=2 order by id desc",conn,1,1
If Not rs.eof	Then
	For i=1 To rs.recordcount
   Response.write "<a href=""show.asp?id="&rs("id")&"&amp;url=adminbbsboss.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   Response.write "[<a href=""adminget.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">撤</a>]"
   Response.write "<br/>"
	rs.moveNext
 	Next
else
   Response.write "暂时没有社区"&saybbsgl1&"！<br/>"
end if
rs.close
set rs=Nothing
   Response.write "==社区"&saybbsgl2&"==<br/>"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users Where keys=3 order by id desc",conn,1,1
If Not rs.eof	Then
	For i=1 To rs.recordcount
   Response.write "<a href=""show.asp?id="&rs("id")&"&amp;url=adminbbsboss.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   Response.write "[<a href=""adminget.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">撤</a>]"
   Response.write "<br/>"
	rs.moveNext
 	Next
else
   Response.write "暂时没有社区"&saybbsgl2&"！<br/>"
end if
rs.close
set rs=Nothing
   Response.write "==社区"&saybbsgl4&"==<br/>"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users Where keys=5 order by id desc",conn,1,1
If Not rs.eof	Then
	For i=1 To rs.recordcount
   Response.write "<a href=""show.asp?id="&rs("id")&"&amp;url=adminbbsboss.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   Response.write "[<a href=""adminget.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">撤</a>]"
   Response.write "<br/>"
	rs.moveNext
 	Next
else
   Response.write "暂时没有社区"&saybbsgl4&"！<br/>"
end if
rs.close
set rs=Nothing
   Response.write "==社区"&saybbsgl5&"==<br/>"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users Where keys=6 order by id desc",conn,1,1
If Not rs.eof	Then
	For i=1 To rs.recordcount
   Response.write "<a href=""show.asp?id="&rs("id")&"&amp;url=adminbbsboss.asp&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
   Response.write "[<a href=""adminget.asp?action=key&amp;ids="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">撤</a>]"
   Response.write "<br/>"
	rs.moveNext
 	Next
else
   Response.write "暂时没有社区"&saybbsgl5&"！<br/>"
end if
rs.close
set rs=Nothing

Response.write "------------"
conn.close
set conn=Nothing

%>
<!--#include file="fanhui.asp"-->
<%response.write""
call headsay()%>

