📄 admin_ping.asp
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%
'=================================================
' Copyright 2007-05 jinqiu. All Rights Reserved.
' Last Update: 2007-05-15 HTTP://www.wapfs.net
'=================================================
%>
<%
if session("admin")="" then
response.redirect "admin.asp"
else
if session("flag")>2 then
response.write "<br/><p align='center'>您没有操作的权限</p>"
response.end
end if
end if
%>
<%
'=================================================
' Copyright 2005-09 jinqiu. All Rights Reserved.
' Last Update: 2005-09-24 HTTP://CZGPRS.COM
' E-Mail: 0768cz@21cn.com QQ:316801451
'=================================================
%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?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">
<!--#INCLUDE FILE="conn.asp" -->
<!--#INCLUDE FILE="char.asp" -->
<wml>
<head>
<meta http-equiv='Cache-Control' content='no-Cache'/>
<meta http-equiv='Cache-Control' content='max-age=0'/>
</head>
<card id='main' title='相关评论' >
<p>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from ping Order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "没有任何评论!<br/>"
else
rs.PageSize = 10
page=CLng(Request("page"))
if page<1 then page=1
if page>rs.pagecount then page=rs.pagecount
rs.absolutepage=page
mypagesize = rs.pagesize
if page=1 then
bihao=0
else
bihao=page*10-10
End if
%>
<%
For i=1 to rs.PageSize
bihaocont=bihaocont+1
%><%=rs.RecordCount-CLng(bihao+bihaocont)+1%>.
<%
con=rs("note")
response.write ""&untow(rs("name"))&":"
ppp=request.queryString("p")
if len(con)<50 then
response.write ""&untow(con)&"<br/>"
if session("flag")<>"" then
if session("flag")<3 then
response.write " <a href='ping_del.asp?id="&rs("id")&"&zuti="&rs("zuti")&"'>[删]</a>"
response.write " <a href='ping_topic.asp?id="&rs("id")&"'>[详]</a>"
response.write " <a href='ping_list.asp?id="&rs("zuti")&"'>[文]</a><br/>"
end if
end if
else
con=mid(con,1,50)
response.write "<a href='ping_topic.asp?id="&rs("id")&"'>"&untow(con)&"...</a><br/>"
end if
%>
<%
rs.Movenext
if rs.eof and i<=mypagesize then Exit for
Next
%>
<%
if page>1 then%>
<a href='admin_ping.asp?page=<%=page-1%>'>上页</a>
<%
end if
%>
<%
if page<rs.pagecount then%>
<a href='admin_ping.asp?page=<%=page+1%>'>下页</a>
<%
end if
%>
(<%=page%>/<%=rs.pagecount%>)<%end if%>
<br/>~~~~~~~~~~~~
<br/><a href='#page'>按页搜索</a>
<br/><a href='main.asp'>管理首页</a>
<%
rs.close
set rs=nothing
%></p>
</card>
<card id='page' title='指定页面' >
<p>输入页码:<input name='page' type='text' size='6' format='*N' emptyok='false' maxlength='5'/><a href='admin_ping?page=$page'>[-GO-]</a></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -