<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Confirm_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>
	<?= $template['count'] ?>問中<?= $template['count_student'] ?>問、回答が終わっています。<br>
	<br>
	<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Result',array('aid'=>$template['admin']->aid, 'rid'=>$template['rid']))) ?>">終了して結果を見る</a><br>
</div>
<div>
	見直しをする
</div>
<div>
<?php
foreach($template['exam_admin']->questions as $question) {
	$sqd = $template['sed']->getQuestionByNumber($question->number);
?>
				<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Question', array('aid'=>$template['admin']->aid, 'rid'=>$template['rid'], 'eid'=>$question->eid, 'number'=>$question->number))) ?>">第<?= $question->number ?>問</a>： 
<?php
	if(is_null($sqd) || is_null($sqd->getAnswerNumber())){
?>
				<font color="red">未回答</font>
<?php
	} else{
?>
				<?= $sqd->getAnswerNumber().". ".htmlspecialchars($sqd->getAnswer())  ?>
<?php
	}
?>
				<br>
<?php
}
?>

</div>

<br>
<?php
include (BASE_DIR.'templates/m_footer.tpl');
?>


