<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;
	}
</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/bookList/vipDerverList.html}" method="post">
	  <input type="hidden" name="type" id="reportType" />
	<ul class="seachform">
			
			<li>
				<label>学生姓名</label>
				<input type="text" id="childName" name="childName" th:value="${search.get('childName')}" class="scinput date_width " placeholder="学生姓名">
			</li>
			<li>
				<label>学员卡号</label>
				<input type="text" id="vipFlow" name="vipFlow" th:value="${search.get('vipFlow')}" class="scinput date_width " placeholder="学生卡号(精确查询)">
			</li>
			<li>
				<label>设备号</label>
				<input type="text" id="derver" name="derver" th:value="${search.get('derver')}" class="scinput date_width " placeholder="设备号(精确查询)">
			</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 style="width: 50px;">序号</th>
				<th>设备号</th>
		    	<th>学生姓名</th>
		    	<th>学校</th>
		    	<th>年级</th>
				<th>电话</th>
				<th>会员卡号</th>
				<th>imei号</th>
				<th>sim卡</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
					<td th:text="${itemStat.count}"></td>
					<td th:text="${item.get('derver')}"></td>
					<td th:text="${item.get('child_name')}"></td>
					<td th:text="${item.get('school')}"></td>
					<td th:text="${item.get('grade')}"></td>
					<td th:text="${item.get('phone')}"></td>
					<td th:text="${item.get('flow_id')}"></td>
					<td th:text="${item.get('imei')}"></td>
					<td th:text="${item.get('simcard')}"></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(){
		$("#reportType").val(5);
		document.getElementById("seachform").action = "[[${sysUrl}]]/sys/bookList/vipDerverExport";
		$("#seachform").submit();
		window.setTimeout(function(){
			document.getElementById("seachform").action = "[[${sysUrl}]]/sys/bookList/vipDerverList.html";
		},3000);
	});
</script>


</html>