General, Advanced Laparoscopic and
Bariatric Surgery
800 Howe Ave., Suite 300
Sacramento, CA 95825
office: (916) 568-5564
fax: (916) 568-5575
<% end sub
sub DrawHeaderOld(byVal strTitle, strPageType)
if not strTitle = "" then
g_strTitle = strTitle & " at " & STR_MERCHANT_NAME
else
g_strTitle = strTitle & " at " & STR_MERCHANT_NAME
end if
%>
<%= g_strTitle %>
<% select case strPageType
case "store", "cart", "custserv"
%>
<% end select
%>
<% DrawSubMenu strPageType
select case strPageType
case "default"
case "store"
DrawCrumbs strPageType
case "custserv"
%>
Customer Service
<% case "cart"
%>
Shopping Cart
<% case "contact"
%>
Contact <%= STR_MERCHANT_NAME %>
<% case else
end select
end sub
'---------------------------------------------
' DrawSubmenu
' Desc: Structure teh left-hand menu
' Inputs: strPageType - Page Display Type
'---------------------------------------------
sub DrawSubmenu(strPageType)
dim strSQL, rsTemp
'RecordSet 1- Top 6 categories
strSQL = "SELECT vchItemName, intID "
strSQL = strSQL & "FROM " & STR_TABLE_INVENTORY & " "
strSQL = strSQL & "WHERE chrType = 'B' "
strSQL = strSQL & "AND chrStatus = 'A' "
strSQL = strSQL & "AND chrSpecial = 'Y' "
strSQL = strSQL & "ORDER BY vchItemName;"
'RecordSet 2- Top 7 categories
strSQL = strSQL & "SELECT vchItemName, intID "
strSQL = strSQL & "FROM " & STR_TABLE_INVENTORY & " "
strSQL = strSQL & "WHERE chrType = 'A' "
strSQL = strSQL & "AND chrStatus = 'A' "
strSQL = strSQL & "AND chrSpecial = 'Y' "
strSQL = strSQL & "ORDER BY vchItemName;"
' response.write strSQL
strSQL = strSQL & "SELECT TOP 7 vchItemName, intID "
strSQL = strSQL & "FROM " & STR_TABLE_INVENTORY & " "
strSQL = strSQL & "WHERE chrType = 'I' "
strSQL = strSQL & "AND chrStatus = 'A' "
strSQL = strSQL & "AND mnyWholesale IS NOT NULL "
strSQL = strSQL & "ORDER BY vchItemName;"
set rsTemp = ConnOpenRS(strSQL)
if rsTemp.eof then
' response.write "Error:There are currently no active Folders in the repository
"
' response.end
end if
if (gintOrderID > 0) or (gintUserID > 0) then
DrawCartMenu
end if
if not rsTemp.eof then
DrawSpecials rsTemp, "Gallery Collections", "viewall=galleries"
end if
set rsTemp = rsTemp.NextRecordSet()
if not rsTemp.eof then
DrawSpecials rsTemp, "Categories", "viewall=categories"
end if
set rsTemp = rsTemp.NextRecordSet()
if not rsTemp.eof then
DrawSpecials rsTemp, "Sales & Clearance", "viewall=clearance"
end if
DrawBannerAds strPageType
%>
<% rsTemp.close
set rsTemp = nothing
end sub
'---------------------------------------------
' DrawCartMenu
' Desc: Draw E-Commerce links in
format
'---------------------------------------------
sub DrawCartMenu
%>
<%
end sub
'---------------------------------------------
' DrawBannerAds
' Desc: Draw Banners
' Input: strPageType - Page Display Type
'---------------------------------------------
sub DrawBannerAds(strPageType)
select case strPageType
case "default"
%>
<% end select
end sub
'---------------------------------------------
' DrawCrumbs
' Desc: Draw Inventory Tree (Bread Crumbs)
' Input: strPageType - Page Display Type
'---------------------------------------------
sub DrawCrumbs(strPageType)
dim intRequestID, rsTemp, strSQL, strOutput
if Request("id").Count <> 0 then
intRequestID = Request("id")
if IsNumeric(intRequestID) then
intRequestID = CLng(intRequestID)
else
intRequestID = 0
end if
else
intRequestID = 0
end if
strOutput = ""
if intRequestID > 0 then
strSQL = "SELECT intID, intParentID, vchItemName, chrType FROM " & STR_TABLE_INVENTORY & " WHERE (intID = " & intRequestID & ")"
set rsTemp = ConnOpenRS(strSQL)
if not rsTemp.eof then
select case rsTemp("chrType")
case "B"
strOutput = "Galleries "
case "A"
strOutput = "Categories "
case "I"
strOutput = "Categories "
end select
end if
dim strCrumbs
strCrumbs = ""
while not rsTemp.eof
if rsTemp("chrType") = "I" then
strCrumbs = rsTemp("vchItemName") & " " & strCrumbs
else
strCrumbs = "" & rsTemp("vchItemName") & " " & strCrumbs
end if
strSQL = "SELECT intID, intParentID, vchItemName, chrType FROM " & STR_TABLE_INVENTORY & " WHERE (intID = " & rsTemp("intParentID") & ")"
rsTemp.close
set rsTemp = ConnOpenRS(strSQL)
wend
rsTemp.close
set rsTemp = nothing
end if
strOutput = strOutput & strCrumbs
if strOutput <> "" then
strOutput = left(strOutput, len(strOutput)-7)
strOutput = "
" & strOutput & "
"
response.write strOutput
end if
end sub
'---------------------------------------------
'DrawFooter
' Desc: Draws Global Footer
' Input: strPageType - Page Display Type
'---------------------------------------------
sub DrawFooter(strPageType)
%>
<%
end sub
'---------------------------------------------
'DrawFooter
' Desc: Draws Global Footer
' Input: strPageType - Page Display Type
'---------------------------------------------
sub DrawFooterOld(strPageType)
select case strPageType
case "default"
case "store"
case else
end select
%>