<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>题库报表</title>
<%@ include file="../common/top.jsp"%>
<link rel="stylesheet" href="${ctx}/resources/css/main.css" type="text/css" />
<link rel='stylesheet' href='${ctx}/resources/css/easyui.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/css/easyui/icon.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/css/user-center-style.css' type='text/css' media='screen' />
<link href="${ctx}/resources/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/resources/css/style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${ctx}/resources/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/question/add.jsp"></script>
<script type="text/javascript" src="${ctx}/resources/js/question/list.jsp"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#searchBtn").on('click', function(){
		$("#search-form").submit();
	});
});
</script>
</head>
<body>
<div class="container-fluid">
	<%@ include file="../common/header.jsp"%>
	<div class="row-fluid">
		<%@ include file="../common/sub_menu.jsp"%>
		<div class="span10">
			<ul class="breadcrumb">
	            <li><a href="#">首页</a> <span class="divider">/</span></li>
	            <li><a href="#">题库管理 </a> <span class="divider">/</span></li>
	            <li class="active">题库统计</li>
	            <i class="fr"><a href="#" class="help-inline">返回上一层</a></i>
            </ul>
            <div class="change">
				<form id="search-form" method="post" action="${ctx}/question/dailyReport">
					<ul>
						<li><span>课程代码：</span><input class="input-medium" type="text" name="courseCode" id="courseCode" placeholder="请输入课程代码查询" value="${courseCode }" ></li>
						<li><a id="searchBtn" href="#" type="submit" class="btn"><i class="icon-search"></i> 查询</a></li>
					</ul>
				</form>
				<div class="error">
					${errorMsg }
				</div>
				<table class="table table-bordered table-striped">
					<tr>
						<th>日期</th>
						<th>录题量</th>
					</tr>
					<c:forEach var="map" items="${quesCountMapList }">
						<tr>
							<td>${map['createdDate'] }</td>
							<td>${map['count'] }</td>
						</tr>
					</c:forEach>
					<tr>
						<th>总题量</th>
						<th>${total}</th>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
</body>
</html>