{math assign=lastpage equation="ceil(x/y)" x=$listdata.total y=$pagelimit} {if $page > 1} {if $listdata.ajax} {else} {/if} {else} < {/if} {if $page < $lastpage} {if $listdata.ajax} {else} {/if} {else} {/if} {if $page == $lastpage} {math assign=scroller_start equation="max(0,x-10)*y" x=$page y=$pagelimit} {elseif $page > 1 && $page < $lastpage} {math assign=scroller_start equation="max(0,x-9)*y" x=$page y=$pagelimit} {/if} {if $page != 1} {if $listdata.ajax} [01] {else} [01] {/if} {else}[01] {/if}... {section name=pcnt loop=$loop step=$pagelimit start=$scroller_start|default:0 max=10} {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 $listdata.ajax} {else} {/if} {/if} {$cnt|string_format:"%02.d"} {if $page eq $cnt}]{else}{/if} {/section} ... {if $lastpage != $page} {if $listdata.ajax}{else}{/if} {/if}[{$lastpage|string_format:"%02.d"}]{if $lastpage != $page}{/if} {if $page > 1} {if $listdata.ajax} {else} {/if} {else} < {/if} {if $page < $lastpage} {if $listdata.ajax} {else} {/if} {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 a=$startx b=$endx c=$listdata.total}records $a - $b of $c{/t}) {if $lastpage > 10} {if !$scrollerno}
{/if} {if $listdata.id}{/if} {if $listdata.type}{/if} {if $listdata.state}{/if} {if $listdata.kind}{/if} {if $listdata.customer}{/if} {if $listdata.order}{/if} {if $scrollerno} {t a=""}Go to $a page{/t} »»» {else} {t a=""}Go to $a page{/t} »»»
{/if} {/if} {if $page > 1} {if $listdata.ajax} {else} {/if} {else} < {/if} {if $page < $lastpage} {if $listdata.ajax} {else} {/if} {else} {/if}