<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>
	<script src="sys/js/My97DatePicker/WdatePicker.js" th:src="@{/static/sys/js/My97DatePicker/WdatePicker.js}"></script>
</head>
<style>
	.tablelink{margin-right:10px;}
	.stylecss{
		color: red;
	}
	.select_width{
		width: 220px;
	}
	.date_width{
		width: 150px;
	}

	.tablelist th,td{
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	.tablelist td a{
		text-decoration: underline;
	}

</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">系统数据分析</a></li>
		<li><a href="#">教师端数据分析</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/analysis/teacher.html}" method="post">
		<input type="hidden" name="pageSize" id="pageSize" value="10" />
		<ul class="seachform">
			<li>
				<label>开始日期</label>
				<input type="text" id="date" name="date"  class="form-control scinput"  autocomplete="off"   th:value="${search.date}"  onclick="WdatePicker({dateFmt: 'yyyy-MM-dd',maxDate:'%y-%M-{%d-1}'})">
			</li>
			<li>
				<label>结束日期</label>
				<input type="text" id="date2" name="date2"  class="form-control scinput"  autocomplete="off"   th:value="${search.date2}"  onclick="WdatePicker({dateFmt: 'yyyy-MM-dd',maxDate:'%y-%M-{%d-1}'})">
			</li>
			<li>
				<label>商户名称</label>
				<input name="unitName" type="text" class="scinput" th:value="${search.unitName}"  />
			</li>
			<li>
				<input type="button" class="scbtn" value="查询" />
				<input type="button" id="button" class="scbtn" value="导出" />
			</li>
		</ul>
	</form>

	<table class="tablelist">
		<thead>
		<tr>
			<th >商户名称 </th>
			<th >机构名称 </th>
			<th >签到签离</th>
			<th >作业标注</th>
			<th >作业反馈编辑</th>
			<th >错题本</th>
			<th >定制练习 </th>
			<th >学期回顾 </th>
			<th >学习成长报告 </th>
			<th >计时</th>
			<th >作业登记本</th>
			<th >成长报告·周报</th>
			<th >成长报告·月报</th>
			<th >成长报告·学期</th>
			<th >上传作业</th>
			<th >查看批改结果</th>
		</tr>
		</thead>
		<tbody>
		<tr th:each="item:${list}" >
			<td th:title="${item.unit_name}" th:text="${item.unit_name}"></td>
			<td th:text="${item.league_name }"></td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/5.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='签到签离'  )}">
					[[${item.get('count_0')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/6.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='作业标注' )}">
					[[${item.get('count_1')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/7.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='作业反馈编辑' )}">
					[[${item.get('count_2')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/8.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='错题本' )}">
					[[${item.get('count_3')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/9.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='定制练习' )}">
					[[${item.get('count_4')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/10.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学期回顾' )}">
					[[${item.get('count_5')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/11.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_6')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/19.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_7')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/20.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_8')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/21.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_9')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/22.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_10')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/23.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_11')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/24.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_12')}]]
				</a>
			</td>
			<td >
				<a th:href="@{/sys/analysis/teacher/info/25.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='学习成长报告' )}">
					[[${item.get('count_13')}]]
				</a>
			</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">
	$(function () {
		$("#button").on('click',function(){
			document.getElementById("seachform").action = "[[${sysUrl}]]/sys/analysis/teacher/export.html";
			$("#seachform").submit();
			window.setTimeout(function(){
				document.getElementById("seachform").action = "[[${sysUrl}]]/sys/analysis/teacher.html";
			},3000);
		});
	})
</script>

</html>