<!--#include file="Inc.asp"-->
<!--#include file="ydzq1.asp"-->
<%call head()
Call saycarda(""&zonene&"中心")

%>


<!--#include file="sy1.asp"-->
<%

iddi=trim(request.querystring("bbsid"))
prentIDpp=request.querystring("prentIDp")
If keys=1 Or keys=2 Or keys=3 Then
If prentIDpp=10 THEN

conn.execute("update ydbbs set prentID=0 where ID="&IDDI)
Response.write "<br/>操作提示:成功解封该"&zonene&"!<br/>"
ElseIf prentIDpp=20 Then
conn.execute("update ydbbs set prentID=1 where ID="&IDDI)
Response.write "<br/>操作提示:成功封锁该"&zonene&"!<br/>"

End if
End If
Response.write "<img src='"&jialogo&"' alt='.' /><br/>"
dim zonejb,newzonenum,zoneyuejb
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select zonejb,zonenum,zoneyuejb from twapp where id=1",conn,1,1
if rs.eof then
  Call Error("系统没有配置！")
  end if
zonejb=rs("zonejb")
zoneyuejb=rs("zoneyuejb")
newzonenum=rs("zonenum")
rs.close
set rs=nothing


set rs12=Server.CreateObject("ADODB.Recordset")
rs12.open"select * from [Users] where [id]="&myid,conn,1,1
zoneid=rs12("zoneid")
rs12.close
set rs12=nothing


set rs11=Server.CreateObject("ADODB.Recordset")
rs11.open"select * from ydbbs where id="&zoneid,conn,1,1

If zoneid<>0 And zoneid<>"" Then
If saytk>1 Then response.write "<div class=""titlez""><div><em>"
response.write"【我的"&zonene&"】<br/>"
If saytk>1 Then response.write "</em></div></div><div class=""content red"">"
ydbbsname=rs11("name")
response.write"[<a href='zoneall.asp?bbsid="&zoneid&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>"&ubb(ydbbsname)&"</a>]<br/>"

dim zonenum1
    zonenum1=conn.execute("Select count(ID) from [users] where zoneid="&zoneid&"")(0)

 
set rs13=Server.CreateObject("ADODB.Recordset")
rs13.open"select * from ydbbs where id="&zoneid,conn,1,1

 set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open"select * from users where id="&rs13("adminusid"),conn,1,1
If Not rs1.eof Then
zonezz=rs1("id")
response.write ""&zonezz&":"&rs1("name")&"<br/>"
end If
rs1.close
set rs1=nothing
 response.write"成员:共(<a href=""zoneman.asp?id="&zoneid&"&amp;saytk="&saytk&"&amp;sid="&sid&""">"&zonenum1&"</a>)人<br/>"&chr(13)


set rs15=Server.CreateObject("ADODB.Recordset")
rs15.open"select * from users where id="&rs13("adminusid")&" and id="&myid,conn,1,1
If rs15.eof Then

set rs16=Server.CreateObject("ADODB.Recordset")
rs16.open"select * from users where skey="&zoneid,conn,1,1
If rs16.eof Then
response.write "我的职位:普通成员<br/>"
Else

response.write "我的职位:"&zonene&"版主<br/>"
End if
else

response.write "我的职位:<img src=""/img/zhuzhang.gif"" alt="".""/>"&zonezz&""
Response.write "<br/><a href=""/bbs/chat/gruchatadd.asp?bbsid="&zoneid&"&amp;saytk="&saytk&"&amp;sid="&sid&""">申请聊室</a><br/>"

End if
rs15.close
set rs15=Nothing
If rs13("prentID")<>0 Then
Response.write ""&zonene&"违规已被管理员封锁<br/>"
End if
rs13.close
set rs13=nothing
End If
If saytk>1 Then response.write "</div><div class=""titlez""><div><em>"
   response.write "【最新"&zonene&"】<br/>"
If saytk>1 Then response.write "</em></div></div>"
If saytk=100 Then response.write "<ul class=""alst"">"
set rs=Server.CreateObject("ADODB.Recordset")
If keys=1 Or keys=2 Or keys=3 Then
prentIDI="where city=2"
Else
prentIDI="where prentID=0 and city=2"
End if
rs.open"select * from ydbbs "&prentIDI&" order by zonejb desc",conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=8			
	Dim Count,page,pagecount,gopage			
	gopage="zone.asp?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	
	If saytk=100 Then response.write"<li>"
    response.write i+(page-1)*PageSize&"."
    dim username
 set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open"select * 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


dim zonenum
    zonenum=conn.execute("Select count(ID) from [users] where zoneid="&rs("id"))(0)

    response.write "<a href='/bbs/zoneall.asp?bbsid="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>"&ubb(rs("name"))&"</a>"
    
    response.write"(<a href=""zoneman.asp?id="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&""">"&zonenum&"</a>人)"&chr(13)
	If keys=1 Or keys=2 Or keys=3 Then
   If rs("prentID")<>0 Then
   response.write "<a href='/bbs/zone.asp?prentIDp=10&amp;bbsid="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>解除封锁</a>"
   Else
   response.write "<a href='/bbs/zone.asp?prentIDp=20&amp;bbsid="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>封锁</a>"
   
   End If
   End if

   response.write"<br/>"&left(rs("grouptxt"),12)&".."
      

     response.write"<br/>"
	If saytk=100 Then response.write"</li>"
	rs.moveNext
 	Next
	If saytk=100 Then response.write"</ul>"
	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/><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


'=======================
If saytk>1 Then response.write "<div class=""titlez""><div><em>"
  response.write"【"&zonene&"大看台】<br/>"&chr(13)
  If saytk>1 Then response.write "</em></div></div>"
  If saytk=100 Then response.write "<ul class=""alst"">"
dim rs22
set rs22=Server.CreateObject("ADODB.Recordset")
rs22.open"select * from sell where city=2 order by id desc",conn,1,1
If rs22.eof Then

response.write("暂无最新话题！<br/>")


else
rs22.Move(0)
dim a
a=1


do while ((not rs22.EOF) and a <=6)

If saytk=100 Then response.write"<li>"
if rs22("num")=1 then response.write("<b>[顶]</b>")
    if rs22("num")=20 then response.write("<b>[固]</b>")
    if rs22("jj")=1 then response.write("<b>[精]</b>")
    if rs22("st")=1 then response.write("<b>[锁]</b>")
    if rs22("lx")=2 then response.write("<b>[投]</b>")
    if rs22("lx")=4 then response.write("<b>[隐]</b>")
    if rs22("lx")=5 then response.write("<b>[币]</b>")
    if rs22("paycent")<>0 then response.write("<b>[卖]</b>")
    if rs22("x")=>10 then response.write"<img src='/bbs/jia/1.gif' alt='hot'/>"
  if rs22("tzdj")<>0 then
response.write"<img src="""&rs22("tzdj")&""" alt='.'/>"
end if

  response.write"<a href='/bbs/topic.asp?tid="&rs22("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>"&left(UBB(rs22("name")),16)&"</a><br/>"
  If saytk=100 Then response.write"</li>"
rs22.MoveNext
a=a+1
loop

end if
If saytk=100 Then response.write"</ul>"
rs22.close
set rs22=Nothing
'=====================



set rs12=Server.CreateObject("ADODB.Recordset")
rs12.open"select * from [Users] where [id]="&myid,conn,1,1
zoneid=rs12("zoneid")
rs12.close
set rs12=nothing

set rs11=server.CreateObject("ADODB.RecordSet")
 rs11.Open "select * from ydbbs where id= "&zoneid,conn,1,1
if rs11.eof Then
response.write"【我的"&zonene&"】"
response.write "<br/>暂未加入任何"&zonene&"！<br/>"


end if
rs11.close
set rs11=nothing

If saytk=1 Then
response.write "-------------<br/>"
Else
%><div class="path"><%
End if
%>
<a href="zoneadd.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">申请<%=zonene%></a> |  
<a href="searchbbs.asp?act=zone&amp;sid=<%=sid%>&amp;saytk=<%=saytk%>">搜索<%=zonene%></a>
<%If saytk>1 Then response.write "</div>"

if myid<>0 then
mz="[url=uinfo.asp?id="&myid&"&amp;saytk="&saytk&"&sid=[sid]]"&myni&"[/url]"
else
mz="游客"
end if
conn.execute("insert into sqdt(shijian,dz)values('"&now&"','"&mz&"进入了(url=/bbs/zone.asp?saytk="&saytk&"&sid=[sid])"&zonene&"中心(/url)')")
rs.close
set rs=nothing
conn.close
set conn=nothing


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

%>
