<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: 70px;
	}
	.date_width{
	     width: 100px;
	}
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">图书馆管理</a></li>
		<li><a th:href="@{/sys/lib/libBookBaseList.html}">基础图书列表</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/lib/libBookBaseList.html}" method="post">
	<ul class="seachform">
		<li>
			<label>书名</label>
			<input name="title" type="text" class="scinput" th:value="${search.get('title')} == null  ? '': ${search.get('title')}"/>
		</li>
		<li>
			<label>ISBN</label>
			<input name="isbn13" type="text" class="scinput" th:value="${search.get('isbn13')} == null  ? '': ${search.get('isbn13')}"/>
		</li>
		<li>
			<label>一级主题</label>
			<input name="parentTheme" type="text" class="scinput date_width" th:value="${search.get('parentTheme')} == null  ? '': ${search.get('parentTheme')}"/>
		</li>
		<li>
			<label>二级主题</label>
			<input name="childTheme" type="text" class="scinput date_width" th:value="${search.get('childTheme')} == null  ? '': ${search.get('childTheme')}"/>
		</li>
		<li>
			<label>&nbsp;</label>
			<input type="button" class="scbtn" value="查询" />
		</li>
		<li>
				<ul class="toolbar">
					<a th:href="@{/sys/lib/libBookBaseAdd.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>isbn编码</th>
		        <th>书籍分类</th>
		        <th>关键字</th>
		        <th>一级主题</th>
		        <th>二级主题</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:text="${item.title}" ></td>
					<td th:text="${item.isbn13}" ></td>
					<td th:text="${item.bq}" ></td>
					<td th:text="${item.keyword}" ></td>
					<td th:text="${item.pname}" ></td>
					<td th:text="${item.cname}" ></td>
					<td th:text="${item.start_age}" ></td>
					<td th:text="${item.end_age}" ></td>
					<td th:text="${item.update_time}" ></td>
					<td  class="imgtd">
							<img  th:if="${item.local_image}!=null" th:src="${imgUrl}+''+${item.local_image}" style="width: 50px;height: 50px;" />
					</td>
					<td>
						<a th:href="@{/sys/lib/libBookBaseAdd.html(id=${item.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>
</body>
<script type="text/javascript">
$("#scbtnbution").on('click',function(){
	
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/lib/ajaxQrCode";
	$("#seachform").submit();
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/lib/libBookBaseList.html";
});
</script>
</html>