投票列表
<@cms.voteList pageIndex=pageIndex pageSize=10>-
<#list page.list as a>
-
${a.title}
${a.description}
<#if .now gt a.endDate && a.scores gt 0><#assign show=true/><#else><#assign show=false/>#if> <@cms.voteItemList voteId=a.id pageSize=3>-
<#list page.list as v>
- #list>
#list>
<#assign
url=site.dynamicPath+'votelist.html'
start=1
end=page.totalPage
/>
<#if (page.pageIndex-5) gt start>
<#assign start=page.pageIndex-4/>
#if>
<#if (page.pageIndex+5) lt end>
<#assign end=page.pageIndex+4/>
#if>
<#if !page.firstPage>
上一页
<#else>
上一页
#if>
<#if start gt 1>
1 ...
#if>
<#list start..end as n>
<#if n=page.pageIndex>
${n}
<#else>
${n}
#if>
#list>
<#if end lt page.totalPage>
... ${page.totalPage}
#if>
<#if !page.lastPage>
下一页
<#else>
下一页
#if>
@cms.voteList>