function arclist() {
$this->load->model('blog');
$offset = $this->uri->rsegment(3);
if($offset==NULL){
$offset=0;
}
$num_all=$this->blog->blog_select_count();
$this->load->library('pagination');
$config['base_url'] = site_url().'/admin/arcticle/arclist/'; //admin是后台的目录
$config['total_rows'] = $num_all;
$config['per_page'] = '3';
$config['uri_segment'] = 3;
$config['first_link'] = '首页';
$config['last_link']='尾页';
$config['next_link'] = '下一页';
$config['prev_link'] = '上一页';
$config['cur_tag_open'] = '<b>';
$config['cur_tag_close'] = '</b>';
$this->pagination->initialize($config);
$arr['page']=$this->pagination->create_links();
$blog = $this->blog->blog_select_all($config['per_page'], $offset);
$arr['blog'] = $blog;
$this->load->view("admin/arcticle", $arr);
}