<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Start_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['subject']->name) ?><br> <?= htmlspecialchars($template['exam']->name) ?>
</div>
<hr>

<div>
	■テスト情報■
</div>
<div>
	状態：
<?php
	if($template['reply_flug'] == "1"){
?>	
		受験済<br>
<?php
	}else if($template['reply_flug'] == "2"){
?>		
		<font color="red">受験中</font><br>
<?php
	}else if($template['reply_flug'] == "0"){
?>
		<font color="red">未受験</font><br>
<?php
	}
?>
	配信：<?= date("Y年m月d日 H時i分s秒", strtotime($template['exam']->publish_time)) ?><br>
	問題数：<?= $template['count'] ?>問<br>
	満点：<?= $template['points'] ?>点<br>
	締切：<?php 	
	if(!is_null($template['exam']->deadline_time) && $template['exam']->deadline_time != '') { ?>
<?= date("Y年m月d日 H時i分s秒", strtotime( $template['exam']->deadline_time)) ?>
<?php 
	} else{
?> なし
<?php 
	}
?> <br>
	再受験：<?php
		if($template['exam']->retry == '1'){
?>		
			可
<?php
		}else {
?>
			不可		
<?php
		}
	
	?><br>解答・解説：
<?php
		if($template['exam']->correct == '1'){
?>		
			1問ごとに表示
<?php
		}else {
?>
			テスト終了後に表示		
<?php
		}	
?>
<br>
</div>
<br>
<div>
	このテストを受験しますか？<br>
<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Question', array('aid'=>$template['admin']->aid, "eid" => $template['exam']->eid))) ?>">はい</a><br>
<a href="<?= htmlspecialchars(TemplateUtils::createLink('Subject','List', array('aid'=>$template['admin']->aid, "sid" => $template['exam']->sid))) ?>">いいえ</a>
</div>

<br>
<div>
	<a href="<?= htmlspecialchars(TemplateUtils::createLink('Top','Index',array('aid'=>$template['admin']->aid))) ?>">TOPへ</a>
</div>
<?php
include (BASE_DIR.'templates/m_footer.tpl');
?>


