<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: 100px;
	}
	.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/correctUserList.html}">批改角色列表</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/usercenter/correctUserList.html}" method="post">
		<ul class="seachform">
			<li>
				<label>名字：</label>
				<input name="LIKE_value" type="text" class="scinput" th:value="${search.get('LIKE_value')}"/>
			</li>
			<li>
				<label>角色：</label>
				<select class="scinput select_width"  name="type" th:switch="${search.get('type')}" >
					<option value=""  th:selected="${ search.get('type') eq '' }"  >全部</option>
					<option value="8" th:selected="${ search.get('type') eq '8' }"  >批改老师</option>
					<option value="13" th:selected="${ search.get('type') eq '13' }" >匹配老师</option>
					<option value="11" th:selected="${ search.get('type') eq '11' }" >学习管理员</option>
					<option value="14" th:selected="${ search.get('type') eq '14' }" >质检员</option>
					<option value="12" th:selected="${ search.get('type') eq '12' }" >超级管理员</option>
				</select>
			</li>
			<li>
				<label>是否在线：</label>
				<select class="scinput select_width"  name="isOnline" th:switch="${search.get('isOnline')}" >
					<option value=""  th:selected="${ search.get('isOnline') eq '' }"  >全部</option>
					<option value="0" th:selected="${ search.get('isOnline') eq '0' }"  >离线</option>
					<option value="1" th:selected="${ search.get('isOnline') eq '1' }" >在线</option>
				</select>
			</li>
			<li>
				<label>是否封号：</label>
				<select class="scinput select_width"  name="isBanned" th:switch="${search.get('isBanned')}" >
					<option value=""  th:selected="${ search.get('isBanned') eq '' }"  >全部</option>
					<option value="0" th:selected="${ search.get('isBanned') eq '0' }"  >正常</option>
					<option value="1" th:selected="${ search.get('isBanned') eq '1' }" >封号</option>
				</select>
			</li>
			<li>
				<label>是否注销：</label>
				<select class="scinput select_width"  name="isCancelled" th:switch="${search.get('isCancelled')}" >
					<option value=""  th:selected="${ search.get('isCancelled') eq '' }"  >全部</option>
					<option value="0" th:selected="${ search.get('isCancelled') eq '0' }"  >正常</option>
					<option value="1" th:selected="${ search.get('isCancelled') eq '1' }" >注销</option>
				</select>
			</li>
			<li>
				<label>&nbsp;</label>
				<input type="button" class="scbtn" value="查询" />
			</li>
		</ul>
	</form>
	<table class="tablelist">
		<thead>
		<tr>
			<th hidden>userId</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 hidden th:text="${item.userId}" ></td>
			<td th:text="${item.name}" ></td>
			<td  class="imgtd">
				<img  th:if="${item.tPhoto}!=null" th:src="${imgUrl}+''+${item.tPhoto}+'?x-oss-process=image/resize,m_lfit,h_100,w_100'" style="width: 50px;height: 50px;" />
			</td>
			<td th:text="${item.telephone}" ></td>
			<td th:switch="${item.type}" >
				<span th:case="8">批改老师</span>
				<span th:case="11">学习管理员</span>
				<span th:case="12">超级管理员</span>
				<span th:case="13">匹配老师</span>
				<span th:case="14">质检员</span>
			</td>
			<td th:switch="${item.isOnline}" >
				<span th:case="0">离线</span>
				<span th:case="1">在线</span>
			</td>
			<td th:switch="${item.isBanned}" >
				<span th:case="0">正常</span>
				<span th:case="1">已封号</span>
			</td>
			<td th:switch="${item.isCancelled}" >
				<span th:case="0">正常</span>
				<span th:case="1">已注销</span>
			</td>
			<td style="width: 141px;" th:text="${#calendars.format(item.createTime,'yyyy-MM-dd HH:mm:ss')}" ></td>
			<!--<td>
				<a th:href="@{/sys/usercenter/teacherDetail.html(id=${item.id})}" 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">

</script>
</html>