{foreach $header as $pole} {/foreach} {foreach $sestava as $row} {foreach $header as $pole} {/foreach} {/foreach}
{$pole}
{$row->$pole}