<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Question_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) ?>：
	<?= nl2br(htmlspecialchars($template['question_admin']->question)) ?>
</div>
<br>
<form action="<?= TemplateUtils::createURL('Exam', 'Question') ?>" 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 ?> ">
	<ol type="1">
<?php
	$num = 1;
	foreach($template['choices_admin'] as $choice_admin){
?>
		<li><input type="radio" name="choice" value="<?= $choice_admin->cid ?>"
<?php
		if($choice_admin->cid == $template['choice_student']){
?>
			checked			
<?php
		}
?>
		
		> <?= $num?>. <?= htmlspecialchars($choice_admin->value) ?></li>
<?php
		$num++;
	}

?>
	</ol>	
<br>
	<input type="submit" name="next" value="次へ"><br>	
<?php
	if($template['back_flug']){
?>
		<input type="submit" name="back" value="戻る"><br>
<?php
	}

?>
	<input type="submit" name="end" value="テスト終了">
</form>
<div>
	<?= $template['question_admin']->number ?>問目/全<?= $template['count'] ?>問 
</div>

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


