示例_PHP
程序员文章站
2022-05-16 14:15:56
...
//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();
?>
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']?> |
||
|