{if $level eq 1}
{/if} {foreach from=$categories item=category}
{if $category.subcats_num gt 0} {$category.caption|truncate:20:"...":true} {else} {$category.caption|truncate:20:"...":true} {/if}
{$LABEL.link_select|lower}    
{/foreach} {if $level eq 1}

{include file="_system_/button.html" title=$LABEL.lbl_select_all js="SearchSelectCat(0, '');"} {include file="_system_/button.html" title=$LABEL.link_cancel js="SearchHideSelectCat();"}

{/if}