{if !$aResults}
{messages block="TakeQuiz"}
{Account::Avatar sUser=$aQuiz.user iSize=75 class="pic1" onmouseover="showInfo5('`$aQuiz.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"} {$aQuiz.title|escape}

{language text="created_by"}: {$aQuiz.user}
{language text="views"}: {$aQuiz.views}
{language text="last_taken_by_1177"}: {if $aQuiz.player} {$aQuiz.player} {language text="scored"} {$aQuiz.points|string_format:"%0.1f"}% {language text="right"} {else} {language text="not_taken_yet"} {/if} {if $bIsOwner}
{language text="view_all_results"} {/if}



{foreach from=$aQuestions item=aQuestion name=questions}
{$smarty.foreach.questions.iteration}. {$aQuestion.q1|escape}
{if $aQuestion.a1}
{/if} {if $aQuestion.a2}
{/if} {if $aQuestion.a3}
{/if} {if $aQuestion.a4}
{/if}

{/foreach}


{else}
{language text="quiz_1165"}: {$aQuiz.title|escape}
{language text="user_292"}: {$aResults.user1}
{language text="score"}: {$aResults.score}



{foreach from=$aResults.results item=aAnswer name=answers}
{if $aAnswer.a1 == $aAnswer.a2} {else} {/if} {$smarty.foreach.answers.iteration}. {$aAnswer.q|escape}

{$aResults.user1} {language text="answered"}: {$aAnswer.a1|escape}
{language text="correct_answer"}: {$aAnswer.a2|escape}

{/foreach}
{/if}