<table border=0 cellspacing=1 cellpadding=5>
{section name=i loop=$subcategories_to_be_shown}
{if $smarty.section.i.index is div by [COLOR=Red]2[/COLOR]}<tr>{/if}
<td valign=top>
<table border=0 width=100% bgcolor=#{$smarty.const.CONF_MIDDLE_COLOR} cellpadding=0 cellspacing=1>
<tr><td>
<table border=0 bgcolor=white width=100%>
<tr>
<td colspan=2><a class=standard href="index.php?categoryID={$subcategories_to_be_shown[i][0]}"><center><img border=0
src="products_pictures/{$subcategories_to_be_shown[i][3]}" alt="{$subcategories_to_be_shown[i][3]}"></td>
</tr>
<div align="center" class="standard">{$subcategories_to_be_shown[i][1]}
</table>
</td></tr>
</table>
</td>
{if ($smarty.section.i.index+1) is div by [COLOR=Red]2[/COLOR]}</tr>{/if}
{/section}
</table>
</td>
</tr>
<tr>
<td {if $selected_category.picture}colspan="3"{else}colspan="2"{/if} width="{if $allow_products_search}75{else}90{/if}%">
<!-- products list :: start -->
{if $products_to_show}
<center>{include file="comparison_products_buttonup.tpl.html"}</center>
<center>{$string_product_sort}</center>
<br>
<center>{$catalog_navigator}</center>
{literal}
<script language='JavaScript'>
function _formatPrice( _price )
{
_pointIndex = -1;
for( i=0; i< _price.length; i++ )
if ( _price.charAt(i) == '.' )
{
_pointIndex = i;
break;
}
if ( _pointIndex == -1 )
_price = _price + ".00";
else if ( _price.length-1 - _pointIndex == 1 )
_price = _price + "0";
_res = "";
i=0;
for( i=_price.length-1; i >= 0; i-- )
{
if ( _price.charAt(i) == '.' )
break;
else
_res = _price.charAt(i) + _res;
}
_res = "." + _res;
i--;
_digitCounter = 0;
for( ; i>=0; i-- )
{
_digitCounter ++;
_res = _price.charAt(i) + _res;
if ( _digitCounter == 3 && i != 0 )
{
_res = "," + _res;
_digitCounter = 0;
}
}
return _res;
}
</script>
{/literal}
<table cellpadding=0 border=0 width=100%>
{section name=i1 loop=$products_to_show}
{if $smarty.section.i1.index is div by $smarty.const.CONF_COLUMNS_PER_PAGE}<tr>{/if}
<td valign=top width="{math equation="100 / x" x=$smarty.const.CONF_COLUMNS_PER_PAGE}%" format="%d">
{if $smarty.section.i1.index > $smarty.const.CONF_COLUMNS_PER_PAGE-1}<p class="pageSeparator"> </p>{/if}
{include file="product_brief.tpl.html" product_info=$products_to_show[i1]}
</td>
{if ($smarty.section.i1.index+1) is div by $smarty.const.CONF_COLUMNS_PER_PAGE}</tr>{/if}
{/section}
</table>
<center>{$catalog_navigator}</center>
<center>{include file="comparison_products_buttondown.tpl.html"}</center>
{else}
<p>
{if $search_with_change_category_ability && !$advanced_search_in_category}
{else}
{if $advanced_search_in_category}
< {$smarty.const.STRING_EMPTY_SEARCH_RESULT} >
{else}
< {$smarty.const.STRING_EMPTY_CATEGORY} >
{/if}
{/if}
{/if}
<!-- products list :: end -->
</td>
</tr>
</table>