%@ LANGUAGE="VBSCRIPT" %> <% PageStrings = "18, 33, 55, 108, 150, 151, 152, 156, 157, 158, 159, 160, 161, 265, 266, 294, 295, 296, 648, 870, 871" %> <% product = Request.Querystring("product") version = Request.Querystring("V") recorprod = request.querystring("recorprod") recor = request.querystring("recor") SearchedID = request.querystring("PT_ID") cat = request.querystring("cat") ParentProd = request.QueryString("pp") PassedKeywords = Request.QueryString("keywords") strShowBackLink = Request.Querystring("strShowBackLink") if not isnull(version) and version <> "" then PassedKeywords = "" PageHistory = request.querystring("ph") SearchFor = request.querystring("SearchFor") keywords = request.querystring("keywords") If SearchedID="" then SearchedID=1 If recorprod="" then recorprod=1 If recor="" then recor=1 If version="" then version=0 If cat="" then cat=0 If Not IsNumeric(product) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(version) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(SearchedID) and SearchedID<>"all" then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(cat) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(recor) then response.redirect("../ecommerce/error_occ.asp") If Not IsNumeric(recorprod) then response.redirect("../ecommerce/error_occ.asp") If DBType = "mysql" Then theQuery = "SELECT PT_Live, PT_Name, P_StrapLine, P_Live, P_Name, P_SpecTable, P_Desc, P_Hyperlink FROM tbl_Versions INNER JOIN tbl_Products ON tbl_Versions.V_Product = tbl_Products.P_ID 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 INNER JOIN tbl_TaxRates ON tbl_Versions.V_Tax = tbl_TaxRates.T_ID WHERE P_ID=" & product & " AND V_Live='y' AND P_Live='y' AND PT_Live='y'" Else theQuery = "SELECT PT_Live, PT_Name, P_StrapLine, P_Live, P_Name, P_SpecTable, P_Desc, P_Hyperlink FROM (tbl_Versions INNER JOIN ((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) ON tbl_Versions.V_Product = tbl_Products.P_ID) INNER JOIN tbl_TaxRates ON tbl_Versions.V_Tax = tbl_TaxRates.T_ID WHERE P_ID=" & product & " AND V_Live='y' AND P_Live='y' AND PT_Live='y'" End If Call ExecuteSQL(theQuery,cursortype,rs_main) if Application(HASHKEYNUMBERXYZ & "tracking") = "y" then theQuery2 = "INSERT INTO tbl_ProductStats (PS_ProdNo, PS_Date, PS_IP) VALUES (" & _ product & "," & datedelimiter & _ ReverseFormatYear(Now()) & datedelimiter & ",'" & _ Request.ServerVariables("HTTP_HOST") & "')" Call ExecuteSQL(theQuery2,cursortype,rs_main2) End if Call ReadFromTemplate(templatelocation,aryPageTemplate,strBasketHTML,strCategoryListHTML) response.write(aryPageTemplate(0)) If rs_main.recordcount=0 then %>
| <% WriteString("ContentText_ProductUnavailable") %> |