%
Option Explicit
%>
<%
Dim PortfolioTypeID
PortfolioTypeID = 1
Dim PageNumber
PageNumber = Trim(Left(Request.QueryString, 10))
If Len(PageNumber) = 0 or Not(IsNumeric(PageNumber)) then
PageNumber = 1
else
PageNumber = CInt(PageNumber)
end if
Dim DetailCopy
Dim Grid
Dim MaxPage
Dim MinPage
Dim Back1
Dim Forward1
Dim ThisPage
Dim TopicHeaderText
Dim HeaderText
ThisPage = Request.ServerVariables("PATH_INFO")
Function CreateDynamicContent
Dim SQL
Dim PreviousColumn
PreviousColumn = "-1"
SQL = CreateDynamicPageSQL
'Response.Write(SQL & "
")
RS.Open SQL, connOnline, 3, 3
PreviousColumn = 1
Grid = "
To " & ElementType & " Portfolio " & PrevPageNumber & "
" end if if PageNumber >= MaxPage then Forward1 = "" else Dim NextPageNumber NextPageNumber = PageNumber + 1 Forward1 = "To " & ElementType & " Portfolio " & NextPageNumber & "
" end if end Function function CreateDynamicPageSQL CreateDynamicPageSQL = "SELECT PortfolioItem.PortfolioItemID, PortfolioItem.ThumbnailImage, PortfolioItem.TWidth, PortfolioItem.THeight, PortfolioItem.Label, PortfolioItem.Col, PortfolioType.HeaderText, PortfolioType.TopicHeaderText, PortfolioType.Directory, PortfolioType.ShowTitlesInList, PortfolioType.PortfolioLabel, PortfolioType.PortfolioType " & _ "FROM PortfolioType INNER JOIN PortfolioItem ON PortfolioType.PortfolioTypeID = PortfolioItem.PortfolioTypeID " & _ "WHERE PortfolioItem.PortfolioTypeID=" & PortfolioTypeID & " AND PortfolioItem.Page=" & PageNumber & " " & _ "ORDER BY PortfolioItem.Col, PortfolioItem.Posi" end function function CreateMinMaxPageSQL CreateMinMaxPageSQL = "SELECT Max(PortfolioItem.Page) AS MaxPage, Min(PortfolioItem.Page) AS MinPage " & _ "FROM PortfolioItem " & _ "WHERE PortfolioItem.PortfolioTypeID=" & PortfolioTypeID end function CreateDynamicContent %>![]() |
|||||||||
![]() |
|||||||||
![]() |
![]() |
![]() |
|||||||
<%=HeaderText%><%=TopicHeaderText%> |
![]() |
![]() |
|||||||
|
|
|||||||||
services | articles | case studies | portfolio | about us | links newsletter | marketing tools | spam test | in the news | home Copyright 2003
.
Send snail mail to:Capstone Communications Group or call 905-472-2330 between 9 am to 5 pm Eastern Time. |
|||||||||