{$i = $maxLi}{$j = 0}{$s = ''} {if $style==2} {foreach $catalogs as $catalog} {if $catalog->Level == 0} {$s = $s . '
  • ' . $catalog->Name . '
  • '} {/if} {/foreach} {for $i = 1; $i <= 3; $i++} {foreach $catalogs as $catalog} {if $catalog->Level == $i} {$s = str_replace('', '
  • ' . $catalog->Name . '
  • ', $s)} {/if} {/foreach} {/for} {foreach $catalogs as $catalog} {$s = str_replace('', '', $s)} {/foreach} {foreach $catalogs as $catalog} {$s = str_replace('', '', $s)} {/foreach} {php}ob_clean(){/php}{$s} {elseif $style==1} {foreach $catalogs as $catalog}
  • {$catalog->Symbol}{$catalog.Name}
  • {$j =$j + 1} {if $i != 0 && $j >= $i} {php}break;{/php} {/if} {/foreach} {else} {foreach $catalogs as $catalog}
  • {$catalog.Name}
  • {$j =$j + 1} {if $i != 0 && $j >= $i} {php}break;{/php} {/if} {/foreach} {/if}