% @ Language=VBScript %>
<% Option Explicit %>
<%
'If the user is admin forward to setup
If intGroupID <> 1 Then
Response.Redirect("../default.asp")
End If
%>
Visitor Counter Admin
Visitor Counter Admin Page
<%
'Display an HTML table with links to the other entries in the database
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
'If there are more pages to display then add a title to the other pages
If intRecordPositionPageNum > 1 or NOT adoRec.EOF Then
Response.Write vbCrLf & " Page: "
End If
'If the datbase page number is higher than page 1 then display a back link
If intRecordPositionPageNum > 1 Then
Response.Write vbCrLf & " << Prev "
End If
'If there are more pages to display then display links to all the pages
If intRecordPositionPageNum > 1 or NOT adoRec.EOF Then
'Display a link for each page in the guestbook
For intLinkPageNum = 1 to intTotalNumDBPages
'If the page to be linked to is the page displayed then don't make it a hyper-link
If intLinkPageNum = intRecordPositionPageNum Then
Response.Write vbCrLf & " " & intLinkPageNum
Else
Response.Write vbCrLf & " " & intLinkPageNum & " "
End If
Next
End If
'If it is Not the End of the database entries then display a next link for the next database page
If NOT adoRec.EOF then
Response.Write vbCrLf & " Next >>"
End If
'Finish HTML the table
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
Response.Write vbCrLf & "
"
'Reset Sever Objects
Set adoCon = Nothing
Set adoRec = Nothing
%>