<%@ 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" %>
	<style type="text/css">.sort{color:#0663A2;cursor:pointer;}</style>
</head>
<body>
	<%-- <%@include file="/WEB-INF/views/include/examInfoNavTabs.jsp" %> --%>
	<form id="searchForm" action="${ctx}/admin/exam-param/paper/detail" method="post" class="breadcrumb form-search">
		<input name="subjectCode" value="${subject.code}" type="hidden"/>
		<div>
			<label>科目：${subject.code}-${subject.name}</label>
			<label>客观总分：${subject.objectiveScore}</label>
			<label>主观总分：${subject.subjectiveScore}</label>
			<label>试卷总分：${subject.totalScore}</label>
			&nbsp;
			<select id="type-select" name="objective" class="input-small">
				<option value="">不限</option>
				<option value="true" <c:if test="${objective!=null && objective==true}">selected</c:if>>客观题</option>
				<option value="false" <c:if test="${objective!=null && objective==false}">selected</c:if>>主观题</option>
			</select>
			&nbsp;	
			<c:if test="${subjectPaper != null}">
				<a class="btn" href="${ctx}/admin/exam-param/subjectPaper">返回</a>
			</c:if>	
			<c:if test="${subjectPaper==null}">
				<a class="btn" href="${ctx}/admin/exam-param/paper">返回</a>
			</c:if>	
		</div>
	</form>
	<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>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${questionList}" var="question">
			<tr>
				<td>${question.mainTitle}</td>
				<td>${question.mainNumber}</td>
				<td>${question.subNumber}</td>
				<td>${question.totalScore}</td>
				<td>${question.intervalScore}</td>
				<td>${question.answer}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
<script type="text/javascript">
$('#type-select').change(function(){
	$('#searchForm').submit();
});
</script>	
</body>
</html>