%@ LANGUAGE="VBSCRIPT" %> <% PageStrings = "18, 55, 57, 107, 108, 149, 150, 151, 152, 153, 154, 158, 160, 161, 265, 266, 648, 870, 871" %> <% recorprod = request.querystring("recorprod") SearchedID = request.querystring("PT_ID") prodtype = Request.Querystring("prodtype") recor = request.querystring("recor") PassedKeywords = sqlsafe(request.querystring("keywords")) PT_MasterCategory = sqlsafe(request.querystring("PT_MasterCategory")) SearchFor = sqlsafe(request.querystring("SearchFor")) keywords = sqlsafe(request.querystring("keywords")) PageHistory = sqlsafe(request.querystring("ph")) If recorprod="" then recorprod=1 If prodtype="" then prodtype=1 If recor="" then recor=1 If SearchedID="" then SearchedID=1 If Not IsNumeric(recorprod) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(prodtype) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(recor) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(SearchedID) and SearchedID<>"all" then response.redirect("../ecommerce/error_occ.asp") If PT_MasterCategory<>"y" then If DBType = "mysql" Then theQuery = "SELECT PT_Name, PT_ShortenedFormat, PT_Desc, PT_MotherProdType FROM tbl_Products INNER JOIN tbl_ProductProdTypeLink ON tbl_Products.P_ID = tbl_ProductProdTypeLink.PPT_ProductID INNER JOIN tbl_Prodtype ON tbl_ProductProdTypeLink.PPT_ProdTypeID = tbl_Prodtype.PT_ID WHERE PT_Live='y' AND P_Live='y' AND PT_ID=" & prodtype Else theQuery = "SELECT PT_Name, PT_ShortenedFormat, PT_Desc, PT_MotherProdType FROM (tbl_Products INNER JOIN tbl_ProductProdTypeLink ON tbl_Products.P_ID = tbl_ProductProdTypeLink.PPT_ProductID) INNER JOIN tbl_Prodtype ON tbl_ProductProdTypeLink.PPT_ProdTypeID = tbl_Prodtype.PT_ID WHERE PT_Live='y' AND P_Live='y' AND PT_ID=" & prodtype End If Else theQuery = "SELECT PT_Name, PT_ShortenedFormat, PT_Desc, PT_MotherProdType FROM tbl_Prodtype WHERE PT_Live='y' AND PT_ID=" & prodtype End if Call ExecuteSQL(theQuery,cursortype,rs_main) IntNumRecs = rs_main.RecordCount If IntNumRecs>0 then PT_Name = rs_main("PT_Name") PT_ShortenedFormat = rs_main("PT_ShortenedFormat") PT_Desc = rs_main("PT_Desc") PT_MotherProdType = rs_main("PT_MotherProdType") End if rs_main.close numProdsPerPage = Application(HASHKEYNUMBERXYZ & "prodtypepagesize") If PT_ShortenedFormat="y" then numShortenValueCols = Application(HASHKEYNUMBERXYZ & "showshortenedformatcols") numProdsPerPage = numShortenValueCols * Application(HASHKEYNUMBERXYZ & "showshortenedformatrows") else numShortenValueCols=0 End if if numShortenValueCols>0 then extendedcatpage="n" else extendedcatpage="y" end if Call ReadFromTemplate(templatelocation,aryPageTemplate,strBasketHTML,strCategoryListHTML) response.write(aryPageTemplate(0)) If IntNumRecs=0 then %>
| <% WriteString("ContentText_SectionUnavailable")%> |
|
<%
If PageHistory = "cat" then
LocationBar = LocationBar & "" & GetString("ContentText_Categories") & " > "
elseif PageHistory = "search" then
LocationBar = LocationBar & "" & GetString("ContentText_Search") & " > "
LocationBar = LocationBar & "" & GetString("ContentText_SearchResults")&" > "
else
LocationBar = LocationBar & "" & GetString("ContentText_Home") & " > "
end if
LocationBar = LocationBar & PT_Name
response.write("" & PT_Name & " ") %> |
| <%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
arrFileTypes = Split(Application(HASHKEYNUMBERXYZ & "allowedimages"), ",")
theCategoryPath = Server.MapPath("../img_category/")
theCategoryLargePath = Server.MapPath("../img_category_large/")
theFile = GetFileLocation(theCategoryPath, prodtype, arrFileTypes, FSO)
If theFile = "" Then
strFileStatus = ""
Else
strFileStatus = " " End if theFile = GetFileLocation(theCategoryLargePath, prodtype, arrFileTypes, FSO) If theFile = "" Then strFileStatus2 = "" Else If gfxSpex(theCategoryLargePath & "\" & theFile, imgW, imgH, c, strType) = True Then Item_Parent = PT_Name Item_Title = " (" & rs_main("PT_Name") & ")" Item_Image = server.URLencode(" "
End if
End if
response.write(strFileStatus)
response.write(Highlight(PT_Desc, PassedKeywords, "mednormalhighlight"))
response.write(strFileStatus2)
%> |
| "><% =rs_main("PT_Name") %> |
|
<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
arrFileTypes = Split(Application(HASHKEYNUMBERXYZ & "allowedimages"), ",")
theCategoryPath = Server.MapPath("../img_category/")
theCategoryLargePath = Server.MapPath("../img_category_large/")
theFile = GetFileLocation(theCategoryPath, rs_main("PT_ID"), arrFileTypes, FSO)
If theFile = "" Then
strFileStatus = ""
Else
strFileStatus = " " End if theFile = GetFileLocation(theCategoryLargePath, rs_main("PT_ID"), arrFileTypes, FSO) If theFile = "" Then strFileStatus2 = "" Else If gfxSpex(theCategoryLargePath & "\" & theFile, imgW, imgH, c, strType) = True Then Item_Parent = PT_Name Item_Title = " (" & rs_main("PT_Name") & ")" Item_Image = server.URLencode(" "
End if
End if
response.write(strFileStatus)
response.write(Highlight(rs_main("PT_Desc"), PassedKeywords, "mednormalhighlight"))
%> |
| <% WriteString("ContentText_SectionUnavailable")%> |