上一页 上一页 {eval $index = 1;} {eval $count = 8;} {eval $start = $page['index'] - ($count/2) > 1 ? $page['index'] - ($count/2) : 1;} {eval $end = $start +($count-1) > $page['count'] ? $page['count']: $start +($count-1);} {if $start >1} 1 {if $start != 2} ... {/if} {/if} {if $v >= $start && $v <= $end} {$v} {$v} {/if} {/if} {if $end < $page['count']} {if $end != ($page['count']-1)} ... {/if} {$page['count']} {/if} 下一页 下一页