<!--#include file="../Inc.asp"-->
<!--#include file="../ydzq.asp"-->
<%call head()
Call saycardc(""&zonene&"管理")
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from ydbbs where prentID=0 and city=2 order by pid asc",conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=8			
	Dim Count,page,pagecount,gopage			
	gopage="adminbbs.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&"."
    dim username
 set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open"select name from users  where id="&rs("adminusid"),conn,1,1
If rs1.eof Then
username=""
else
username=rs1("name")
end if
rs1.close
set rs1=nothing
    response.write ""&zonene&"名称:"&rs("name")
    response.write "<br/>"&zonezz&":"&username
    response.write "<br/>简介:"&left(rs("grouptxt"),30)
    response.write "..."
    if rs("yc")=1 then
    response.write "<br/>状态:隐藏"
    else
    response.write "<br/>状态:正常"
    end if
    response.write"<br/><a href=""admineditbbsbk.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">编辑</a>"&chr(13)
        response.write"<a href=""adminbbsdel.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">删除</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/>"&page&"/"&pagecount&"页,共"&Count&"条<br/>"
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 "暂时没有"&zonene&"！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write"----------<br/>"
response.write"<a href=""zoneset.asp?sid="&sid&"&amp;saytk="&saytk&""">"&zonene&"设置1</a><br/>"

response.write"<a href=""zonepz.asp?sid="&sid&"&amp;saytk="&saytk&""">"&zonene&"设置2</a>"
%><!--#include file="fanhui.asp"-->
<%
call headsay()%>
