[#assign p=page/] [#if p.totalPage gt 1]
< ษฯาปาณ [#if p.totalPage gt 7] [#if (p.pageNo gt 5) && (p.pageNo lt p.totalPage-2)] 1 2 ... [#list p.pageNo-2..p.pageNo as i] ${i} [/#list] [#elseif p.pageNo gt p.totalPage-3] 1 2 ... [#list p.totalPage-4..p.pageNo as i] ${i} [/#list] [#else] [#list 1..p.pageNo as i] ${i} [/#list] [/#if] [#if (p.pageNo gt 3) && (p.pageNo lt p.totalPage-4)] [#list p.pageNo+1..p.pageNo+2 as i] ${i} [/#list] ... ${p.totalPage-1} ${p.totalPage} [#elseif p.pageNo lt 4] [#list p.pageNo+1..5 as i] ${i} [/#list] ... ${p.totalPage-1} ${p.totalPage} [#else] [#if p.totalPage gt p.pageNo] [#list p.pageNo+1..p.totalPage as i] ${i} [/#list] [/#if] [/#if] [#else] [#list 1..p.totalPage as i] ${i} [/#list] [/#if] ฯยาปาณ >
[/#if]