<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Explanation_success.php,v 1.1 2005/06/20 09:31:25 snapshot Exp $
//
// Description:
// 2005/05/18
//
include (BASE_DIR.'templates/m_header.tpl');
?>
<div align="center">
	<?= htmlspecialchars($template['exam_admin']->sname) ?><br> <?= htmlspecialchars($template['exam_admin']->name) ?> 
</div>
<hr>

<div>
<?= htmlspecialchars($template['question_admin']->number) ?>： <?= htmlspecialchars($template['result']) ?><br><br>
</div>
<div>
問題：
<?= nl2br(htmlspecialchars($template['question_admin']->question)) ?><br>
</div>
<br>
<div>
あなたの回答：<?= htmlspecialchars($template['choice_student']->getNumber()) ?>. <?= htmlspecialchars($template['choice_student']->choice) ?><br>
</div>
<div>
正解：<?= htmlspecialchars($template['question_admin']->getCorrectNumber()) ?>. <?= htmlspecialchars($template['correct']) ?>
</div>
<div>
解説：
	<?= nl2br(htmlspecialchars($template['question_admin']->explanation)) ?>
</div>
<br>
<form action="<?= TemplateUtils::createURL('Exam', 'Explanation') ?>" method="post">
	<input type="hidden" name="eid" value="<?= $template['exam_admin']->eid ?>">
	<input type="hidden" name="qid" value="<?= $template['question_admin']->qid ?>">
	<input type="hidden" name="rid" value="<?= $template['rid'] ?>">
	<input type="hidden" name="number" value="<?= $template['question_admin']->number ?>">
	<input type="hidden" name="aid" value="<?= $template['admin']->aid ?>">	
<br>
	<input type="submit" name="next" value="次へ"><br>	
	<input type="submit" name="back" value="戻る"><br>
	<input type="submit" name="end" value="確認終了">
</form>
<div>
	<?= $template['question_admin']->number ?>問目/全<?= $template['count'] ?>問 
</div>
<br>
<div>
	<a href="<?= htmlspecialchars(TemplateUtils::createLink('Top','Index')) ?>">TOPへ</a>
</div>
<?php
include (BASE_DIR.'templates/m_footer.tpl');
?>


