📄 online.asp
字号:
<!--#include file="inc/cconst.asp"-->
<!--#include file="inc/conn.asp"--><%
response.ContentType="text/vnd.wap.wml;charset=utf-8"
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Cache-Control", "no-cache, must-revalidate"
sub showonlineinfo
dim rs,onlinetotalcount,onlineusercount,onlineuserstr
onlinetotalcount=0
onlineusercount=0
onlineuserstr=""
set rs=conn.execute("select ec.studentid,ec.sname,ec.userid,online.ip,online.entertime,online.newtime from online left join ec on ec.studentid=online.sname")
while not rs.eof
IF not isnull(rs("studentid")) Then
onlineusercount=onlineusercount+1
onlineuserstr=onlineuserstr&"|<a href='User_view.asp?userid="&rs(2)&"'>"&wap_81238_net(rs(1))&"</a>"
End IF
onlinetotalcount=onlinetotalcount+1
rs.movenext
wend
rs.close
set rs=nothing
Response.Write "<p>总在线:<b>"&onlinetotalcount&"</b>人</p>"
Response.Write "<p>登录会员:<b>"&onlineusercount&"</b>人 游客:<b>"&onlinetotalcount-onlineusercount&"</b>人</p>"
Response.Write "<p>在线会员:"&onlineuserstr&"</p>"
Response.Flush
end sub
%>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><head><meta http-equiv="Cache-Control" content="max-age=0"/></head>
<card id="people" title="当前在线人数">
<p align="center"><%=tra(ctitle)%></p>
<%showonlineinfo%>
<p><a href="main.asp"><%=tra(cback)%></a></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -