<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;
	}
</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/finance/littleShuAllList.html}" method="post">
	<ul class="seachform">
			<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>
				<th>本月结存</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
					<td th:text="${itemStat.count}"></td>
					<td th:text="${item.get('months')}"></td>
					<td th:text="${item.get('last_left')}"></td>
					<td th:text="${item.get('add_total')}"></td>
					<td th:text="${item.get('cost_count')}"></td>
					<td th:text="${item.get('this_left')}"></td>
			</tr>
		</tbody>
	</table>

</div>
</body>
<script type="text/javascript">
	$("#button").on('click',function(){
		$("#reportType").val(5);
		document.getElementById("seachform").action = "[[${sysUrl}]]/sys/finance/export1";
		$("#seachform").submit();
		window.setTimeout(function(){
			document.getElementById("seachform").action = "[[${sysUrl}]]/sys/finance/littleShuAllList.html";
		},3000);
	});
</script>


</html>