Структура анкет

{if count($info.blocks)} {foreach from=$info.blocks item=ib}

{$ib.name}

{if $ib.type==0} {foreach from=$ib.items item=bi name=foo} {foreach from=$info.portfo[$ib.id][$bi.id] item=sa} {/foreach} {/foreach}
{$sa.data} {$sa.znach}
{else} {for $block=0 to (count($info.portfo[$ib.id])-1)} {foreach from=$ib.items item=bi name=foo} {if $info.portfo[$ib.id][$bi.id][$block].znach neq ""} {/if} {/foreach}
{$bi.name} {$info.portfo[$ib.id][$bi.id][$block].znach}
{/for} {/if}
{/foreach} {/if}