<#macro paginate currentPage totalPage actionUrl delUrl="" urlParas=""> <#if (totalPage <= 0) || (currentPage > totalPage)><#return> <#local startPage = currentPage - 4> <#if (startPage < 1)><#local startPage = 1> <#local endPage = currentPage + 4> <#if (endPage > totalPage)><#local endPage = totalPage> <#if delUrl != "">
共${page.totalRows}条，共${page.totalPages}页记录
<#if (currentPage <= 8)> <#local startPage = 1> <#if ((totalPage - currentPage) < 8)> <#local endPage = totalPage> <#if (currentPage == 1)>
<#else>
<#if (currentPage > 8)>
… <#list startPage..endPage as i> <#if currentPage == i> #{i} <#else>
<#if ((totalPage - currentPage) >= 8)> …
<#if (currentPage == totalPage)>
<#else>