%set rs1=server.createobject("adodb.recordset")
rs1.open ("select * from mb where mbid="&mrmbid&""),conn,1,1
Gycode1=rs1("haed")
Gycode2=rs1("copy")
rs1.close
wybt=wybt& ""&website&" ->发表您的评论"
hot=hot&""
Gycode1=replace(Gycode1,"$ADHOT",hot)
Gycode1=replace(Gycode1,"$WYBT",wybt)
response.write Gycode1%>
|
|
<%if not isempty(request("page")) then
CurrentPage=cint(request("page"))
else
CurrentPage=1
end if
MaxPerPage=5 '###每页显示数
if not isnumeric(request("page")) and request("page")<>"" then
response.write"错误的系统参数!请输入整数"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from zt order by ztid desc"
rs.open sql,conn,1,1
strskoftcount=rs("ztcount")
if rs.eof and rs.bof then
response.write "
还没有人评论,您想评论吗?!"
else
totalPut=rs.recordcount
totalnumber=rs.recordcount
if (totalPut mod MaxPerPage)=0 then
tempPcount= totalPut \ MaxPerPage
else
tempPcount= totalPut \ MaxPerPage + 1
end if
if (totalPut mod MaxPerPage)=0 then
Pcount= totalPut \ MaxPerPage
else
Pcount= totalPut \ MaxPerPage + 1
end if
rs.MoveFirst
if currentpage > Pcount then currentpage = Pcount
if currentpage<1 then currentpage=1
'if currentpage=empty then currentpage=1
rs.move (currentPage-1)*MaxPerPage
bookmark=rs.bookmark
i=0
do while not rs.eof and i < Clng(MaxPerPage)
if Not Response.IsClientConnected then responseend%>
|
|
<%
rs.movenext
i=i+1
if i>=MaxPerPage then exit do
loop
end if
rs.close
set rs=nothing
%>
<%
dim filename,ii,n
filename="ztlb.asp"
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write ""& vbCrLf%>
|
<%response.write Gycode2%>