* @copyright pergoLAB :: 2010-07-13 * @version 2.0 - only working with MYSQL stored procedure * */ class Pager { /** @var string :: URL prefix */ public $prefix; /** @var string :: Previous button text */ private $prevtext; /** @var string :: Next button text */ private $nexttext; /** @var integer :: Current page */ public $this_page; /** @var integer :: Total Items */ public $num_total; /** @var integer :: Total pages */ private $num_pages; /** * Construct parameters * * @query string :: The MySQL query string * @amount :: Maximum items / page to display * @pagername :: The pager name on GET parameter */ function __construct($numtotal = NULL, $amount = NULL, $thispage = NULL, $prevtext = NULL, $nexttext = NULL) { $this->this_page = intval($thispage); $this->num_total = $numtotal; $this->num_pages = ceil($this->num_total/$amount); $this->prevtext = $prevtext; $this->nexttext = $nexttext; } private function print_page_nums($start, $limit) { $ret = ''; for ($i=$start; $i <= $limit; $i++) { if ($i != $this->this_page) { /*if($i == 1) $ret .= "\r\n\t\t\t\tprefix."\" class=\"active\">$i";*/ $ret .= "\r\n\t\t\t\t
  • prefix."$i\">$i
  • "; } else $ret .= "\r\n\t\t\t\t
  • $i
  • "; } return $ret; } private function generate_nav() { $ret = ""; return $ret; } public function parse_nav() { return $this->generate_nav(); } } ?>
    Fatal error: Uncaught Error: Class 'Pager' not found in /var/www/vhosts/ply.inwebdev.hu/httpdocs/pages/documents.php:42 Stack trace: #0 /var/www/vhosts/ply.inwebdev.hu/httpdocs/_init/header.php(61): include() #1 /var/www/vhosts/ply.inwebdev.hu/httpdocs/_init/_init.php(13): require('/var/www/vhosts...') #2 /var/www/vhosts/ply.inwebdev.hu/httpdocs/index.php(8): include('/var/www/vhosts...') #3 {main} thrown in /var/www/vhosts/ply.inwebdev.hu/httpdocs/pages/documents.php on line 42