ROOMT.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:3k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
- <%response.buffer=true%>
- <%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
- <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
- <!--#include file="conn.inc"-->
- <!--#include file="cnscucsb.asp"-->
- <wml><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <head>
- <meta http-equiv="Cache-Control" content="no-Cache"/>
- <meta http-equiv="Cache-Control" content="max-age=0"/>
- <meta http-equiv="Expires" content="Mon, 1 Jan 1990 00:00:00 GMT"/>
- </head>
- <card id="main" title="聊天大厅" >
- <p>
- =固定聊天室=<br/>
- <%
- sql="update cnscu_gr set z=0 Where CStr(id)="&myid
- conn.Execute(sql)
- set rsroom=Server.CreateObject("ADODB.Recordset")
- rssptm="select name,pid,id,brr from ltlb where cstr(cjz)=0 order by pid asc"
- rsroom.open rssptm,conn,1,2
- if rsroom.eof then
- response.write("暂无聊天室,请登陆后台添加")
- else
- rsroom.Move(0)
- dim v
- v=1
- do while ((not rsroom.EOF) and v <=5000)
- set lssz=Server.CreateObject("ADODB.Recordset")
- ssqlb="select z from cnscu_gr where cstr(z)='"&rsroom("id")&"'"
- lssz.open ssqlb,conn,1,1
- response.write("<a href='ROOM.asp?cnscu="&cnscu&"&ltid="&rsroom("id")&"'>"&ubb(rsroom("name"))&"</a>(" & lssz.recordcount & "人)")
- if rsroom("brr")="1" then response.write("<br/>")
- rsroom.MoveNext
- v=v+1
- loop
- end if
- rsroom.close
- set rsroom=nothing
- lssz.close
- set lssz=nothing
- response.write("=自建聊天室=<br/>")
- set rsroz=Server.CreateObject("ADODB.Recordset")
- rssv="select * from ltlb where cstr(cjz)<>0 order by id desc"
- rsroz.open rssv,conn,1,2
- if rsroz.eof then
- response.write("暂无聊天室,欢迎建立")
- else
- rsroz.Move(0)
- dim l
- l=1
- do while ((not rsroz.EOF) and l <=5000)
- set lsszs=Server.CreateObject("ADODB.Recordset")
- ssqlbs="select z from cnscu_gr where cstr(z)='"&rsroz("id")&"'"
- lsszs.open ssqlbs,conn,1,1
- response.write("<a href='ROOM.asp?cnscu="&cnscu&"&ltid="&rsroz("id")&"'>"&ubb(rsroz("name"))&"</a>(" & lsszs.recordcount & "人)<br/>")
- response.write("房主:<a href='gr_ZL.asp?cnscu="&cnscu&"&id="&rsroz("cjz")&"'>"&ubb(rsroz("cni"))&"</a>")
- if rsroz("ltsm")<>"0" then response.write("[加密]<br/>")
- if rsroz("ltsm")="0" then response.write("[公共]<br/>")
- rsroz.MoveNext
- l=l+1
- loop
- end if
- rsroz.close
- set rsroz=nothing
- lsszs.close
- set lsszs=nothing
- %>
- ------------<br/>
- <a href='ADD_ROOM.asp?cnscu=<%=cnscu%>'>建立聊室</a> <a href='INDEX.asp?cnscu=<%=cnscu%>'>社区首页 </a>
- </p>
- </card>
- </wml>