<%IF $Data.brand_id THEN $Pagerows=$Data.saved_pagerows QUERY Brand(brand_id=$Data.brand_id) DO DISPLAY%>
<%PICTURE('BRAND')%>

$name

$descr

<%IF $link THEN%>[%HOMEPAGE Hemsida%]: $link<%ENDIF%>

<%IF $Shop.opt_document THEN FETCH BrandDocument IF $Numrows THEN%>
[%MORE_INFORMATION Mer information%]: <%ENDIF DISPLAY%> $name
<% NEXTROW IF $Numrows THEN%>
<%ENDIF ENDFETCH ENDIF%>
<%NEXTROW ENDQUERY%> <%IF $brand_id THEN QUERY Product(brand_id=$brand_id) PAGE $brand_pagenum PAGEROWS $Pagerows DO $brand_numpages=$Numpages $Data.Brand_numproducts=$Pagerows DISPLAY NEXTROW ENDQUERY ENDIF $xView='DEFAULT' $xTransform='THUMBS2' %> <%$prodvar_brand_id=$brand_id $LINK = $Request.file IF $Shop.opt_nice_url AND $seo_url THEN $LINK = $LINK + "/"+$seo_url+"?" ELSE $LINK = $LINK + '?brand_id='+$brand_id+"&" ENDIF /* Filter */ IF $Shop.opt_filter AND $SHOW!="new" AND $SHOW!="campaign" AND $SHOW!="promote" THEN QUERY BrandProductFilter(brand_id=$brand_id) DO $no_of_filters=$Numrows DISPLAY NEXTROW ENDQUERY ENDIF IF $Shop.opt_filter AND $no_of_filters THEN INCLUDE 'filter-brand.htm' ELSE IF $Data.order=='DESC' THEN $rev_order='ASC' ELSE $rev_order='DESC' ENDIF IF $opt_layout THEN QUERY LayoutTemplate(template_type='product-small',available_in_shop=1,language=$language) DO IF $Brand_numproducts AND ($product_display_sorting OR $LayoutTemplate.Numrows OR $show_numproduct_chooser) THEN%>
<%IF $product_display_sorting THEN%> <%ENDIF%>
<%ENDIF /*IF $product_display_sorting...*/ IF $LayoutTemplate.Numrows>0 THEN%>
<%ENDIF DISPLAY /*LayoutTemplate*/%>
<%NEXTROW IF $LayoutTemplate.Numrows>0 THEN%>
<%ENDIF IF $Brand_numproducts AND $show_numproduct_chooser THEN%>
checked="checked"<%ENDIF%>/>12 checked="checked"<%ENDIF%>/>36 checked="checked"<%ENDIF%>/>72
<%ENDIF%> <%IF $Brand_numproducts AND ($product_display_sorting OR $LayoutTemplate.Numrows OR $show_numproduct_chooser) THEN%>
<%ENDIF /*IF $product_display_sorting OR....*/ ENDQUERY ENDIF /*IF $opt_layout...*/%>
<%/* ProductVariant grabs parameters by itself, so we don't send any */ QUERY ProductVariant(orderby=$Data.orderby,order=$Data.order) PAGE $Data.brand_pagenum PAGEROWS $Data.saved_pagerows DO DISPLAY INCLUDE 'product-small3.htm' NEXTROW%>
<%IF $SHOW != 'puff' THEN INCLUDE 'pageselector.htm' ENDIF ENDQUERY%>
<%ENDIF /*IF IF $Shop.opt_filter...*/ ENDIF /*IF $brand_id...*/%>