public function listinfo($options = array(), $page = 1, $pagesize = 20) { $options['table'] = $this->tablePrefix . $this->tablename; $count = $this->count($options); $page = max(intval($page), 1); $offect = $pagesize * ($page - 1); $options['limit'] = "limit {$offect},{$pagesize}"; $array = array(); if ($count > 0) { $array[] = $this->select($options); //利用页码类获取页码 $yemas = tcphp\page::page(); $array[] = $yemas; return $array; } else { return false; } }
public function page() { $page = new \tcphp\page("1000"); echo $page->show(); $_SESSION['name'] = 'asdsdsdsdsds'; }