{if $_config.phpui.short_pagescroller|chkconfig} {t}Page:{/t} {if $page > 1}«««{/if} {math assign=lastpage equation="ceil(x/y)" x=$listdata.total y=$pagelimit} {if $page == $lastpage}{math assign=scroller_start equation="max(0,x-3)*y" x=$page y=$pagelimit} {elseif $page > 1 && $page < $lastpage}{math assign=scroller_start equation="max(0,x-2)*y" x=$page y=$pagelimit}{/if} {section name=pcnt loop=$loop step=$pagelimit start=$scroller_start|default:0 max=3} {math assign=cnt equation="ceil(x/y)+z" x=$scroller_start|default:0 y=$pagelimit z=$smarty.section.pcnt.rownum} {if $page eq $cnt}[{else}{/if}{$cnt}{if $page eq $cnt}]{else}{/if} {/section} ... {if $lastpage != $page}{/if}[{$lastpage}]{if $lastpage != $page}{/if} {if $page < $lastpage} »»»{/if} {math equation="x + 1" x=$start assign=startx} {if $start + $pagelimit > $listdata.total}{assign var=endx value=$listdata.total}{else}{math equation="x + y" x=$start y=$pagelimit assign=endx}{/if} ({t 0=$startx 1=$endx 2=$listdata.total}records $0 - $1 of $2{/t}) {if $lastpage > 3} {if !$scrollerno}
{/if} {/if} {else} {t}Page:{/t} {if $page > 1}«««{else}«««{/if} {section name=pcnt loop=$loop step=$pagelimit} {if $page eq $smarty.section.pcnt.rownum}[{else}{/if}{$smarty.section.pcnt.rownum}{if $page eq $smarty.section.pcnt.rownum}]{else}{/if} {/section} {if $page < $smarty.section.pcnt.rownum} »»»{else} »»»{/if} {math equation="x + 1" x=$start assign=startx} {if $start + $pagelimit > $listdata.total}{assign var=endx value=$listdata.total}{else}{math equation="x + y" x=$start y=$pagelimit assign=endx}{/if} ({t 0=$startx 1=$endx 2=$listdata.total}records $0 - $1 of $2{/t}) {/if}