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

	<div id="main_block">
		<h2>テスト情報</h2>
		<div class="exam_info_l">
			<table>
				<tr>
					<th>状態：</th>
					<td>
<?php
	if($template['reply_flug'] == "1"){
?>	
					受験済
<?php
	}else if($template['reply_flug'] == "2"){
?>	
					<font color="red">受験中</font>
<?php
	}else if($template['reply_flug'] == "0"){
?>	
					<font color="red">未受験</font>
<?php
	}
?>
					</td>
				</tr>
				<tr>
					<th>配信：</th>
					<td><?= date("Y年m月d日 H時i分s秒", strtotime($template['exam']->publish_time)) ?></td>
				</tr>
				<tr>
					<th>問題数：</th>
					<td><?= $template['count'] ?>問</td>
				</tr>
				<tr>
					<th>満点：</th>
					<td><?= $template['points'] ?>点</td>
				</tr>
				<tr>
					<th>締切：</th>
					<td>
<?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 
	}
?> 
					</td>
				</tr>
				<tr>
					<th>再受験：</th>
					<td>
<?php
		if($template['exam']->retry == '1'){
?>		
					可
<?php
		}else {
?>		
					不可		
<?php
		}	
?>
					</td>
				</tr>
				<tr>
					<th>解答・解説：</th>
					<td>	
<?php
		if($template['exam']->correct == '1'){
?>		
					1問ごとに表示
<?php
		}else {
?>
					テスト終了後に表示		
<?php
		}
?>
					</td>
				</tr>
			</table>
		</div><!-- exam_info_l -->						
	</div><!-- main_block -->	

	<div id="main_block">
		<a href="<?= htmlspecialchars(TemplateUtils::createLink('Exam','Question', array('aid'=>$template['admin']->aid, "eid" => $template['exam']->eid))) ?>" class="operation">
			受験する</a>　
		<a href="<?= htmlspecialchars(TemplateUtils::createLink('Subject','List', array('aid'=>$template['admin']->aid, "sid" => $template['exam']->sid))) ?>" class="operation">
			受験しない</a>
	</div>

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


