<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Confirm_success_pc.php,v 1.1 2005/06/20 09:31:25 snapshot Exp $
//
// Description:
// 2005/05/18
//
include (BASE_DIR.'templates/pc_header.php');
?>

<div id="main">

	<div id="navi1">
		<h1>
			<?= htmlspecialchars($template['exam_admin']->sname) ?>　<?= htmlspecialchars($template['exam_admin']->name) ?> 
		</h1>
	</div>
	
	<div id="main_block">
		<div class="exam_info">

			<p><?= $template['count'] ?>問中<?= $template['count_student'] ?> 問、回答が終わっています。</p>

			<ul>
				<li>
					<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Result',array('aid'=>$template['admin']->aid, 'rid'=>$template['rid']))) ?>" class="operation">終了して結果を見る</a>
				</li>
				<li>
					見直しをする
					<ul>
<?php
foreach($template['exam_admin']->questions as $question) {
	$sqd = $template['sed']->getQuestionByNumber($question->number);
?>

				<li>
					<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
	}
?>
				</li>
<?php
}
?>

					</ul>
				</li>
			</ul>		
		</div><!-- exam_info -->
	</div><!-- main_block -->

</div><!-- main -->
<?php
include (BASE_DIR.'templates/pc_footer.php');
?>


