|
$pagesize=20;
$total=$this->db->count_all('blog_list');
$this->load->model('blog/listpage','list');
preg_match("/index.php/.*?/(d.*)/",$_SERVER['PHP_SELF'],$tt);
if($tt){
$page=$tt[1];
}
else{
$page=1;
}
$this->showpage->showPage($total,$pagesize);
$start=$this->showpage->getStart();
$data['query']=$this->list->list_page($start,$pagesize);
foreach($data['query'] as $key=>$value){
$data['query'][$key]['time']=date("Y-m-d H:i:s",$value['time']);
}
$data['page']=$this->showpage->getContent();
$this->parser->parse('blog/log_list',$data);
红色的是什么意思??? |
|