<% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="" MM_authFailedURL="default.asp" MM_grantAccess=false If Session("MM_Username") <> "" Then If (true Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %> <% Dim rsListing Dim rsListing_numRows Set rsListing = Server.CreateObject("ADODB.Recordset") rsListing.ActiveConnection = MM_connDUbanner_STRING rsListing.Source = "SELECT * FROM BANNERS ORDER BY BAN_DATED DESC" rsListing.CursorType = 0 rsListing.CursorLocation = 2 rsListing.LockType = 1 rsListing.Open() rsListing_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 rsListing_numRows = rsListing_numRows + Repeat1__numRows %>
<% While ((Repeat1__numRows <> 0) AND (NOT rsListing.EOF)) %> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rsListing.MoveNext() Wend %>
IMAGE NAME DATED SIZE CLICKS EDIT
" target="_blank">" border="0" alt="<%=(rsListing.Fields.Item("BAN_ALT").Value)%>" > <%=(rsListing.Fields.Item("BAN_NAME").Value)%>
" target="_blank"><%=(rsListing.Fields.Item("BAN_URL").Value)%>
<%=(rsListing.Fields.Item("BAN_ALT").Value)%>
<%=(rsListing.Fields.Item("BAN_DATED").Value)%> <%=(rsListing.Fields.Item("BAN_SIZE").Value)%> <%=(rsListing.Fields.Item("BAN_CLICK").Value)%> ">EDIT
<% rsListing.Close() Set rsListing = Nothing %>