[eluser]spezia 018[/eluser]
HI,
Sorry for my English.
I put pagination in my project. and work fine. But :
1) Do not work css style. I wont my style for pagination ( blue box, white number...).
I don't wont classic style like this
1,2,3 >>
And I make same style in, example
Quote: $config['next_link'] = '>';
$config['next_tag_open'] = '<div class=\"bluewhite\">';
$config['next_tag_close'] = '</div>';
OR
$config['next_tag_open'] = '<a >';
$config['next_tag_close'] = '</a>';
OR
echo "<H5 >".$this->pagination->create_links()."</H5>"; // where I put bluewhite css style for H5
And nothnig work. How to add my css style for items(numbers , >>,<<) for pagination????
Controllers
Code:
...
## PAGINATION ##
$config = array();
$config['base_url'] = base_url().'index.php/cms/admin/table_design/'.$orderby.'/'.$active.'/';
$config['total_rows'] = $this->Admin_page->all_design($active);
$config['per_page'] = 5;
$config['num_links'] = 8;
$pagination_config['first_link'] = 'Start';
$pagination_config['last_link'] = 'End';
$config['prev_link'] = '<';
$config['prev_tag_open'] = '<div class=\"bluewhite\">';
$config['prev_tag_close'] = '</div>';
$config['next_link'] = '>';
$config['next_tag_open'] = '<div class=\"bluewhite\">';
$config['next_tag_close'] = '</div>';
$config['full_tag_open'] = '<div id="menu">';
$config['full_tag_close'] = '</div>';
// podesavanje stila linkova
$config['uri_segment'] = 6;
// Initialize pagination
$this->pagination->initialize($config);
## END of PAGINATION ##
$data['design']=$this->Admin_page->design_table($orderby,$active,$config['per_page'],$this->uri->segment($config['uri_segment']));
// pagination links before return data from base
$data['center']="cms/design_table";
$this->load->view('cms/cms',$data);
View
Code:
...
echo "<H5 >".$this->pagination->create_links()."</H5>";
...
2) And Why I don't have in my page -> Start and End ( $pagination_config['first_link'] = 'Start';
$pagination_config['last_link'] = 'End'
I have last version of CI.
And one picture to view my problems.
Best Regards :-)