{$lang.quiz_info}

{if $questions} {foreach from=$questions item=q name=foo}

{$lang.question} {$smarty.foreach.foo.index+1}

{$q.name}
{if isset($answers[$q.id])} {foreach from=$answers[$q.id] item=a}
{$a.name} {/foreach} {/if}

{/foreach} {$lang.check_quiz} {/if}