首页 > 代码库 > phpcms list页实现分页

phpcms list页实现分页

 {pc:content action="lists" catid="41" order="id ASC" num="1" moreinfo="1" page="$page"}  //num="1";page="$page"-->实现分页
                {loop $data $key $val}
                <div class="grid_3">
        <div class="box ic5">
            <div class="maxheight">
                 <h3>{$val["title"]}</h3>
                <div class="xiangmu1"><img src="http://www.mamicode.com/{$val[‘thumb‘]}" width="100%" height="90%"/></div>
                    <p style="text-align:left">
                {$val["content"]}
                </p>
                    <!--<a href="http://www.mamicode.com/#" class="btn">read more</a> -->
            </div>
        </div>
    </div>
                {/loop}
                {/pc}
    
    <div id="pages">{$pages}</div>        //显示页数的div
    

 

phpcms list页实现分页