index.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:5k
源码类别:
手机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"--><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <!--#include file="yksb.asp"-->
- <%set zhlhp=Server.CreateObject("ADODB.Recordset")
- zhhssqllp="select * from ltjb where CStr(id)=1"
- zhlhp.open zhhssqllp,conn,1,1
- ltname=zhlhp("name")
- ltlogo=zhlhp("logo")
- zhlhp.close
- set zhlhp=nothing
- if vvvvv<>"" then
- '关闭了下线识别
- set jszx=Server.CreateObject("ADODB.Recordset")
- jssql="select tj,zx,id from cnscu_gr where cstr(zx)=1 order by tj asc"
- jszx.open jssql,conn,1,3
- if clng(ttvv)-jszx("tj")>60 then jszx("zx")=0
- jszx.update
- jszx.close
- set jszx=nothing
- end if%>
- <wml>
- <head><meta http-equiv='Cache-Control' content='no-cache'/>
- </head>
- <card title="<%=ltname%>">
- <p>
- <%
- bb=request("bb")
- if bb="" then bb="2"
- if bb="1" then fl="tm"
- if bb="2" then fl="hhsj"
- if bb<>"1" or bb<>"2" then bb="2"
- %>
- <%if cnscu="youke" or cnscu="" then%>
- <a href="cnscu_grdl.asp">登陆/注册</a><br/>
- <%end if%>
- <%
- if len(ltlogo)>7 then
- response.write("<img src='" & ltlogo & "' alt='ing'/><br/>")
- end if
- sql="update cnscu_gr set z=0 Where CStr(id)="&myid
- conn.Execute(sql)
- %>
- <%if cnscu<>"youke" and cnscu<>"" then%>
- <!--#include file="xxts.asp"-->
- 欢迎您:<b><a href="gr_zl.asp?id=<%=myid%>&cnscu=<%=cnscu%>"><%=myni%></a></b><br/>
- <a href="hy.asp?cnscu=<%=cnscu%>">会员中心</a>|<a href="bangzhu.asp?cnscu=<%=cnscu%>">新手帮助</a><br/>
- <%end if%>
- <!--#include file="gg.asp"-->
- <%response.write("=论坛列表=<br/>")
- set rsql=Server.CreateObject("ADODB.Recordset")
- rsspt="select * from sclt order by pid asc"
- rsql.open rsspt,conn,1,2
- if rsql.eof then
- response.write("暂无论坛,请登陆后台添加")
- else
- rsql.Move(0)
- dim j
- j=1
- do while ((not rsql.EOF) and j <=5000)
- %>
- <%if rsql("lx")="1" then%>
- <a href='lt_list.asp?ltid=<%=rsql("id")%>&cnscu=<%=cnscu%>'><%=ubb(rsql("name"))%></a>
- <%elseif rsql("lx")="2" then%>
- <a href='<%=ubb(rsql("shuo"))%>'><%=ubb(rsql("name"))%></a>
- <%elseif rsql("lx")="0" then%>
- <%=ubb2(rsql("name"))%>
- <%end if%>
- <%if rsql("brr")=1 then%><br/><%end if%>
- <%
- rsql.MoveNext
- j=j+1
- loop
- end if
- rsql.close
- set rsql=nothing%>
- <%if fl="tm" then%>
- 最新动态:<a href="index.asp?cnscu=<%=cnscu%>&bb=2&sj=<%=time%>">热</a>|新<br/>
- <%else%>
- 最新动态:热|<a href="index.asp?cnscu=<%=cnscu%>&bb=1&sj=<%=time%>">新</a><br/>
- <%end if%>
- <%set brs=Server.CreateObject("ADODB.Recordset")
- ssql="select top 3 * from lttz where CStr(yc)=0 and ltid<>0 and ltid<>9999 order by "&fl&" desc"
- brs.open ssql,conn,1,1
- if brs.eof then
- Response.write "暂无帖子<br/>"
- Else
- For i=1 to 3
- spmc=left(brs("name"),8)
- if len(brs("name"))>8 then
- spmc=spmc+"。。"
- End if
- Response.write ""&i&".<a href='lt_view.asp?tid=" & brs("id") & "&cnscu="&cnscu&"'>" & ubb(spmc) & "</a><br/>"
- brs.Movenext
- if brs.EOF then Exit for
- Next
- End if
- brs.close
- set brs=nothing
- %>
- <%if fl="tm" then%>
- <a href="lt_spjs.asp?cnscu=<%=cnscu%>&bb=1">更多最新帖子..</a><br/>
- <%end if%>
- <%if fl="hhsj" then%>
- <a href="lt_spjs.asp?cnscu=<%=cnscu%>&bb=2">更多热门帖子..</a><br/>
- <%end if%>
- =聊天大厅=<br/>
- <%
- set rsroom=Server.CreateObject("ADODB.Recordset")
- rssptm="select name,pid,id,brr from ltlb where 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
- lssz.close
- set lssz=nothing
- end if
- rsroom.close
- set rsroom=nothing
- response.write("<a href='ROOMT.asp?cnscu="&cnscu&"'>自建聊天室</a><br/>")%>
- <%
- set brsz=Server.CreateObject("ADODB.Recordset")
- ssqlz="select zx from cnscu_gr where zx=1"
- brsz.open ssqlz,conn,1,1
- response.write("--------<br/>在线会员共<a href='lt_zxhy.asp?cnscu="&cnscu&"'>" & brsz.recordcount & "</a>人<br/>")
- brsz.close
- set brsz=nothing%>
- <!--#include file="w.asp"-->
- </p>
- </card>
- </wml>