<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/teacherIndex.html}" method="post">
		<input id="libId" name="libId" type="hidden" th:value="${search.get('libId')}">
		<input id="classId" name="classId" type="hidden" th:value="${search.get('classId')}">
		<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="查询" />
			<input type="button" id="button" class="scbtn" value="导出" />
		</li>
		<li>
			<label>&nbsp;</label>
			<a th:if="${search.get('classId') ==''}" href="javascript:;" th:href="@{/sys/admin/curator/index.html(libId=${search.get('libId')})}"><input type="button" class="scbtn" value="返回" /></a>
			<a th:if="${search.get('classId') !=''}" href="javascript:;" th:href="@{/sys/admin/curator/classIndex.html(libId=${search.get('libId')})}"><input type="button" class="scbtn" value="返回" /></a>
<!--			<a th:if="${search.get('teacherId') !=''}" href="javascript:;" th:href="@{/sys/admin/curator/teacherIndex.html(libId=${search.get('libId')})}"><input type="button" class="scbtn" value="返回" /></a>-->
		</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>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
				<td th:text="${itemStat.count}" ></td>
					<td th:title="${item.name}" th:text="${item.name}">
					</td>
					<td th:text="${item.subject}" ></td>
				    <td>
						<table>
							<tr th:each="i:${item.teacherTypeList}" th:switch="${i}">
								<a href="javascript:;" th:case="2" >现场管理、</a>
								<a href="javascript:;" th:case="3" >学科答疑、</a>
								<a href="javascript:;" th:case="4" >作业标注</a>
							</tr>
						</table>
                      </td>
					<td  class="imgtd">
							<img  th:if="${item.imgUrl}!=null" th:src="${imgUrl}+''+${item.imgUrl}" class="tablelink" style="width: 50px;height: 50px;" />
					</td>
					</td>
					<td ><a href="javascript:;" th:href="@{/sys/admin/curator/classIndex.html(teacherId=${item.teacherId},libId=${search.get('libId')})}" class="tablelink">[[${item.classSum}]]</a></td>
					<td th:text="${item.phone}" ></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">
	$("#button").on('click',function(){
		document.getElementById("seachform").action = "[[${sysUrl}]]/sys/admin/curator/exportDetail";
		$("#seachform").submit();
		window.setTimeout(function(){
			document.getElementById("seachform").action = "[[${sysUrl}]]//sys/admin/curator/teacherIndex.html";
		},3000);
	});

</script>
</html>