-
<%
flag="尚未处理"
set rs2=server.createobject("adodb.recordset")
if request("cid")<>"" then
sql="select * from info where cid ="&request("cid")&" order by id desc"
else
sql="select * from info where cid in(SELECT id from Class where cid=173) order by id desc"
end if
rs2.open sql,conn,1,1
dim PerPage
PerPage=5
'假如没有数据时
If rs2.eof and rs2.bof then
response.write "
- nothing
<% Response.write "All-" Response.write "" & "" & Cstr(rs2.RecordCount) & "" & " " Response.write "THE" & "" & Cstr(CurrentPage) & "" & "/" & Cstr(rs2.pagecount) & " " If currentpage > 1 Then response.write "First " Response.write "go_up " Else Response.write "go_up " End if If currentpage < rs2.PageCount Then Response.write "Next " Response.write "Last " Else Response.write "" Response.write "Last " End if %>
<% End sub rs2.close %>