基本speedphp开发的模版SMARTY分页代码下载

#1 lidechun

效果图-1.jpg


<{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

#2 jake

图内的留言本挺清纯的:loveliness:

2010-07-14 13:32:37