<%@ Language=VBScript %> <% Option Explicit Response.Buffer = True ' Redirect requested by Matthew Green on 27 Apr 2011 response.redirect("http://www.dealspace.com.au/index.php?manufacturers_id=1") if session("SPECIAL")="Y" then response.redirect("products_Special.asp") end if %> <% dim lastLabel dim CellCnt, Max_X Max_X=2 CellCnt=1 dim PrdSTR, PrdARRY dim iii dim label SQL="SELECT P.ID, P.ManufPartNo, P.SKU, P.ProductName, P.ShortDesc FROM Product P, Product_Data PD " SQL=SQL&"WHERE P.SKU=PD.SKU " SQL=SQL&"AND P.Hide=False " SQL=SQL&"and P.AutoHide=False " 'SQL=SQL&"and P.SKU<>'DP-S1' " 'SQL=SQL&"and P.SKU<>'DP-P1' " 'SQL=SQL&"and P.SKU<>'DP-H1' " SQL=SQL&"and SHOPPRODUCT='Y' " set r=conn.execute(SQL) if not r.eof then do while not r.eof PrdSTR=PrdSTR&r("ID")&"|" r.movenext loop end if r.close set r=nothing PrdSTR=left(prdSTR,(len(prdSTR)-1)) PrdARRY=split(PrdSTR,"|") %> Beyonwiz Australia : Online Shopping <% TopPicStr="line02_shopping.gif" bkgclr="#d3d3d3" %> <%if session("message")<>"" then%> <% end if%>
<%=session("message")%>
<% r.close set r=nothing %>
<% iii=0 Max_X=2 CellCnt=1 SQL="SELECT P.ID, SC.Label, SellPrice, P.ManufPartNo, P.SKU, P.ProductName, P.ShortDesc FROM Product P, Product_Data PD, PRODUCT_CATEGORY PC, SubCategory SC " SQL=SQL&"WHERE P.SKU=PD.SKU AND PD.SKU=PC.SKU AND PC.SubCatID=SC.SubCatID " SQL=SQL&"AND P.Hide=False " SQL=SQL&"and P.AutoHide=False " 'SQL=SQL&"and P.SKU<>'DP-S1' " 'SQL=SQL&"and P.SKU<>'DP-P1' " SQL=SQL&"and SHOPPRODUCT='Y' " SQL=SQL&" ORDER BY PC.SubCatID, P.POS, P.SKU " set r=conn.execute(SQL) if not r.eof then SellPrice = trim(r("SellPrice")) %> <%do while not r.eof SKU=trim(r("SKU")) %>
<%iii=iii+1%>
<% picShown=0 imagearrySTR="" SQL="SELECT * " SQL=SQL&"FROM Product_images WHERE " SQL=SQL&"SKU='"&SQLTXT(SKU)&"' AND ImageType='product' " SQL=SQL&"ORDER BY POS" SET rs=conn.execute(SQL) if not rs.eof then do while not rs.eof imagearrySTR=imagearrySTR&trim(rs("imagename"))&"|" rs.movenext loop end if rs.close set rs=nothing if imagearrySTR="" then imagearrySTR=" |" else 'imagearrySTR=left(imagearrySTR,(len(imagearrySTR)-1)) end if imagearry=split(imagearrySTR,"|") %> <%for i=lbound(imagearry) to ubound(imagearry) imagestr=CheckImageExists(imagearry(i),"\images\products\medium\") if Imagestr<>"F" and picShown=0 then imagestr=replace(imagestr,"\","/") %>
">
<% picShown=1 end if next %>
<%=trim(r("ProductName"))%>
<%=trim(r("ShortDesc"))%>
<%incgstcol="#FFFFFF"%><%call BuyLinks(SKU,SellPrice)%>
" style="color:#FFFFFF">more detail
<% r.movenext loop%> <% end if SKU="" %>
  <% r.movefirst if not r.eof then %> <% CellCnt=0 do while not r.eof if trim(r("Label"))<>Label and not r.eof then 'if CellCnt>1 then response.write "" %> <% end if %> <% CellCnt=CellCnt+1 Label=trim(r("Label")) r.movenext loop %>
<%=trim( trim(r("Label")))%>
" onMouseOver="ProdDetail(<%=CellCnt%>);" style="color:#FFFFFF"><%=r("SKU")%> " onMouseOver="ProdDetail(<%=CellCnt%>);" style="color:#acc2ff">$<%=r("sellprice")%>
<% end if %>
<%conn.close set conn=nothing%>