<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: 83px;
	}
</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/problem/validViplist2.html}" method="post">
	<ul class="seachform">
		<li>
				<label>图书馆</label>
					<select class="scinput select_width"  name="libId"   style="width: 220px;" >
						<option value=""   >全部</option>
						<option th:each="item:${libList}"  th:value="${item.id}"  th:selected="${ search.get('libId') eq item.id }"  th:text="${item.leagueName}"></option>
					</select>
			</li>
			 <li>
				<label>开始时间</label>
				<input type="text" id="beginDate" name="beginDate"  onclick="WdatePicker({readOnly:true,maxDate:'#F{$dp.$D(\'endDate\')}'})" th:value="${search.beginDate }" class="scinput date_width " placeholder="开始时间">
			</li>
			
			
			<li>
				<label>结束时间</label>
				<input type="text" id="endDate" name="endDate"  onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginDate\')}',maxDate:'%y-%M-%d'})" th:value="${search.endDate }" class="scinput date_width" placeholder="结束时间">
			</li>
		<li>
			<input type="button" class="scbtn" value="查询" />
		</li>
		<li>
			<input type="button" id="button" style="width: 100px;" class="scbtnbution" value="导出明细" />
		</li>
		<li>
				<ul class="toolbar">
		<a th:href="@{/sys/problem/validViplist.html}"><li class="click"><span><img th:src="@{/static/sys/images/t01.png}" /></span>切换为家庭图书馆</li></a>
				</ul>
		</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>作业卡年卡</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="validViplist:${list}" >
				<td th:text="${validViplistStat.count}" ></td>
				<td th:text="${validViplist.get('league_name')}"></td>
				<td th:text="${validViplist.get('vip_total')}"></td>
				<td th:text="${validViplist.get('family')}"></td>
				<td th:text="${validViplist.get('year_card')}"></td>
				<td th:text="${validViplist.get('halfyear_card')}"></td>
				<td th:text="${validViplist.get('weekend_card')}"></td>
				<td th:text="${validViplist.get('taskyear_card')}"></td>
				<td>
				<!--	<a th:href="@{/sys/problem/addexperience.html(id=${experiencelist.get('id')})}" class="tablelink" >修改</a>-->
				 <!--   <a href="javascript:;" th:onclick="'deleteById(\''+${experiencelist.get('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>
<script type="text/javascript">
$("#button").on('click',function(){
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/report/exportValidVip2";
	$("#seachform").submit();
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/problem/validViplist2.html";
});
</script>