📄 ping.asp
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<% artid=request("articleid") %>
<%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 article where articleid="&artid&""
rs.open sql,conn,1,1
if not rs.eof then
title=rs("title")
end if
%>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from sheet where zuti="&artid&" order by time desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "没有任何评论!<br/>"
response.write "<a href='add.asp?id="&artid&"'>我来发表评论</a><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
%>
关于<%=title%>的评论
<br/><a href='add.asp?id=<%=artid%>'>我来发表评论</a>
<br/>~~~~~~~~~~~~<br/>
<%
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='del.asp?id="&rs("id")&"&zuti="&rs("zuti")&"'>删除</a><br/>"
end if
end if
else
con=mid(con,1,50)
response.write "<a href='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='ping.asp?articleid=<%=artid%>&page=<%=page-1%>'>上页</a>
<%
end if
%>
<%
if page<rs.pagecount then%>
<a href='ping.asp?articleid=<%=artid%>&page=<%=page+1%>'>下页</a>
<%
end if
%>
(<%=page%>/<%=rs.pagecount%>)<%end if%>
<br/>~~~~~~~~~~~~
<br/><a href='../list.asp?id=<%=artid%>'>返上一级</a>
<br/><a href='ping_my.asp?id=<%=artid%>'>我的评论</a>
<br/><a href='#page'>按页搜索</a>
<br/><a href='../index.asp'>返回首页</a>
</p>
</card>
<card id='page' title='指定页面' >
<p>输入页码:<input name='page' type='text' size='6' format='*N' emptyok='false' maxlength='5'/><a href='ping.asp?page=$page'>[-GO-]</a></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -