% 'Alter these codes to change BanMan ads ZoneCodeTopBanner1 = 11 'zone id no. ZoneCodeTopBanner2 = 468 'width in pixels ZoneCodeTopBanner3 = 60 'height in pixels ZoneCodeTopBanner4 = 33333 'page id ZoneCodeBottomBanner1 = 1 ZoneCodeBottomBanner2 = 468 ZoneCodeBottomBanner3 = 60 ZoneCodeBottomBanner4 = 33333 ' To update this page for 2007 etc., change "Product.Nom2007" in the SQL query to the appropriate field. '----------------------------------------------- function SpecChar(str) str = Replace(str, "&", "&") str = Replace(str, """", """) str = Replace(str, "<", "<") str = Replace(str, ">", ">") SpecChar = str End function '----------------------------------------------- strCatID = Request.Querystring("catid") if not isInteger(strCatID) then strCatID = 11 If strCatID = "46" Then 'Developer software strSQL = "SELECT TOP 100 PERCENT asct.SectionName As CatName, ac.CatName As SubcatName, p.ProdName As ProdName, p.ProdID, c.CompanyName, c.Web, ac.CategoryID As SubcatID, " & _ "CAST(p.Description1 as nvarchar(1000)) As Description1, p.UseWith, p.Price, c.Email, p.PPC, p.HPC, p.Smartphone, p.Desktop " & _ "FROM Product p INNER JOIN Category cat ON cat.CatID = p.CatID INNER JOIN AwardCategory ac ON ac.CategoryID = cat.CatID " & _ "INNER JOIN AwardSection asct ON asct.AwardSectID = ac.AwardSectID " & _ "INNER JOIN Company c ON c.CompanyID = p.CompanyID " & _ "WHERE ((asct.SectionName = 'Developers') AND (p.Nom2007 = 1)) UNION " & _ "SELECT TOP 100 PERCENT asct.SectionName As CatName, ac.CatName As SubcatName, p.ProdName As ProdName, p.ProdID, c.CompanyName, c.Web, ac.CategoryID As SubcatID, " & _ "CAST(p.Description1 as nvarchar(1000)) As Description1, p.UseWith, p.Price, c.Email, p.PPC, p.HPC, p.Smartphone, p.Desktop " & _ "FROM Product p INNER JOIN AwardSmartphone asp ON asp.ProdID = p.ProdID " & _ "INNER JOIN AwardCategory ac ON ac.AwardCatID = asp.AwardCatID " & _ "INNER JOIN AwardSection asct ON asct.AwardSectID = ac.AwardSectID " & _ "INNER JOIN Company c ON c.CompanyID = p.CompanyID " & _ "WHERE ((asct.SectionName = 'Developers') AND (p.NomSP2007 = 1)) ORDER BY CatName, SubcatName, ProdName ASC" Else strSQL = "SELECT DISTINCT Cat.CatName AS CatName, Subcat.CatID AS SubcatID, Subcat.CatName AS SubcatName, Product.ProdID, Product.ProdName, CAST(Product.Description1 AS nvarchar(1000)) AS Description1, " &_ "Product.UseWith, Product.Price, Company.CompanyName, Company.Web, Company.Email, Product.PPC, Product.HPC, Product.Smartphone, " &_ "Product.Desktop, pd.handandgoid AS handangoId, pd.url as downloadUrl, ah.awardstatus as awardstatus, " &_ "CASE WHEN vscd.AgreementProdID IS NULL THEN '0' ELSE '1' END AS AgreementProdID " &_ "FROM Category Cat LEFT OUTER JOIN " &_ "Category Subcat ON Cat.CatID = Subcat.ParentID INNER JOIN " &_ "Product ON Product.CatID = Subcat.CatID INNER JOIN " &_ "Company ON Product.CompanyID = Company.CompanyID INNER JOIN " &_ "awardhistory ah on product.prodid = ah.prodid " &_ "LEFT outer JOIN v_SuperCDProducts_2007 vscd on product.ProdID = vscd.prodid " &_ "Left outer JOIN ProductDownload_ppc pd on pd.ProdID = product.prodID " &_ "WHERE ((Subcat.ParentID = " & strCatID & ") AND (Product.Nom2007 = 1)) and (ah.smartphone = 0) and (ah.year = 2007) " &_ "ORDER BY Cat.CatName, SubcatName, Product.ProdName ASC" End If 'Response.write strSQL 'response.end Call ExecuteSQL(strSQL,cursortype,rs_main) Function isInteger(value) dim isValidE dim regEx isValidE = True set regEx = New RegExp regEx.IgnoreCase = False regEx.Pattern = "^\d+$" isValidE = regEx.Test(value) isInteger = isValidE End Function %>
2007 Pocket PC Software Award Nominations
" Do While Not rs_main.EOF If strCat <> rs_main("CatName") Then Response.write "| " & rs_main("CatName") &_ " Nominations | " & vbcrlf &_ "" &_ "Back to Index | " & vbcrlf &_ "
| " &_ "" &_ "" &_ "" &_ rs_main("SubcatName") & "" &_ " < " &_ "Click here to see all products in category." &_ " | " & vbcrlf &_ "
" & SpecChar(strName) & "" & vbcrlf
response.write(strIcon)
response.write "
" & vbcrlf
If Not strDesc = "" Then Response.Write SpecChar(strDesc) & "
" & vbcrlf
If Not strDesctwo = "" Then Response.Write SpecChar(strDesctwo)
Response.Write "
"
If Not strUsewith = "" Then Response.Write "Use with: " & SpecChar(strUsewith) & "
"
If Not strPrice = "" Then Response.Write "Price: " & SpecChar(strPrice) & "
"
'UNCOMMENT the next 3 lines show if a product is included in BOE
if(rs_main("AgreementProdID") <> "0") then
response.write ("Included in Best of Everything Software Package!
")
end if
Response.Write "Developer: " & SpecChar(strDevel) & "
" & vbcrlf
'Response.write "Date posted: " & SpecChar(strDate) & "
" & vbcrlf
'If Not strPhone = "" Then Response.Write "Phone: " & strPhone & "
"
'If Not strFax = "" Then Response.Write "Fax: " & strFax & "
"
If Not strEmail = "" Then Response.Write "Email: " & strEmail & "
"
If Not strWeb = "" Then Response.Write "Web: " & strWeb & "
2007 Pocket PC Software