%@ Language=VBScript %>
<%
response.buffer=true
Response.Expires=0
Set rs9 = Server.CreateObject("ADODB.Recordset")
sql9 ="SELECT * From about Order By id DESC"
RS9.open sql9,Conn,3,3
%>
<%
dim rs
dim sql
dim page
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "Select * FROM enet Order By dateandtime Desc"
rs.open sql,conn,1,1
IF not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Then
page=1
Else
Page=Int(Abs(Request("page")))
End if
rs.pagesize = 8'
total = rs.RecordCount
mypagesize = rs.pagesize
rs.absolutepage = page
%>
<%
dim i
i=1
do while not rs.eof and mypagesize>0
id=rs("gbookid")
name=rs("name")
email=rs("email")
homepage=rs("homepage")
oicq=rs("oicq")
head=rs("head")
content=rs("content")
content=Autolink(content)
dateandtime=rs("dateandtime")
reply=rs("reply")
sex=rs("sex")
%>
共 <%=rs.pagecount%> 頁當前第 <%=page%> 頁 留言分頁:
<%
if page>1 then%>
上一頁
<%
end if
%>
<%
if rs.pagecount <= 10 then
for j=1 to rs.pagecount
response.write "["&j&"]"
next
else
for j=1 to 10
response.write "["&j&"] "
next
response.write "[>>]"
end if
%>
<%
if page下一頁
<%
end if
%>
留言總數(shù):<%=total%>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>