<!--#include file="Inc.asp"-->
<!--#include file="ydzq1.asp"-->

<%



Dim ID
ID=trim(request.querystring("ID"))
if ID="" or Isnumeric(ID)= false THEN
  Call Error("ID无效！")
  end if
call head()

Call saycarda(""&zonene&"成员")

dim newzonenum
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select zonenum from twapp where id=1",conn,1,1
if rs.eof then
  Call Error("系统没有配置！")
  end if
newzonenum=rs("zonenum")
rs.close
set rs=nothing

set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from YDBBS WHERE ID="&ID,conn,1,1
if rs.eof then
  Call Error(""&zonene&"不存在！")
  end if
  rs.close
  set rs=nothing
   dim zonenum
    zonenum=conn.execute("Select count(ID) from [users] where zoneid="&id)(0)
    if zonenum >= newzonenum then
    response.write"<a href=""board.asp?bbsid="&id&"&amp;saytk="&saytk&"&amp;sid="&sid&""">进入"&zonene&"论坛</a><br/>"&chr(13)
    else
    response.write ""&zonene&"论坛未开放<br/>"
    end if
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from Users WHERE zoneID="&ID,conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	If saytk=1 Then
	PageSize=10	
	Else
	PageSize=20	
	End if
	Dim Count,page,pagecount,gopage			
	gopage="zoneman.asp?ID="&ID&"&amp;saytk="&saytk&"&amp;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
   Response.write ""&i+(page-1)*PageSize&"."

   Response.write "<a href=""uinfo.asp?id="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>"
if keys=1 or keys=3 or skey=abs(id) or adminzone=abs(id) or keys=2 then
   Response.write "[<a href=""getsave.asp?Action=zone&amp;id="&id&"&amp;ids="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&""">踢出"&zonene&"</a>]"
    
   end if
   Response.write "<br/>"
	rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下一页</a>"&chr(13)
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上一页</a>"&chr(13)

response.write "<br/>("&page&"/"&pagecount&")共"&count&"人"
	if pagecount>1 then response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""2""/><a href="""&gopage&"page=$(page)"">页</a>"
Else
response.write"暂时没有记录！"
end if
rs.close
set rs=nothing
conn.close
set conn=Nothing
   Response.write "<br/>---------<br/>"
   Response.write "<a href=""zoneall.asp?bbsid="&id&"&amp;saytk="&saytk&"&amp;sid="&sid&""">[返回"&zonene&"]</a>"
   Response.write "<br/><a href=""show.asp?saytk="&saytk&"&amp;sid="&sid&""">空间</a>>>"
   Response.write "<a href=""index.asp?saytk="&saytk&"&amp;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)&"]"
   

call headsay()
%>