﻿<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%'============================================================
' Copyright 2007-09 燃点真情. All Rights Reserved.
' Last Update: 2008-3-22  13:28
' ADD:wap.nowtx.cn
' E-Mail: xivn@163.com  QQ:531233814
'============================================================
%>
<%dim bbsid
  bbsid=trim(request.querystring("bbsid"))
if bbsid="" or IsNumeric(bbsid)=False then
  Call Error("ID无效！")
  end if

set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select id from ydbbs where id="&bbsid,conn,1,1
if rs.eof then
  Call Error("<card  title=""温馨提示""><p>不存在的记录！")
  end if
rs.close
set rs=nothing

set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select id from chat where gruid="&bbsid,conn,1,1
if rs.eof then
response.write"<card  title=""温馨提示""><p>聊天室还没有开放呢，联系您的群组主人开放吧！"

'群组主人权限
if abs(adminzone)=abs(bbsid) then
   Response.write "<br/><a href=""chat/gruchatadd.asp?bbsid="&bbsid&"&amp;sid="&sid&""">开通聊天室</a>"
end if
   Response.write "<br/><a href=""board.asp?bbsid="&bbsid&"&amp;sid="&sid&""">返回上级</a>"
response.write"</p></card></wml>"
response.end
  end if
ID=rs("id")
rs.close
set rs=nothing
conn.close
set conn=nothing
%><card id='card1' title='正在进入群聊...'> <onevent type='onenterforward'>
<go href='chat/chatroom.asp?id=<%=id%>&amp;sid=<%=sid%>'/></onevent>
<p align="left">
<a href="chat/chatroom.asp?id=<%=id%>&amp;sid=<%=sid%>">马上进入群聊</a><br/>如不能正常跳转请点击链接<br/>
</p>
</card></wml>