add_ROOMcl.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>
- <%
- nam=usb(request("nam"))
- idi=usb(request("idi"))
- txt=usb(request("txt"))
- sxsj=usb(request("ftsj"))
- gl=usb(request("gl"))
- gl1=usb(request("gl1"))
- did=usb(request("did"))
- mm=usb(request("mm"))
- logo=usb(request("logo"))
- pag=usb(request("pag"))
- yc=request("yc")
- brr=request("brr")
- if brr="" then brr="0"
- lx=request("lx")
- if lx="" then lx="0"
- did=request("did")
- '----识别错误并跳转-----
- if nam="" then response.redirect "ADD_ROOM.asp?cnscu="&cnscu&"&cw=1&ok="&lx&""
- if sxsj="" then response.redirect "ADD_ROOM.asp?cnscu="&cnscu&"&cw=2&ok="&lx&""
- '---开始增加----
- set rslk=Server.CreateObject("ADODB.Recordset")
- rsplj="select top 1 id from ltlb where cstr(cjz)='"&myid&"'"
- rslk.open rsplj,conn,1,2
- if not rslk.eof then response.redirect "ADD_ROOM.asp?cnscu="&cnscu&"&cw=3&ok="&lx&""
- rslk.close
- set rslk=nothing
- set rsk=Server.CreateObject("ADODB.Recordset")
- rsplk="select id from [ltlb] order by id desc"
- rsk.open rsplk,conn,1,2
- ioi=rsk("id")
- rsk.close
- set rsk=nothing
- set rs=Server.CreateObject("ADODB.Recordset")
- rspl="select * from ltlb order by pid asc"
- rs.open rspl,conn,1,2
- rs.addnew
- if nam<>"" then rs("name")=nam
- if sxsj<>"" then rs("sxsj")=sxsj
- if mm<>"" then rs("ltsm")=mm
- if gl<>"" then rs("gl")=gl
- rs("pid")=0
- rs("gl1")=myid
- rs("brr")=1
- rs("cjz")=myid
- rs("cni")=myni
- rs.update
- '---关闭数据----
- rs.close
- set rs=nothing
- %>
- 建立成功。。<br/>
- <a href='ROOM.asp?cnscu=<%=cnscu%>&ltid=<%=ioi+1%>'>进入聊天室</a><br/>
- ----------<br/>
- <a href="ROOMT.asp?cnscu=<%=cnscu%>">返回聊天大厅</a><br/>
- <a href="INDEX.asp?cnscu=<%=cnscu%>">返回社区首页</a><br/>
- 系统报时:<%=time%>
- </p></card></wml>