<%@ 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>
	<form id="searchForm" action="${ctx}/admin/exam-param/markerInfo/detail" 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 }"/>
		<input type="hidden" id="markerId" name="markerId" value="${query.markerId }"/>
		<div>
            <label>科目：</label>
            <select id="subject-select" name="subjectCode">
                <option value="">请选择</option>
                <c:forEach items="${subjectList}" var="subject">
                    <option value="${subject.code}" <c:if test="${subject.code==query.subjectCode}">selected</c:if>>${subject.code}-${subject.name}</option>
                </c:forEach>
            </select>
			<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
			&nbsp;&nbsp;
			<a href="${ctx}/admin/exam-param/markerInfo" class="btn">返回</a>
		</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>--%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${MarkerDTOs}" var="MarkerDTO">
			<tr>
                <td>${MarkerDTO.subjectName}</td>
                <td>${MarkerDTO.subjectCode}</td>
                <td>${MarkerDTO.markedCount}</td>
                <%--<td>${MarkerDTO.rejectCount}</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>