示例

WBOY
WBOYOriginal
2016-06-21 09:12:151263browse

示例

//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']?>

            
<?print_r ($data)?>


        



  



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn