Файл: upload/module/quiz/template/default/block/result.html.php
Строк: 57
<?php
/**
* [PHPFOX_HEADER]
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox
* @version $Id: result.html.php 3193 2011-09-27 11:44:08Z Raymond_Benc $
*/
defined('PHPFOX') or exit('NO DICE!');
?>
<h3>
{if isset($aQuiz.takerInfo)}
{phrase var='quiz.quiz_results_for_full_name_percentage_100' full_name=$aQuiz.takerInfo.userinfo.full_name percentage=$aQuiz.iSuccessPercentage}
{else}
{phrase var='quiz.quiz_results_percentage_100' percentage=$aQuiz.iSuccessPercentage}
{/if}
</h3>
{if isset($aQuiz.takerInfo)}
<div style="width:55px; position:absolute;">
{img user=$aQuiz.takerInfo.userinfo suffix='_50' max_width=50 max_height=50}
</div>
<div class="p_2" style="margin-left:60px; height:55px;">
<div class="extra_info">
{phrase var='quiz.taken_on_time_stamp' time_stamp=$aQuiz.takerInfo.time_stamp|date:'quiz.quiz_view_time_stamp'}
</div>
</div>
{/if}
<div class="p_4" style="margin-top:10px;">
{foreach from=$aQuiz.results name=questions item=aQuestion}
<div class="{if is_int($phpfox.iteration.questions/2)}row1{else}row2{/if}{if $phpfox.iteration.questions == 1} row_first{/if}{if $aQuestion.userAnswer == $aQuestion.correctAnswer} row_is_correct{else} row_is_incorrect{/if}">
<b>{$phpfox.iteration.questions}.</b> {$aQuestion.questionText}
<div class="p_4" style="margin-left:30px;">
{phrase var='quiz.full_name_s_answer' full_name=$aQuestion.full_name}: {$aQuestion.userAnswerText} <br />
{phrase var='quiz.correct_answer'}: {$aQuestion.correctAnswerText} <br />
</div>
</div>
{/foreach}
</div>