<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;
	}
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">用户管理中心</a></li>
		<li><a th:href="@{/sys/usercenter/onlineTeacherAllot.html}">作业批改任务分配</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/usercenter/onlineTeacherAllot.html}" method="post">
		<ul class="seachform">
			<li>
				<label>小孩：</label>
				<input name="LIKE_childName" type="text" class="scinput" th:value="${search.get('LIKE_childName')}"/>
			</li>
			<li>
				<label>&nbsp;</label>
				<input type="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 style="width: 141px;" >创建日期</th>
			<th>操作</th>
		</tr>
		</thead>
		<tbody>
		<tr th:each="item:${list}" >
			<!--<td class="imgtd">
				<img th:if="${item.file_key}!=null" th:src="${imgUrl}+''+${item.file_key}+'?x-oss-process=image/resize,m_lfit,h_100,w_100'" style="width: 50px;height: 50px;" />
			</td>-->
			<td th:text="${item.subject}" ></td>
			<td th:text="${item.grade}" ></td>
			<td th:text="${item.derver}" ></td>
			<!--<td th:switch="${item.is_feedback}" >
				<span th:case="0">未反馈</span>
				<span th:case="1">已反馈</span>
			</td>-->
			<td th:text="${item.child_name}" ></td>
			<td th:text="${item.parent_name}" ></td>
			<td th:text="${item.teacher_name}" ></td>
			<td style="width: 141px;" th:text="${#calendars.format(item.create_time,'yyyy-MM-dd HH:mm:ss')}" ></td>
			<td>
				<a href="javascript:;" th:onclick="'allotTeacher(\''+${item.id}+'\')'" style="margin-right: 5px; width: 346px" class="tablelink" >分配老师</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 allotTeacher(id){
        var url="./onlineTeacherList.html?id="+id;
        window.open(url, 'newwindow', 'height=530, width=900, top=200, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
    }
</script>
</html>