<script>ec(2);</script>
class show_Pager
{
protected $_total; //记录总数
protected $pagesize; //每一页显示的记录数
public $pages; //总页数
protected $_cur_page; //当前页码
protected $offset; //记录偏移量
protected $pager_Links; //url连接
protected $pernum = 5; //页码偏移量,这里可随意更改
public function __construct($total,$pagesize,$_cur_page)
{
$this->_total=$total;
$this->pagesize=$pagesize;
$this->_offset();
$this->_pager();
$this->cur_page($_cur_page);
$this->link();
}
public function _pager()//计算总页数
{
return $this->pages = ceil($this->_total/$this->pa
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