<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Explanation_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 class="question">
		<form action="<?= htmlspecialchars(TemplateUtils::createURL('Exam', 'Explanation')) ?>" method="post">
			<table>
				<tr>
					<th>第<?= $template['question_admin']->number ?>問：</th>
					<td><?= htmlspecialchars($template['result']) ?></td>
				</tr>
				<tr>
					<th>問題：</th>
					<td><?= nl2br(htmlspecialchars($template['question_admin']->question)) ?></td>
				</tr>
				<tr>
					<th>あなたの回答：</th>
					<td><?= htmlspecialchars($template['choice_student']->getNumber()) ?>. <?= htmlspecialchars($template['choice_student']->choice) ?></td>
				</tr>
				<tr>
					<th>正解：</th>
					<td><?= htmlspecialchars($template['question_admin']->getCorrectNumber()) ?>. <?= htmlspecialchars($template['correct']) ?></td>
				</tr>
				<tr>
					<th>解説：</th>
					<td><?= nl2br(htmlspecialchars($template['question_admin']->explanation)) ?></td>
				</tr>
				<tr>
					<th></th>
					<td></td>
				</tr>		
				<tr>
					<th></th>
					<td>	
						<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 ?>" />
						<input type="submit" name="next" value="次へ">　
						<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Explanation', array('aid'=>$template['admin']->aid, "eid" => $template['exam_admin']->eid, "qid" => $template['question_admin']->qid, "rid"=>$template['rid'], "number"=>$template['question_admin']->number, "back"=>"back"))) ?>" class="operation">戻る</a>　
						<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Explanation', array('aid'=>$template['admin']->aid, "eid" => $template['exam_admin']->eid, "qid" => $template['question_admin']->qid, "rid"=>$template['rid'], "number"=>$template['question_admin']->number, "end"=>"end"))) ?>" class="operation">確認終了</a>
					</td>
				</tr>
			</table>		
		</form>
	</div>
	<div id="main_block">
		<?= $template['question_admin']->number ?>問目/全<?= $template['count'] ?>問 
	</div>
</div><!-- main -->	
<?php
include (BASE_DIR.'templates/pc_footer.php');
?>


