<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;
	}
	
	.tablelist th,td{
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">系统数据分析</a></li>
		<li><a href="#">学生端数据分析</a></li>
		<li><a href="#" style="color: red">[[${param.title}]]</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/analysis/student/info/${search.type}.html}" method="post">
	<input type="hidden" name="pageSize" id="pageSize" value="10" />
	<ul class="seachform">
			
			<li>
			 <label>学生姓名</label>
			  <input name="name" type="text" class="scinput" th:value="${search.name}"  />
		    </li>
			<li>
				<input type="hidden" name="libId" id="libId" th:value="${search.libId}" >
				<input type="hidden" name="type" id="type" th:value="${search.type}">
				<input type="hidden" name="date" id="date" th:value="${search.date}">
				<input type="hidden" name="date2" id="date2" th:value="${search.date2}">
				
				<input type="button" class="scbtn" value="查询" />
				<input type="button" id="button" class="scbtn" value="导出" />
			</li>
			
			<li>
				<p style="text-align: right;margin-right: 1%;">
	    		<a href="javascript:;" th:href="@{/sys/analysis/student.html(date=${search.date},date2=${search.date2})}"><input type="button" class="scbtn" value="返回" /></a>
	    		</p>
    		</li>
			
	</ul>
	</form> 

	<table class="tablelist">
		<thead>
		    <tr>
		    	<th >序号</th>
		    	<th >vipId</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.vip_id}" th:text="${item.vip_id}"></td>
				<td th:text="${item.wx_name}"></td>
				<td >
					<img alt="" th:if="${item.photo!=null}" th:src="${imgUrl+item.photo}" style="width: 30px">
				</td>
				<td th:text="${item.parent_name}"></td>
				<td th:text="${item.child_name}"></td>
				<td th:text="${item.create_time}"></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 () {
	$("#button").on('click',function(){
		document.getElementById("seachform").action = "[[${sysUrl}]]/sys/analysis/student/info/[[${search.type}]]/export.html?title=[[${param.title}]]";
		$("#seachform").submit();
		window.setTimeout(function(){
			document.getElementById("seachform").action = "[[${sysUrl}]]/sys/analysis/student/info/[[${search.type}]].html";
		},3000);
	});
})
</script>

</html>