<%= html(start_descrip) %>
%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Option Explicit %> <% '----------------------------------------------------------------------------------------------- 'VARIABLES '----------------------------------------------------------------------------------------------- dim THUMBNAILS_PER_PAGE, SLIDESHOW_DELAY THUMBNAILS_PER_PAGE = 4 ' Maximum 16, minumum 4 SLIDESHOW_DELAY = 5 ' Seconds per slide; MUST BE A NUMBER dim page_num, page ' Set up page nav page_num = rq("pn") if page_num = "" then page_num = 1 elseif not isnumeric(page_num) then page_num = 1 elseif page_num < 1 then page_num = 1 end if ' Make sure values are okay if not isnumeric(THUMBNAILS_PER_PAGE) then THUMBNAILS_PER_PAGE = 16 end if if not isnumeric(SLIDESHOW_DELAY) then SLIDESHOW_DELAY = 5 end if ' Determine current section dim section section = rq("sec") dim rs set rs = getRecordSet(section) ' If invalid section then back to beginning if rs.eof then if page_num > 1 then response.redirect(request.ServerVariables("SCRIPT_NAME") & "?sec=" & section) else response.Redirect("index.asp") end if end if dim start_image, start_descrip, start_photographer, images, thumbs, num_images, photographers '----------------------------------------------------------------------------------------------- 'BEGIN ASP '----------------------------------------------------------------------------------------------- set page = new wrapper page.title = "Photos: " & getSectionTitle(section) & " | " & page.title page.lefttext = "Interiors" page.pageid = "" page.executePrintExtraHead = true page.printHeader() start_image = rs("image") start_descrip = rs("descrip") start_photographer = rs("photographer") if start_photographer <> "" then start_photographer = "Photography by " & start_photographer end if images = """gallery/images/" & start_image & ".jpg""" photographers = start_photographer thumbs = images 'So we can always add ", newthumb.jpg" num_images = 0 %>
<%= html(start_descrip) %>