<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;
	}
	.stylecss2{
		  color:blue;
	}
	.select_width{
	     width: 80px;
	}
	.date_width{
	     width: 100px;
	}
	.stylecss{
	      color: red;
	}
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">图书馆心愿书单管理</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/lib/libWishList.html}" method="post">
		<ul class="seachform">
		<li>
			<label>图书馆名称</label>
			<input name="lib_name" type="text" class="scinput" th:value="${search.get('lib_name')} == null  ? '': ${search.get('lib_name')}"/>
		</li>
		<li>
			<label>&nbsp;</label>
			<input type="button" class="scbtn" value="查询" />
		</li>
		  	<li>
				<input type="button" id="button" style="width: 100px;" class="scbtnbution" value="导出心愿达成表" />
			</li>
		</ul>
	</form>
	<table class="tablelist">
		<thead>
		    <tr>
		        <th style="width: 50px;">序号</th>
		        <th>图书馆</th>
		        <th>心愿发起人</th>
		        <th>心愿助力数</th>
		        <th>心愿书籍名称</th>
		        <th>心愿书籍isbn</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
				<td th:text="${itemStat.count}" ></td>
					<td  th:text="${item.get('league_name')}"></td>
					<td  th:text="${item.get('child_name')}"></td>
					<td  th:text="${item.get('count1')}"></td>
					<td  th:text="${item.get('title')}"></td>
					<td  th:text="${item.get('isbn13')}"></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(){
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/report/exportWishOrder";
	$("#seachform").submit();
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/lib/libWishList.html";
});
</script>
</html>