Survey
<#macro message code>${springMacroRequestContext.getMessage(code)}#macro> <@cms.surveyList pageIndex=pageIndex pageSize=10>- 
    <#list page.list as a>
            
- 
                [<@message 'page.survey.type.'+a.surveyType/>] ${a.title!}${a.votes!} votes,end on:${(a.endDate)!} ${a.description!} #list>
- 
            <#assign
                url=site.dynamicPath+'surveyList.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>
            
- Previous page <#if start gt 1>
- 1
- ... #if> <#list start..end as n>
- ${n} #list> <#if end lt page.totalPage>
- ...
- ${page.totalPage} #if>
- Next page