<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
<html>
<head>
<metahttp-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control"content="no-cache">
<metahttp-equiv="expires"content="0">
</head>
<body>
<h1>pageCount=${pageUtil.pageCount}</h1>
<h1>currentPage=${pageUtil.currentPage}</h1>
<#macropaginationpageCounttotalCounturipageIndex>
<#if(pageCount>1)>
<#if(pageIndex>1)>
<ahref="${uri}¤tPage=1"title="首页"><<</a>
</#if>
<#--如果前面页数过多,显示"..."-->
<#if(pageIndex>5)>
<#assignprevPages=pageIndex-9>
<#ifprevPageslt1>
<#assignprevPages=1>
</#if>
<#assignstart=pageIndex-4>
<ahref="${uri}¤tPage=${prevPages}"title="向前5页">...</a>
<#else>
<#assignstart=1>
</#if>
<#--显示当前页附近的页-->
<#assignend=pageIndex+4>
<#if(end>pageCount)>
<#assignend=pageCount>
</#if>
<#liststart..endasindex>
<#ifpageIndex==index>
<b>${index}</b>
<#else>
<ahref="${uri}¤tPage=${index}">${index}</a>
</#if>
</#list>
<#--如果后面页数过多,显示"...":-->
<#if(endltpageCount)>
<#assignendend=end+5>
<#if(end>pageCount)>
<#assignend=pageCount>
</#if>
<ahref="${uri}¤tPage=${end}"title="向后5页">...</a>
</#if>
<#--显示"下一页":-->
<#if(pageIndexltpageCount)>
<ahref="${uri}¤tPage=${pageCount}"title="末页">>></a>
</#if>
<#else>
nothing
</#if>
</#macro>
<@paginationpageCount=pageUtil.pageCounttotalCount=pageUtil.totalCounturi=pageUtil.partUrlpageIndex=pageUtil.currentPage/>
</body>
</html>