Guest User

Untitled

a guest
Jan 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. function renderProductList(boolHighlighted)
  2.  
  3. intAmount = 0 '0 equals all(*)
  4. intRows = 75
  5. strFields = "i.ID,i.ItemName,i.Image,i.ParentID, i.Highlighted, i.NetPrice, i.Colli, i.UnitOfMeasure, i.ItemName2"
  6. strOrder = "Order By i.ItemName"
  7. strSearch = ""
  8. intPageNum = 1
  9. intCategory = 0
  10. intLastPage = 0 '0 Gets the last page as intLastPage
  11. strCode = ""
  12. 'boolHighlighted = 0 '1 Selects products that are highlighted (cross categories)
  13. if illegalChars(request("page")) <> "" and IsNumeric(illegalChars(request("page"))) then intPageNum = illegalChars(request("page")) end if
  14. if illegalChars(request("category")) <> "" then intCategory = illegalChars(request("category")) end if
  15. if illegalChars(request("code")) <> "" then strCode = illegalChars(request("code")) end if
  16. if illegalChars(request("search")) <> "" then strSearch = illegalChars(request("search")) end if
  17. arrayProducts = listProducts(intAmount,intRows,strFields,strOrder,intPageNum,intLastPage,intCategory,boolHighlighted,strSearch,strCode)
  18.  
  19. 'renderCategoryHeader(intCategory)
  20. if intCategory = "994" then
  21. 'response.write "<div style=""padding:10px 0;""><h1>Leveres fra d. 26. januar 2015</h1></div>"
  22. elseif intCategory = "992" then
  23. 'response.write "<div style=""padding:10px 0;""><h1>Leveres fra d. 15. Februar 2018</h1></div>"
  24. elseif intCategory = "993" then
  25. 'response.write "<div style=""padding:10px 0;""><h1>Leveres fra d. 15. Februar 2018</h1></div>"
  26. elseif intCategory = "91" then
  27. 'response.write "<div style=""padding:10px 0;""><h1>Leveres fra d. 20. marts 2015</h1></div>"
  28. elseif intCategory = "10" then
  29. 'response.write "<div style=""padding:10px;background:#f5f5f5; border:1px solid #eee; bprder-radius:3px;""><b>Husk</b> at bestille den nye vare som er i sortimentet fra 1/10-16 � <a href=""/shop/?category=10&product=81412""><u>CHO CHO chokolade 870g 81 stk. � varenummer 81412</u></a></div>"
  30. end if
  31. Call renderProductListInner(arrayProducts,0)
  32.  
  33. Response.Write(" <div style=""text-align:right;"">") & vbcrlf
  34. Response.Write(" " & pagingProducts(pageID,intPageNum,intLastPage)) & vbcrlf
  35. Response.Write(" </div>") & vbcrlf
  36.  
  37. end function
Add Comment
Please, Sign In to add comment