thymeleaf分页显示的前端界面

<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>&nbsp;
            <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>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值