%@ LANGUAGE="VBSCRIPT" %> <% '*********************************************************************** ' System : ASPBanner Unlimited ' Author : Christopher Williams of CJWSoft www.CJWSoft.com ' ' COPYRIGHT NOTICE ' ' See attached Software License Agreement ' ' (c) Copyright 2000 - 2003 by CJWSoft. All rights reserved '*********************************************************************** %> <% CHECKFOR = "Admin" %> <% PostPage = "zone_overview.asp" Show_Banners = Request("Show_Banners") WhichPage = Request("WhichPage") If WhichPage = "" then WhichPage = 1 end if MyPageSize = Request("MyPageSize") If MyPageSize = "" Then MyPageSize = 50 End If %>
Zones are
the locations on your site where your banners are displayed.
This date search only effects the
date range of banner statistics shown in each zone.
This allows you to get a overall idea of how well all the banners are doing.
It does not do anything other than that. All zones and banners will be always be shown.
<%
Set ConnClassified = Server.CreateObject("ADODB.Connection")
ConnClassified.Open BannerConnectionString
Set CmdBannerTemp = Server.CreateObject("ADODB.Command")
Set CmdListBanners = Server.CreateObject("ADODB.Recordset")
CmdBannerTemp.CommandText = "SELECT Banners.* FROM Banners WHERE (Zone_ID = " & CmdGetZones("Zone_ID") & ")"
'Response.Write CmdBannerTemp.CommandText
'Response.End
CmdBannerTemp.CommandType = 1
Set CmdBannerTemp.ActiveConnection = ConnClassified
CmdListBanners.Open CmdBannerTemp, , 1, 1
ShowTableEnd = False
If Not CmdListBanners.EOF Then
CmdListBanners.movefirst
CmdListBanners.pagesize = MyPageSize
MaxPages = CInt(CmdListBanners.pagecount)
MaxRecords = CInt(CmdListBanners.pagesize)
CmdListBanners.absolutepage = WhichPage
HowManyRecords = 0
HowManyFields = CmdListBanners.fields.count -1
TotalRecords = CmdListBanners.recordcount
Span = (MyPageSize * WhichPage)
ShowTableEnd = True
%>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<%
For MyCounter = 1 to MaxPages
TempSpan = (MyPageSize * MyCounter)
%>
&Banner_ID=<% =Banner_ID %>&WhichPage=<% = MyCounter %>&MyPageSize=<% =MyPageSize%>&Show_Banners=<% =Show_Banners %>">(<% = ((TempSpan - MyPageSize) + 1) %> - <% If CInt(MaxPages) = CInt(MyCounter) Then %><% =TotalRecords %><% Else %><% =TempSpan %><% End If %>)
<% If MyCounter Mod 10 = 0 then %>
<% End If %>
<% Next %>
| Imp | Clicks | ClickThru |
| <%= TotalImpressions %> | <%= TotalClicks %> | <% If TotalImpressions > 0 AND TotalClicks > 0 then Response.Write(FormatPercent((TotalClicks/TotalImpressions),1)) %> |