<% Set conn = Server.CreateObject("ADODB.Connection") set rs = Server.CreateObject("ADODB.recordset") conn.open dsn sqlm = "select * from AF_Banners where BannerType=1 and Visible=1 order by BannerID desc" rs.open sqlm, conn if not rs.eof then%>
<%n=0 rs.movefirst while not rs.eof if rs("Landing")<>"" then Landing=rs("Landing") else Landing=siteHomepage end if n=n+1%> <%rs.movenext wend%>
Flash Banners
" HEIGHT="<%=rs("Iheight")%>" id="FlashBanner<%=rs("BannerID")%>" ALIGN="">?urlAD=<%=Landing%>&af=<%=session("AfUsername")%>&bn=<%=rs("BannerID")%>">?urlAD=<%=Landing%>&af=<%=session("AfUsername")%>&bn=<%=rs("BannerID")%>" quality=high bgcolor=#ffffff WIDTH="<%=rs("Iwidth")%>" HEIGHT="<%=rs("Iheight")%>" NAME="FlashBanner<%=rs("BannerID")%>" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
<%end if rs.close%> <% sqlm = "select * from AF_Banners where BannerType=2 and Visible=1 order by Iwidth desc" rs.open sqlm, conn if not rs.eof then%>
<%n=0 rs.movefirst while not rs.eof if rs("Landing")<>"" then Landing=rs("Landing") else Landing=siteHomepage end if if rs("Iwidth")>500 then imgwidth=500 else imgwidth=rs("Iwidth") end if n=n+1%> <%rs.movenext wend%>
Image Banners
Banner Size: <%=rs("Iwidth") & " X " & rs("Iheight")%>
" width="<%=imgwidth%>">

HTML Code:
<%end if rs.close sqlm = "select * from AF_Banners where BannerType=3 and Visible=1 order by BannerID desc" rs.open sqlm, conn if not rs.eof then%>
<%n=0 rs.movefirst while not rs.eof if rs("Landing")<>"" then Landing=rs("Landing") else Landing=siteHomepage end if n=n+1%> <%rs.movenext wend%>
Text Links
<%=rs("BannerName")%><% if rs("linkDescription")<>"" then %> - <%=rs("linkDescription")%><% end if%>
<%end if rs.close sqlm = "select * from AF_Banners where BannerType=4 and Visible=1 order by BannerID desc" rs.open sqlm, conn if not rs.eof then%>
<%n=0 rs.movefirst while not rs.eof if rs("Landing")<>"" then Landing=rs("Landing") else Landing=siteHomepage end if n=n+1%> <%rs.movenext wend%>
Popups
Popup Size: <%=rs("Iwidth") & " X " & rs("Iheight")%>
?lp=<%=Landing%>&bn=<%=rs("BannerID")%>','<%=rs("Iwidth")%>','<%=rs("Iheight")%>')"><%=rs("BannerName")%>

HTML Code (HEAD Area):
<%end if rs.close sqlm = "select * from AF_Banners where BannerType=6 and Visible=1 order by BannerID desc" rs.open sqlm, conn if not rs.eof then%>
<%n=0 rs.movefirst while not rs.eof if rs("Landing")<>"" then Landing=rs("Landing") else Landing=siteHomepage end if n=n+1%> <%rs.movenext wend%>
Search Boxes
<%linkDescription=rs("linkDescription")%> <%=linkDescription%>

HTML Code:
<%end if rs.close set rs = nothing conn.close set conn = nothing %>