/bbs/room_zx.asp代码页
<%@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'/>
</head>
<card title="聊室在线">
<p>
<%
pag=10
ltid=cint(request.QueryString("ltid"))
set brs=Server.CreateObject("ADODB.Recordset")
ssql="select nini,id,tj,zx,z from cnscu_gr where cstr(z)="&ltid&" order by zx desc"
brs.open ssql,conn,1,1
if brs.eof then
   Response.write "暂无在线<br/>"
Else
page=cint(request.QueryString("page"))
if page="" or page<1 then page=1
maxpage=int((brs.recordcount-1)/pag)+1
if page>maxpage then page=maxpage

brs.Move((page-1)*pag)
dim j
j=1
do while ((not brs.EOF) and j <=cint(pag))
    spmc=left(brs("nini"),8)
   if len(brs("nini"))>8 then
    spmc=spmc+"。。"
   End if
    Response.write ""&((page-1)*pag+j)&".<a href='gr_zl.asp?id=" & brs("id") & "&amp;cnscu="&cnscu&"'>" & ubb(spmc) & "</a>(ID:" & ubb(brs("id")) & ")"
if ltid=session("nid") or mycjbz<>0 then Response.write "[管理]"
 Response.write "<br/>"
brs.Movenext  
j=j+1
loop

if page*pag<brs.recordcount then response.write("[<a href='ROOM_zx.asp?cnscu=" & cnscu & "&amp;ltid=" & ltid & "&amp;id=" & id & "&amp;page=" & page+1 & "&amp;bb=" & bb & "'>下一页</a>]")
if page>1 then response.write("[<a href='ROOM_zx.asp?cnscu=" & cnscu & "&amp;ltid=" & ltid & "&amp;id=" & id & "&amp;page=" & page-1 & "&amp;bb=" & bb & "'>上一页</a>]")
response.write("<br/>(第"& page & "/" & (int((brs.recordcount-1)/10)+1) &"页/共" & brs.recordcount & "位会员)")
end if
brs.close
set brs=nothing
%><br/>
跳到第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(page+1)%>" maxlength="3"/>页
<anchor>[GO]
    <go href="ROOM_zx.asp?cnscu=<%=cnscu%>&amp;tid=<%=tid%>&amp;ltid=<%=ltid%>" accept-charset='utf-8'>
        <postfield name="page" value="$(i<%=minute(now)%><%=second(now)%>)"/>
    </go>
</anchor>
<br/>
**********<br/>
<a href="ROOM.asp?ltid=<%=ltid%>&amp;cnscu=<%=cnscu%>">返回聊天</a>|
<a href="index.asp?ltid=<%=ltid%>&amp;cnscu=<%=cnscu%>">社区首页</a>
</p>
</card>
</wml>
字母检索
回到顶部