<% sql ="select * from tongzhi Order By 日期 DESC"
openrs rs,sql,1,2
tt=0
if tztop=1 then
currentnum=rs("tzid")
end if
'rs.PageSize=MaxPerPage
'totalpage=rs.pagecount
rs.move (CurrentPage-1)*MaxPerPage
do while not rs.eof and tt
<% rs.movenext
tt=tt+1
loop
totalput=rs.recordcount
rs.close
if (totalput mod maxperpage)=0 then
totalpage=int(totalput/maxperpage)
else
totalpage=int(totalput/maxperpage)+1
end if
%>
第<%response.write currentpage%>/<%response.write totalpage%>页
<%if currentpage>1 then%>首页上一页
<%end if
if currentpage下一页尾页<%end if%>