<?php
/**
 * 单词列表
 * $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
 * @author zhouhj
 * @access public
 * @package manager.templates
 */

?>
<b>用户试卷详细</b><br />
<br /><br />
<div id="result_list">
	<table>
		<tr>
			<th class="contents_title" width="15%">答题时间</th>
			<th class="contents_title" width="10%">姓名</th>
			<th class="contents_title" width="10%">试卷类型</th>
			<th class="contents_title" width="15%">试卷名称</th>
			<th class="contents_title" width="10%">回答正确</th>
			<th class="contents_title" width="10%">回答错误</th>
			<th class="contents_title" width="10%">得分</th>
			<th class="contents_title">操作</th>
		</tr>

		<?
			if (count($user_examination_mst_list) > 0) {
				foreach ($user_examination_mst_list as $user_examination_mst) {
					$user_mst = UserMst::getById($user_examination_mst->user_id);
					$examination_mst = ExaminationMst::getById($user_examination_mst->examination_mst_id);
					//试卷类型
					$type_title = "练习模式";
					if($examination_mst->type == "TEST") {
						$type_title = "考试模式";
				}
		?>
				<tr>
					<td align="center"><?=$user_examination_mst->registration_date ?></td>
					<td align="center"><?=$user_mst->nickname ?></td>
					<td align="center"><?=$type_title ?></td>
					<td align="center"><?=$examination_mst->title ?></td>
					<td align="center"><?=$user_examination_mst->right_count ?></td>
					<td align="center"><?=$user_examination_mst->wrong_count ?></td>
					<td align="center"><?=$user_examination_mst->point ?></td>
					<td align="center">
						<a class="flatbutton" href="user_examination_detail.php?ueid=<?=$user_examination_mst->id ?>">详细</a>
					</td>
				</tr>
				<?
			}
		}
		?>
	</table>
</div>