首页 > 代码库 > thinkphp 分页

thinkphp 分页

 $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 分页