|
| <% getHeading "", hdcat, "" %> |
|
<%
'Display all categories for this item.
set rs2=openrs2("SELECT catlinks.id as linkid, catlinks.itemid, category.name, category.shortdesc, category.id as catid FROM catlinks INNER JOIN category on category.id=catlinks.catid WHERE itemid=" & itemid & " ORDER BY category.name")
if not rs2.eof then
rs2.movefirst
while not rs2.eof
catlinkid=rs2("linkid")
catname=rs2("name")
catdesc=rs2("shortdesc")
catid=rs2("catid")
%>
| <%=showlevels(catid, shopurl & "shop/category.asp")%> |
|
<%
'To display sub category, uncomment the line below.
'showsubcatsitem="Y"
if showsubcatsitem="Y" then
'Open database get sub categories.
set rs=openrs("SELECT * FROM category WHERE subof=" & catid & " ORDER BY name")
if not rs.eof then
%> <%=titheada%><%
rs.movefirst
while not rs.eof
subcatname=rs("name")
subcatid=rs("id")
%> category.asp?catid=<%=subcatid%>">
<%=subcatname%> <%
rs.movenext
if not rs.eof then
response.write (" | ")
end if
wend
end if
rs.close
set rs=nothing
end if
%>
|
|
|
<%
rs2.movenext
wend
end if
rs2.close
set rs2=nothing
%>
<% getleftcol(pg6) %>
|
|
| <% getHeading "", hditem, "" %> |
| <%=fixERR(errormessage)%> |
<% if hidehead<>1 then %> <% if imagefound<>"no" then %>
align="right" vspace="8" hspace="8" alt="<%=name%>">
<%end if%><%=titheadb%>
<%=name%>
<%=titheadc%>
<%=itemno%>
<% if hideprice<>1 and hasoptions<>"yes" then %><%=titheadd%>
<%
if onsale="Yes" then
%>
<% =showCurr(price)%>
<%
end if
response.write(showCurr(theprice))
%>
<% end if %>
<% end if %><%=description%> |
<% if hideprice<>1 and hidecobutt<>1 then %>
<% if hasoptions="yes" then %>
|
| <% getHeading titheadj, "", "" %> |
|
<% end if%>
<% end if %>
<% if showoos="YES" then %>
|
| <%=oosmess%> |
<% end if %>
|
|
|
|
|
<% getrightcol(pg6) %>
|
|