<% '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 %> Nominations: Best Software Awards 2007


<% If rs_main.EOF Or rs_main.BOF Then Response.Write "Developer software nominations have not been made yet for 2007." Else 'set these so can compare to them to decide whether to write a heading strCat = "" strSubcat = "" strID = "" Response.Write "

2007 Pocket PC Software Award Nominations

" Do While Not rs_main.EOF If strCat <> rs_main("CatName") Then Response.write "" & vbcrlf &_ "" & vbcrlf &_ "" & vbcrlf &_ "" & vbcrlf &_ "" & vbcrlf &_ "
" & rs_main("CatName") &_ " Nominations   " &_ "Back to Index
" & vbcrlf End If strCat = rs_main("CatName") If strSubcat <> rs_main("SubcatName") Then Response.write "" &_ "" & vbcrlf &_ "" & vbcrlf &_ "" & vbcrlf &_ "" & vbcrlf &_ "
" &_ "" &_ "" &_ "" &_ rs_main("SubcatName") & "" &_ "   < " &_ "Click here to see all products in category." &_ "
" & vbcrlf '&_ End If strSubcat = rs_main("SubcatName") 'assign values to the string variables strID=rs_main("ProdID") strName=rs_main("ProdName") strDesc=rs_main("Description1") 'strDesctwo=rs_main("Description2") strDevel=rs_main("CompanyName") if(rs_main("Web") <>"") then strWeb = Replace(rs_main("Web"),"http://","") else strWeb = "" end if strEmail = rs_main("Email") '------------------------------------------------------- ' W/F Icons If rs_main("awardstatus") = "Winner" then strIcon = "winner" else If rs_main("awardstatus") = "Finalist" then strIcon = "finalist" else strIcon = "" end if end if ' '--------------------------------------------------------- 'Display the item in question 'Check to be sure field isn't empty, and replace special characters Response.Write "

" & 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 & "

" 'the next lines show try / buy link if((rs_main("downloadurl")) <> "") then strDownloadURL = "http://" & rs_main("downloadurl") if(rs_main("handangoId") <> "") then strDownloadURL = "/vip/handangosplash1.asp?pid=" &rs_main("handangoId") if(strDownloadURL <>"") then %> Try / Buy
<% end if '' end buy / try rs_main.MoveNext 'rotating ads at the end of each sub category if (Not rs_main.EOF) Then 'can't use AND because gives error :-/ If strSubcat <> rs_main("SubcatName") Then response.write (getads()) end if else getads() end if Response.write "
" & vbcrlf Loop End If ' Close DB objects and free variables rs_main.Close Set rs_main = Nothing DataConn.Close Set DataConn = Nothing %>

2007 Pocket PC Software