<% Response.Buffer=true %> <% createPageObject() writeHTMLTop() response.write("
" & VbCrLf) writeActiveBreadcrumb() writeLeftCol() response.write("
" & VbCrLf) response.write("" & VbCrLf) response.write("
" & VbCrLf) response.write("

" & pageObj.p_title & "

" & VbCrLf) call pageObj.getPageContent() call pageObj.writePageContent("") dim imagesPerPage imagesPerPage = 10 strSQL = "SELECT * from images where ia_parentid = " & imageBankParentID &_ " ORDER BY image_title" paginationURL = request.servervariables("URL") & "?page_id=" & this_page_id if len(strSQL) then Set rs = LoadRSFromDB(strSQL) rs.PageSize = imagesPerPage rs.CacheSize = rs.PageSize intPageCount = rs.PageCount intRecordCount = rs.RecordCount if cint(intPage) > cint(intPageCount) then intPage = intPageCount if cint(intPage) <= 0 then intPage = 1 if intRecordCount > 0 Then rs.AbsolutePage = intPage intStart = rs.AbsolutePosition if cint(intPage) = cint(intPageCount) then intFinish = intRecordCount else intFinish = intStart + (rs.PageSize - 1) end if end if '-- Concatenate the pagination string dim paginationString if cint(intPage) > 1 then paginationString = "Previous" else paginationString = "Previous" end if paginationString = paginationString & " | " if cint(intPage) < cint(intPageCount) then paginationString = paginationString & "Next" else paginationString = paginationString & "Next" end if if not rs.EOF then for intRecord = 1 to rs.PageSize dim imageTitle dim imageSrc dim imageAlt dim imageCaption dim imageDesc imageTitle = rs("image_title") imageSrc = rs("image_src") imageAlt = rs("image_alt") imageCaption = rs("image_caption") imageDesc = rs("image_longdesc") if instr(lcase(imageSrc),"thumb") then response.write("
") smallFileNameParts = split(imageSrc,"_") largeFileName = smallFileNameParts(0) & "_large.jpg" response.write("
" & VbCrLf) response.write("" & VbCrLf) response.write("

" & imageTitle & "

" & VbCrLf) response.write("

" & imageDesc & "

" & VbCrLf) response.write("

" & imageCaption & "

" & VbCrLf) response.write("

Down load high resolution version of " & imageTitle & returnImageSize(largeFileName) & "

" & VbCrLf) response.write("
" & VbCrLf) end if rs.movenext if rs.EOF then exit for next end if end if response.write("
" & VbCrLf) response.write("
" & VbCrLf) response.write("

Print this page | Back to top

" & VbCrLf) response.write("

" & paginationString & "

" & VbCrLf) response.write("
" & VbCrLf) response.write("
" & VbCrLf) response.write("
" & VbCrLf) writeHTMLBottom() function returnImageSize(fileName) dim objFSO dim objFile dim strPhysicalPath dim iFileSize Set objFSO = Server.CreateObject("Scripting.FileSystemObject") strPhysicalPath = server.mappath(fileUploadDestination) & "\content_files\images\" & fileName if objFSO.FileExists(strPhysicalPath) then Set objFile = objFSO.GetFile(strPhysicalPath) iFileSize = "
(" & int(objFile.Size/1024 + 0.5) & " kb)" end if returnImageSize = iFileSize end function %>