摘要:
pagination.php$v) { $this->{$k} = $v; } $this->init($this->page, $this->pagesize, $this->rowsTotal); } public function init($page=1, $pageSize=5, $total_rows=5) { $this->page = $page = $page 300 ? 300:$count;//条目总数 $this->pageTotal = $pageTotal = ceil($total_rows/$pageSize);//总页 阅读全文
摘要:
private function getQuerystr($url,$key){ $res = ''; $a = strpos($url,'?'); if($a!==false){ $str = substr($url,$a+1); $arr = explode('&',$str); foreach($arr as $k=>$v){ $tmp = explode('=',$v); if(!empty($tmp[0]) && !empty($tmp[1])){ $barr[$tmp[0]] = $tmp 阅读全文