<%
Set filelist = f.Files
If Nailer Then
For Each fn in filelist
emptyDir = FALSE
DisplayGallery "DISPLAYIMAGES",fn
Next
Else
For Each fn in filelist
emptyDir = FALSE
If NOT InStr(LCase(fn.Name), "tn-") > 0 Then
DisplayGallery "DISPLAYIMAGES",fn
End If
Next
End If
%>
<%
If Request("Page") = "" Then
CurrentPage = 0
Else
CurrentPage = CInt(Request("Page"))
End If
PageCount = Round((RecordsCount/RecordsPerPage),1)
'If (PageCount > 1) Then PageCount = int(PageCount) + 1
If InStrRev(PageCount, ".") > 0 Then
DotPosition = InStrRev(PageCount, ".")
Decimal = Mid(PageCount,DotPosition + 1)
If Decimal <= 5 Then
PageCount = Round(PageCount+.5,0)
Else
PageCount = Round(PageCount,0)
End If
Else
PageCount = Round(PageCount,0)
End If
%>
<%
lastrowtotal = rowcount-1
blankspaces = RecordsPerRow - lastrowtotal
If NOT CurrentPage+1 < PageCount AND NOT TopLevel AND NOT blankspaces = RecordsPerRow Then
Select Case blankspaces
Case 1
%>
| width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
<%
Case 2
%>
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
<%
Case 3
%>
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
<%
Case 4
%>
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
<%
Case 5
%>
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
width="245"<% Else %>width="155"<% End If %> bgcolor="#000000" onMouseOver="this.bgColor='#000000'" onMouseOut="this.bgColor='#000000'" valign="top" nowrap> |
<%
End Select
End If
%>