#1 lidechun
<{if $pager}>
共有留言<{$pager.total_count}>条,共有<{$pager.total_page}>页(每页<{$pager.page_size}>条留言):
<{if $pager.current_page != $pager.first_page}>
前页 |
上一页 |
<{/if}>
<{foreach from=$pager.all_pages item=thepage}>
<{if $thepage >= $pager.current_page-5 and $thepage <= $pager.current_page+5}>
<{if $thepage != $pager.current_page}>
<{$thepage}>
<{else}>
<{$thepage}>
<{/if}>
<{elseif $thepage <= 11 and $thepage >= $pager.current_page-5}>
<{if $thepage != $pager.current_page}>
<{$thepage}>
<{else}>
<{$thepage}>
<{/if}>
<{elseif $thepage >= $pager.last_page-10 and $thepage <= $pager.current_page-5}>
<{if $thepage != $pager.current_page}>
<{$thepage}>
<{else}>
<{$thepage}>
<{/if}>
<{else}>
<{/if}>
<{/foreach}>
<{if $pager.current_page != $pager.last_page}>
|
下一页 |
后页
<{/if}>
<{/if}>
感谢 haoxue.cc分享
2010-07-14 12:26:20