<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>私塾家</title>
<script th:include="sys/common/metaCSS" th:remove="tag"></script> 
<script th:include="sys/common/metaJS" th:remove="tag"></script> 
</head>
<style>
	.tablelink{margin-right:10px;}
	.stylecss{
	      color: red;
	}
	.select_width{
	     width: 70px;
	}
	.date_width{
	     width: 100px;
	}
	td div{
     word-break:break-all;
	}
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">KMT</a></li>
		<li><a href="#">试卷库</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/kmtExampaper/exampaperList.html}" method="post">
	 <input id="url" name="url" type="hidden">
	<ul class="seachform">
		<li>
		<label>课程</label>
					<select class="scinput select_width" name="EQ_subject" id="EQ_subject">
					     <option value=""  th:selected="${ search.get('EQ_subject') eq '' }"  >全部</option>
						 <option  th:each="sort:${zyb_course}"  th:value="${sort.name}"  th:if="${sort.name ne '总体'}" th:selected="${ search.get('EQ_subject')  eq sort.name }" th:text="${sort.name}" ></option>
					</select>
		</li>
		<li>
		<label>年级</label>
					<select class="scinput select_width" name="EQ_grade" id="EQ_grade">
					     <option value=""    >全部</option>
						 <option  th:each="sort:${grade}"  th:value="${sort.aliases}"   th:selected="${ sort.aliases  eq search.get('EQ_grade')  }"     th:text="${sort.name}" ></option>
					</select>
		</li>
		<li>
		<label>学期</label>
					<select class="scinput select_width" name="EQ_semester" id="EQ_semester" >
					     <option value=""    >全部</option>
					      <option value="1"  th:selected="${ search.get('EQ_semester') eq '1' }"  >上学期</option>
						 <option  value="2"  th:selected="${ search.get('EQ_semester') eq '2' }" >下学期</option>
					</select>
		</li>
		<li>
			<label>&nbsp;</label>
			<input type="button" class="scbtn" value="查询" />
		</li>
		<li>
			<ul class="toolbar">
				<a href="javascript:;"  th:href="@{/sys/kmtExampaper/exampaperEdit.html}"  >
				<li class="click"><span><img th:src="@{/static/sys/images/t01.png}" /></span>新增</li></a>
			</ul>
		</li>
	</ul>
	</form>
	<table class="tablelist">
		<thead>
		    <tr>
		        <th style="width: 40px;">序号</th>
		        <th>年份</th>
		        <th>城市</th>
		        <th>区</th>
		        <th>学校</th>
		        <th>学期</th>
		        <th>类型</th>
		        <th>科目</th>
		        <th>年级</th>
		        <th>自定义值</th>
		        <th style="text-align: center;">操作</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
				<td th:text="${itemStat.count}" ></td>
					<td th:text="${item.year}"></td>
					<td th:text="${item.city}" ></td>
					<td th:text="${item.area}" ></td>
					<td th:text="${item.school}"></td>
					<td th:switch="${item.semester}" >
					    <a href="javascript:;" th:case="1" >上学期</a>
					    <a href="javascript:;" th:case="2" >下学期</a>
					</td>
					<td th:switch="${item.type}" >
					    <a href="javascript:;" th:case="1" >单元</a>
					    <a href="javascript:;" th:case="2" >期末</a>
					</td>
					<td th:text="${item.subject}" ></td>
					<td th:text="${item.grade}"></td>
					<td th:text="${item.addStr}"></td>
					<td>
					  <div>
						<a th:href="@{/sys/kmtExampaper/exampaperEdit.html(id=${item.id})}"  class="tablelink">修改</a>
						<a th:href="@{/sys/kmtExampaper/main.html(areaId=${item.id})}"  class="tablelink">试卷题号</a>
					  </div>
				    </td>
				
			</tr>
		</tbody>
	</table>
	<!-- 分页 -->
	<div class="pagin">
    	<div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录，当前显示第&nbsp;<i class="blue">[[${page.pageNo }]]&nbsp;</i>页</div>
    	<div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
   	</div>
</div>
</body>
<script type="text/javascript">
</script>
</html>