📄 pl.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%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="admin/function.asp"-->
<%
'====================================================================
' 请你保留这段说明,这并不会影响你的速度. 交流QQ:31424717
' 程序制作:找北
' 升级时间: 2006-2-5
' E-Mail: g362hao@gmail.com
'====================================================================
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card title='查看评论'>
<p>
<!--#include file="admin/i.asp"-->
<%
id=cint(request.QueryString("id"))
p=cint(request.QueryString("p"))
if p="" or p<1 then
p=1
end If
%>
<%
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from pingl where artid="&id
rs.open rsstr,conn,1,2
maxpage=int((rs.recordcount-1)/8)+1
if p>maxpage then
p=maxpage
end If
if rs.recordcount = 0 then
response.write("没有评论!<br/>")
end If
if rs.recordcount > 0 then
response.write("共有"&rs.recordcount&"条评论!<br/>----<br/>")
rs.Move((p-1)*8)
end If
dim j
j=1
do while ((not rs.EOF) and j<=8)
%>
<%
Response.write "时间:" & rs("pltime") &"<br/>内容:" & check(rs("pl")) & "<br/>来自:" & rs("ip") &"<br/>----<br/>"
%>
<%
rs.MoveNext
j=j+1
loop
%>
<%
if p*8<rs.recordcount then
response.write("<a href='pl.asp?id=" & id & "&p=" & p+1 & "'>[下页]</a> ")
end If
if p>1 then
response.write("<a href='pl.asp?id=" & id & "&p=" & p-1 & "'>[上页]</a> ")
end If
if p*8<rs.recordcount or p>1 then
response.write("第" & p & "页,共" & (int((rs.recordcount-1)/10)+1) & "页<br/>")
end If
%>
<%if p*8<rs.recordcount or p>1 then%>
<input name="page" title="页码" type="text" format="*N" emptyok="true" size="3" maxlength="4" value=""/>
<anchor>Go!
<go href="pl.asp" accept-charset='utf-8'>
<postfield name='id' value="<%=id%>"/>
<postfield name="p" value="$(page)"/>
</go>
</anchor><br/>
<%end if%>
<a href='read.asp?id=<%=id%>'>返回此文</a><br/>
<a href='http://<%=url%>'><%=name%></a>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -