日期:2011-12-27 浏览次数:20453 次
- function pagestring($count, $pagesize, $wap=false) {
- $p = new Pager($count, $pagesize, 'page');
- if ($wap) {
- return array($pagesize, $p->offset, $p->genWap());
- }
- return array($pagesize, $p->offset, $p->genBasic());
- }
- pagestring文件
- <?php
- class Pager{
- public $rowCount = 0;
- public $pageNo = 1;
- public $pageSize = 20;
- public $pageCount = 0;
- public $offset = 0;
- public $pageString = 'page';
- private $script = null;
- private $valueArray = array();
- public function __construct($count=0, $size=20, $string='page')
- {
- $this->defaultQuery();
- $this->pageString = $string;
- $this->