首页 >后端开发 >php教程 >示例_PHP教程

示例_PHP教程

WBOY
WBOY原创
2016-07-13 17:12:30850浏览

//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)?>

        


    

www.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, $...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn