摘要: 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);//总页 阅读全文
posted @ 2013-10-30 10:29 kwishly 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-10-30 09:53 kwishly 阅读(1006) 评论(0) 推荐(0) 编辑