Welcome Guest, Not a member yet? Register   Sign In
CSS style and pagination and other problems?!
#1

[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'] = '&lt;';
         $config['prev_tag_open'] = '<div class=\"bluewhite\">';
         $config['prev_tag_close'] = '</div>';
         $config['next_link'] = '&gt;';
         $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'Wink
I have last version of CI.
And one picture to view my problems.
Best Regards :-)
#2

[eluser]Twisted1919[/eluser]
Why do you escape your values ?
When doing :
Code:
$myvar = '<a href="http://www.google.com">Link</a>';
Is no need to escape the value of $myvar , so
Code:
$config['prev_tag_open'] = '<div class=\"bluewhite\">'; // Wrong
$config['prev_tag_open'] = '<div class="bluewhite">'; //Correct
I guess this is the reason your paginations doesn't look as you want .
#3

[eluser]spezia 018[/eluser]
No, is not. This don't fix my problem.
Also I put <div id="...> and don't work.
This is BUG or ????
When I put some another class, like red font I get like this in picture ( only one number is red, links not)
In put some class for links,text,box... and don't work.
Help!
#4

[eluser]arro[/eluser]
use span to fix it..
$config['prev_tag_open'] = '<span class="bluewhite">';
$config['prev_tag_close'] = '</span>';
#5

[eluser]InsiteFX[/eluser]
Also these 2 lines are wrong!
Code:
// wrong
$pagination_config['first_link'] = 'Start';
$pagination_config['last_link'] = 'End';

// should be:
$config['first_link'] = 'Start';
$config['last_link'] = 'End';

Also you can set the class anchor like so:
Code:
$config['anchor_class'] = 'bluewhite';

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB