<#include "./header.ftl" parse=true encoding="utf-8">
新闻中心
<#-- 新闻分类 --> <#list columnList as column> <#if column_index == sort>
${column.columnName}
<#else> ${column.columnName}
<#-- 新闻列表--> <#list newsList as news>
${news.day}
${news.year?substring(news.year?length - 2)}-${news.month}
${news.title}
${news.digest!""}...
<#-- 判断是否有上一页--> <#if (currentPage > 1)>
<#-- 当前页大于5,显示1和... --> <#if (currentPage > 5)> <#assign start=currentPage-2> 1 ... <#else > <#assign start=1> <#-- 显示当前页附近的页--> <#assign end=currentPage+2> <#if (end>totalPage)> <#assign end = totalPage> <#list start..end as index> <#if index == currentPage> ${index} <#else> ${index} <#-- 到最后一页相差超过5,显示...--> <#if ((totalPage-currentPage)>5)> ... ${totalPage}
<#-- 判断是否有下一页--> <#if (currentPage < totalPage)>
<#include "./footer.ftl" parse=true encoding="utf-8">