<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: 220px;
	}
	.date_width{
	     width: 83px;
	}
	.uploadify {
    left: 1px;
   }
</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/jxy/extensionList.html}" method="post">
	<ul class="seachform">
		<li>
			<label>来源</label>
			<input name="LIKE_title" type="text" class="scinput" th:value="${search.get('LIKE_title')}"/>
		</li>
		<li>
			<label>&nbsp;</label>
			<input type="button" class="scbtn" value="查询" />
		</li>
		<li><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>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="jxy:${list}" >
				<td th:text="${jxyStat.count}"   class="usercount"></td>
				<td th:text="${jxy.get('wx_name')}"></td>
				<td  class="imgtd">
					<img  th:if="${jxy.get('photo')}!=null" th:src="${imgUrl}+''+${jxy.get('photo')}" style="width: 50px;height: 50px;" />
				</td>
				<td th:text="${jxy.get('parent_id')} "></td>
				<td th:text="${jxy.get('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>

<script type="text/javascript">
	$("#button").on('click',function(){
		document.getElementById("seachform").action = "[[${sysUrl}]]/sys/jxy/exportData";
		$("#seachform").submit();
		window.setTimeout(function(){
			document.getElementById("seachform").action = "[[${sysUrl}]]/sys/jxy/extensionList.html";
		},3000);

	});
</script>
</body>
</html>