作者:印度神油两性a | 来源:互联网 | 2017-05-13 02:31
示例。?phpif(!$pageID)$pagePager.php);$params[itemData]range(1,180);$pager$data$pager-getPageData();$links$pager-getLinks(上页,下页);list($from,$
//if(!$pageID)$pageID=1;
include('Pager.php');
$params['itemData'] = range(1, 180);
$pager =& new Pager($params);
$data = $pager->getPageData();
$links = $pager->getLinks("<<上页","下页>>");
list($from, $to) = $pager->getOffsetByPageId();
?>
显示 [=$from?> - =$to?>] 条记录,共=$pager->_totalItems?>条记录
=$links['pages']?> |
=$links['back']?> |
|
=$links['next']?> |
|
http://www.bkjia.com/PHPjc/629395.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/629395.htmlTechArticle?php //if(!$pageID)$pageID=1; include('Pager.php'); $params['itemData'] = range(1, 180); $pager = $data= $pager-getPageData(); $links = $pager-getLinks(上页,下页); list($from, $...