<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="rightinfo">
	<form id="seachform" th:action="@{/sys/admin/curator/classIndex.html}" method="post">
		<input id="libId" name="libId" type="hidden" th:value="${search.get('libId')}">
		<input id="teacherId" name="teacherId" type="hidden" th:value="${search.get('teacherId')}">
		<input id="reportType" name="reportType" type="hidden" value="2">
		<ul class="seachform">
			<li>
				<label>班级名称</label>
				<input name="searchValue" type="text" class="scinput" th:value="${search.get('searchValue')}"/>
			</li>
			<li>
				<label>&nbsp;</label>
				<input type="button" class="scbtn" value="查询" />
			</li>
			<li>
				<label>&nbsp;</label>
				<a href="javascript:;" th:if="${search.get('teacherId') ==''}" th:href="@{/sys/admin/curator/index.html(libId=${search.get('libId')})}"><input type="button" class="scbtn" value="返回" /></a>
				<a href="javascript:;" th:if="${search.get('teacherId') !=''}" th:href="@{/sys/admin/curator/teacherIndex.html(libId=${search.get('libId')})}"><input type="button" class="scbtn" value="返回" /></a>
			</li>
		</ul>
	</form>

	</form>
	<table class="tablelist">
		<thead>
		    <tr>
		        <th style="width: 40px;">序号</th>
		        <th>班级名称</th>
		        <th>签到人数</th>
		        <th>学生人数</th>
		        <th>老师人数</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
				<td th:text="${itemStat.count}" ></td>
					<td th:title="${item.get('className')}" th:text="${item.get('className')}">
					</td>
					<td th:text="${item.get('signedStudentCount')}" ></td>
					<td><a href="javascript:;" th:href="@{/sys/admin/curator/studentIndex.html(classId=${item.get('classId')},libId=${search.get('libId')})}" class="tablelink">[[${item.get('studentSum')}]]</a></td>
					<td><a href="javascript:;" th:href="@{/sys/admin/curator/teacherIndex.html(classId=${item.get('classId')},libId=${search.get('libId')})}" class="tablelink">[[${item.get('teacherSum')}]]</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">


</script>
</html>