码迷,mamicode.com
首页 > Web开发 > 详细

thinkphp 分页

时间:2017-05-11 18:31:08      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:prot   nbsp   als   lis   this   pre   数据   disable   ret   

 $page = $this->page($count, 20);  //每页显示20条
//$page->show(‘Admin‘)
// protected function page($total_size = 1, $page_size = 0, $current_page = 1, $listRows = 6, $pageParam = ‘‘, $pageLink = ‘‘, $static = FALSE) {
// if ($page_size == 0) {
// $page_size = C("PAGE_LISTROWS");
// }
//
// if (empty($pageParam)) {
// $pageParam = C("VAR_PAGE");
// }
//
// $page = new \Page($total_size, $page_size, $current_page, $listRows, $pageParam, $pageLink, $static);
// $page->SetPager(‘Admin‘, ‘{first}{prev}&nbsp;{liststart}{list}{listend}&nbsp;{next}{last}<span>共{recordcount}条数据</span>‘, array("listlong" => "4", "first" => "首页", "last" => "尾页", "prev" => "上一页", "next" => "下一页", "list" => "*", "disabledclass" => ""));
// return $page;
// }

thinkphp 分页

标签:prot   nbsp   als   lis   this   pre   数据   disable   ret   

原文地址:http://www.cnblogs.com/jackduan/p/6842043.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!