%@LANGUAGE="VBSCRIPT"%> <% show = true %> <% if request("galleryName")<>"" then Session("gallerySelected")=request("galleryName") else gallerySelected=Session("gallerySelected") end if %> <% Dim rsPopycGalleries Dim rsPopycGalleries_numRows Set rsPopycGalleries = Server.CreateObject("ADODB.Recordset") rsPopycGalleries.ActiveConnection = MM_popycDBConn_STRING rsPopycGalleries.Source = "SELECT * FROM tblGalleries ORDER BY galleryYear DESC" rsPopycGalleries.CursorType = 0 rsPopycGalleries.CursorLocation = 2 rsPopycGalleries.LockType = 1 rsPopycGalleries.Open() rsPopycGalleries_numRows = 0 %> <% Dim rsPopycImages__MMColParam rsPopycImages__MMColParam = "1" If (Session("gallerySelected") <> "") Then rsPopycImages__MMColParam = Session("gallerySelected") End If %> <% Dim rsPopycImages__MMColParam2 rsPopycImages__MMColParam2 = "Y" If (Request("MM_EmptyValue") <> "") Then rsPopycImages__MMColParam2 = Request("MM_EmptyValue") End If %> <% Dim rsPopycImages Dim rsPopycImages_numRows Set rsPopycImages = Server.CreateObject("ADODB.Recordset") rsPopycImages.ActiveConnection = MM_popycDBConn_STRING rsPopycImages.Source = "SELECT * FROM tblImages WHERE galleryID = " + Replace(rsPopycImages__MMColParam, "'", "''") + " and imageActive = '" + Replace(rsPopycImages__MMColParam2, "'", "''") + "'" rsPopycImages.CursorType = 0 rsPopycImages.CursorLocation = 2 rsPopycImages.LockType = 1 rsPopycImages.Open() rsPopycImages_numRows = 0 %> <% Dim HLooper1__numRows HLooper1__numRows = -3 Dim HLooper1__index HLooper1__index = 0 rsPopycGalleries_numRows = rsPopycGalleries_numRows + HLooper1__numRows %>
|
There are no images in this gallery. <% end if %> <% if Session("gallerySelected")<>"" then %>
|