|
<%
sqlCat = "SELECT * FROM PRODUCTS_CATEGORIES ORDER BY PRODUCT_CATEGORY;"
objCat.Open sqlCat, ObjConn
if NOT objCat.EOF then
While NOT objCat.EOF
thisCatID = objCat("PRODUCT_CAT_ID")
thisCat = objCat("PRODUCT_CATEGORY")
thisShowType = objCat("SHOW_TYPE")
thisCat = FixItFromDB(thisCat, False)
response.write ""
response.write "| | "
response.write " | "
response.write "" & thisCat & " | "
response.write " "
objCat.MoveNext
Wend
end if 'if NOT objCat.EOF
objCat.Close
%>
|
<%
servPage = request.ServerVariables("URL")
slashPos = instrRev(servPage, "/", -1, 1)
servPage = Right(servPage, Len(servPage) - slashPos)
if servPage = "catalog.asp" and showType = "" and showBackground <> "" then
response.write " "
else
response.write " | "
end if
%>
<% if showType <> "" then %>
| Online Catalog - <% =showCategory %> |
<% else %>
Online Catalog |
<% end if %>
|
| |
<%
if showType <> "" then
sqlProduct = "SELECT * FROM MASTER_PRODUCTS_QUERY WHERE SHOW_TYPE = '" & showType & "' ORDER BY PRODUCT;"
objProduct.Open sqlProduct, ObjConn
if NOT objProduct.EOF then
i = 1
currentLink = ""
While NOT objProduct.EOF
thisProduct = objProduct("PRODUCT")
thisPhoto = objProduct("PHOTO")
thisThumb = objProduct("THUMBNAIL")
thisDetails = objProduct("DETAILS")
thisProduct = FixItFromDB(thisProduct, False)
thisDetails = FixItFromDB(thisDetails, False)
response.write ""
if thisThumb <> "" then
response.write " | "
else
response.write " | "
end if
response.write "" & thisProduct & " " & thisDetails & " | " & thisDetails & ""
'response.write ""
response.write " "
'if i mod 5 = 0 then
response.write "| back to top | "
'end if
response.write " | "
'i = i + 1
objProduct.MoveNext
Wend
else
response.write ""
response.write "| Sorry, there are no Products right now. | "
response.write " "
end if 'if NOT objProduct.EOF
objProduct.Close
else
response.write ""
response.write "| Click on your area of interest from the menu on the left to view a sampling of our handcrafted products. Should you desire a product category not shown here, please contact us. Our expert Sales Associates have designed a wide variety of products for applications as diverse as fireplace screens and bed headboards. | "
response.write " "
end if 'if showType <> ""
%>
|
|