<table border="1" cellspacing="0">
<tr>
<th>姓名</th>
<th>电话</th>
<th>箱数</th>
<th>重量</th>
<th>95%W</th>
<th>单价</th>
<th>总价</th>
<th>日期</th>
<th>状态</th>
<th>操作</th>
</tr>
<tr th:each="bill:${billList}">
<td th:text="${bill.userName}"></td>
<td th:text="${bill.phone}"></td>
<td th:text="${bill.boxes}"></td>
<td th:text="${bill.weight}"></td>
<td th:text="${bill.lWeight}"></td>
<td th:text="${bill.uPrice}"></td>
<td th:text="${bill.mPrice}"></td>
<td th:text="${bill.date}"></td>
<td th:text="${bill.type}"></td>
<td>
<a th:href="@{/billUpdate(id=${bill.bId})}">修改</a>
<a th:href="@{/billDelete(id=${bill.bId})}">删除</a>
</td>
</tr>
<tr>
<!--
thymeleaf th:href 多个参数传递格式
<a th:href="@{/Controller/behavior(param1=1,param2=${person.id})}"></a>
-->
<!--
<a th:href="@{/product/deleteVersion/{id}(id=${app.id},redirect='android.html')}"></a>
@RequestMapping("/getAllBillInf/{currentPage}")
public String getAllBillInf(Model model, @PathVariable String currentPage){
int currentPag = Integer.parseInt(currentPage)
}
-->
<!--
<a th:href="@{'/pagecontroller?pageNum='+${pageNum}}" th:text="${pageNum}"></a>
@requestMAPPing(value = "/pageController",method = RequestMethod.GET)
public String pageController(Model model, HttpServletRequest request){
String pageNum = request.getparameter("pageNum");
}
-->
<td colspan="9">
共<span th:text="${page.totalPage }"/>页,<span th:text="${page.totalDataCount }"/>条记录
<a th:href="@{/getAllBillInf/{currentPage}(currentPage=1)}">首页</a>
<a th:if="${page.currentPage}!=1" th:href="@{/getAllBillInf/{currentPage}(currentPage=${page.currentPage}-1)}">上一页</a>
<a th:if="${page.currentPage}==1" th:href="@{/getAllBillInf/{currentPage}(currentPage=1)}">上一页</a>
<a th:if="${page.currentPage}!=${page.totalPage}" th:href="@{/getAllBillInf/{currentPage}(currentPage=${page.currentPage}+1)}">下一页</a>
第<span th:text="${page.currentPage }"/>页
<a th:if="${page.currentPage}==${page.totalPage}" th:href="@{/getAllBillInf/{currentPage}(currentPage=${page.totalPage})}">下一页</a>
<a th:href="@{/getAllBillInf/{currentPage}(currentPage=${page.totalPage})}">尾页</a>
</td>
</tr>
</table>