<%=WebContent()%>
<%=CopyRight%>
<%=IcpNumber%>
<%=IcpNumber%>
% Call SiteInfo %>
"&vbCrLf
Response.Write "共"&idcount&"條記錄 頁次:"&page&"/"&pagec&" 每頁:"&pages&"條記錄" & vbCrLf
pagenmin = page - pagenc
pagenmax = page+pagenc
If(pagenmin<1) Then pagenmin = 1
If(page>1) Then response.Write ("9 ")
If page - (pagenc * 2 + 1)<= 0 Then
pageprevious = 1
Else
pageprevious = page - (pagenc * 2 + 1)
End If
If(pagenmin>1) Then response.Write ("3 ")
If(pagenmax>pagec) Then pagenmax = pagec
For i = pagenmin To pagenmax
If(i = page) Then
response.Write (" "& i &" ")
Else
response.Write ("["& i &"]")
End If
Next
If page+(pagenc * 2 + 1)>= pagec Then
pagenext = pagec
Else
pagenext = page+(pagenc * 2 + 1)
End If
If(pagenmax | "&vbCrLf
Response.Write "