<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>评卷员一览</title>
	<meta name="decorator" content="default"/>
	<%@include file="/WEB-INF/views/include/head.jsp" %>
</head>
<body>
	<ul class="nav nav-tabs">
		<li ><a href="${ctx}/admin/exam/mark">评卷进度</a></li>
		<li class="active"><a href="${ctx}/admin/exam-param/markerInfo">评卷员一览</a></li>
	</ul>
	<form id="searchForm" action="${ctx}/admin/exam-param/markerInfo" method="post" class="breadcrumb form-search">
		<input type="hidden" id="pageNumber" name="pageNumber" value="${query.pageNumber }"/>
		<input type="hidden" id="pageSize" name="pageSize" value="${query.pageSize }"/>
		<div>
			<label>姓名</label>
            <input type="text" name="name" value="${query.name}"  maxlength="10" class="input-small"/>
			<label>登录名</label>
            <input type="text" name="loginName" value="${query.loginName }"  maxlength="50" class="input-small"/>
			<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
		</div>
	</form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>姓名</th>
				<th>登录名</th>
				<th>分配课程</th>
				<th>完成课程</th>
				<th>完成数量</th>
				<th>最高分</th>
				<th>最低分</th>
				<th>平均分</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${MarkerDTOs}" var="MarkerDTO">
			<tr>
                <td>${MarkerDTO.name}</td>
                <td>${MarkerDTO.loginName}</td>
                <td>${MarkerDTO.subjectCount}</td>
                <td>${MarkerDTO.finishedCount}</td>
                <td>${MarkerDTO.markedCount}</td>
                <td>${MarkerDTO.maxScore}</td>
                <td>${MarkerDTO.minScore}</td>
                <td>${MarkerDTO.avgScore}</td>
                <td>
                    <a href="${ctx}/admin/exam-param/markerInfo/detail?markerId=${MarkerDTO.markerId}">详情</a>
                </td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${query}</div>
<script type="text/javascript">
function page(n,s){
	$("#pageNumber").val(n);
	$("#pageSize").val(s);
	$("#searchForm").submit();
	return false;
}
function goSearch(){
	$("#pageNumber").val(1);
	$("#pageSize").val('${query.pageSize}');
	$("#searchForm").submit();
	return false;
}
</script>
</body>
</html>