您好,欢迎访问一九零五行业门户网

五分页类_PHP教程

infocount = $infocount; $this->items = $items; $this->pageno = $pageno; $this->pagecount = $this->getpagecount(); $this->adjustpageno(); $this->startpos = $this->getstartpos(); } function adjustpageno() { if($this->pageno == || $this->pageno pageno = 1; if ($this->pageno > $this->pagecount) $this->pageno = $this->pagecount; } /** * 下一页 */ function gotonextpage() { $nextpageno = $this->pageno + 1; if ($nextpageno > $this->pagecount) { $this->nextpageno = $this->pagecount; return false; } $this->nextpageno = $nextpageno; return true; } /** * 上一页 */ function gotoprevpage() { $prevpageno = $this->pageno - 1; if ($prevpageno prevpageno = 1; return false; } $this->prevpageno = $prevpageno; return true; } function getpagecount() { return ceil($this->infocount / $this->items); } function getstartpos() { return ($this->pageno - 1) * $this->items; } } ?>
http://www.bkjia.com/phpjc/532123.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/532123.htmltecharticleinfocount = $infocount; $this->items = $items; $this->pageno = $pageno; $this->pagecount = $this->getpagecount(); $this->adjustpageno(); $this->startpos = $this->getstartpos(); } f...
其它类似信息

推荐信息