|
|
<%
if rows_Item >= 0 then
%> <%
for i = sItem to eItem step 2
%>
<%
for j = i to i+1
%>
<%
if j <= eItem then
ID = rs_Item(0,j)
ItemID = rs_Item(1,j)
ItemNameth = rs_Item(2,j)
ItemPic = rs_Item(3,j)
ItemType = rs_Item(4,j)
ItemDesc = sFText(rs_Item(5,j))
if (ItemNameth = empty or IsNull(ItemNameth)) then
ItemNameth = ItemID
ItemID = empty
end if
if not(ItemID = empty or IsNull(ItemID)) then
ItemID = " " & ItemID
end if
if ItemPic = empty or IsNull(ItemPic) then ItemPic = "spacer.gif"
if ItemType = "z" then 'ถ้า item เป็น product จะแสดงในรูปแบบที่เป็น product
%>
|
|
| <%=ItemNameth%> |
| |
| |
| |
 |
|
|
<%
else 'ถ้า item เป็น category จะแสดงในรูปแบบที่เป็น category
%>
 |
|
| <%=ItemNameth%> |
 |
|
<%
end if
else 'ถ้ามี item ไม่พอจนครบแถว จะใส่ช่องว่างลงไปแทน
%> <%
end if
%> |
<%
next
%>
|
|
<%
next
%> <%
end if
%>
|
|
| Found : <%=strFound%>
item(s) |
<%=strPpP%> |
|
|