苹果cms视频列表分页制作

{if condition="$__PAGING__.record_total gt 0"}    
共{$__PAGING__.record_total}条数据,当前{$__PAGING__.page_current}/{$__PAGING__.page_total}页

{maccms:foreach name="$__PAGING__.page_num" id="num"}
        {if condition="$__PAGING__['page_current'] eq $num"}
        <a class="page_link page_current" href="javascript:;" title="第{$num}页">{$num}</a>
        {else}
        <a class="page_link" href="{$__PAGING__.page_url|mac_url_page=$num}" title="第{$num}页" >{$num}</a>
        {/if}
        {/maccms:foreach}
        
        {$__PAGING__.page_url|mac_url_page=1} 首页 
        {$__PAGING__.page_url|mac_url_page=$__PAGING__.page_prev} 上一页 
        {$__PAGING__.page_url|mac_url_page=$__PAGING__.page_next} 下一页
        {$__PAGING__.page_url|mac_url_page=$__PAGING__.page_total} 尾页 

{else/}

{/if}

© 版权声明
THE END
喜欢就支持一下吧
点赞11
评论 抢沙发

请登录后发表评论

    暂无评论内容