|
|
|
|
<%
SQL_N = "select * from news order by cdate DESC"
set rs_n=GetRSbySQL(SQL_N)
const pagesize = 10
if not isnull(rs) then
count = rs_n.recordcount
else
count = 0
end if
if count > 0 then
page = request("p") ' page number
if page = "" then
page = 1
else
page = cint(page)
end if
rs_n.pagesize = pagesize
if page > rs_n.pagecount then
page = page -1
end if
rs_n.absolutepage = page
pagecount = rs_n.pagecount
end if
rs_n.pagesize = pagesize
while not rs_n.eof
if not rs_n.eof then
%>
|
|
|
|
<%
end if
rs_n.movenext
wend
%>
<% if page > 1 then %>
|
<% end if %>
[
<% for i =1 to pagecount %>
<%if i = page then %>
<%=i%> /
<%else%>
<%=i%> /
<% end if %>
<% next %>
]
|
<% if page < pagecount then %>
|
<% end if %>
|
|
|
¡@
|
|
|
|