{foreach from=$ls item=row name=dataname} {if $smarty.foreach.dataname.index % 3 == 0}{/if} {/foreach}
{$row.username} ({$row.no})