Welcome Guest, Not a member yet? Register   Sign In
Pagination Style
#3

[eluser]Uresh Patel[/eluser]
I solve issue by doing like ....create a separate method for Admin pagination and will call to every method where it required.

Code:
function paginationConfig($total_rows,$uri_segment,$base_url){
    //paging
    $this->load->library('pagination');
    $config['base_url'] = base_url() . $base_url;
    $config['total_rows'] = $total_rows;
    $config['per_page'] = 5;
    $config['uri_segment'] = 4;
    $base_urlpath = base_url();
    $config['first_link']   = '‹ First';
    $config['next_link']   = "<img src='".$base_urlpath."public/backend/images/next.png' />";
    $config['prev_link']   = "<img src='".$base_urlpath."public/backend/images/previous.png' />";
    $config['last_link']   = 'Last &rsaquo;';
    $config['full_tag_open']  = '';
    $config['full_tag_close']  = '';
    $config['first_tag_open']  = '';
    $config['first_tag_close']  = '&nbsp;';
    $config['last_tag_open']  = '&nbsp;';
    $config['last_tag_close']  = '';
    $config['first_url']   = ''; // Alternative URL for the First Page.
    $config['cur_tag_open']   = '&nbsp;<strong>';
    $config['cur_tag_close']  = '</strong>';
    $config['next_tag_open']  = '&nbsp;';
    $config['next_tag_close']  = '&nbsp;';
    $config['prev_tag_open']  = '&nbsp;';
    $config['prev_tag_close']  = '';
    $config['num_tag_open']   = '&nbsp;';
    $config['num_tag_close']  = '';

    $config['display_pages'] = FALSE;

    $this->pagination->initialize($config);
  }


Messages In This Thread
Pagination Style - by El Forum - 08-12-2013, 02:56 AM
Pagination Style - by El Forum - 08-12-2013, 04:26 AM
Pagination Style - by El Forum - 08-12-2013, 04:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB