application/controllers/apps/report/cash_flow.php
// Set array for PAGINATION LIBRARY, and show view data according to page.
Set array for PAGINATION LIBRARY, and show view data according to page.
Set array for PAGINATION LIBRARY and show view data according to page .
public function Saldo(){
	$config = array();
	$config["base_url"] = base_url() . "index.php/pagination_controller/contact_info";
	$total_row = $this->M_Report->record_count_Saldo();
	$config["total_rows"] = $total_row;
	$config["per_page"] = 1;
	$config['use_page_numbers'] = TRUE;
	$config['num_links'] = $total_row;
	$config['cur_tag_open'] = '&nbsp;<a class="current">';
	$config['cur_tag_close'] = '</a>';
	$config['next_link'] = 'Next';
	$config['prev_link'] = 'Previous';
	$this->pagination->initialize($config);
	if($this->uri->segment(3)){
	$page = ($this->uri->segment(3)) ;
	}
	else{
	$page = 1;
	}
	$data["results"] = $this->M_Report->fetch_data_saldo($config["per_page"], $page);
	$str_links = $this->pagination->create_links();
	$data["links"] = explode('&nbsp;',$str_links );
	$data['main']='template/report/saldo'; 
	$this->load->view('template/main_layout',$data);
	}
public function Saldo ( ) { $ config = array ( ) ; $ config [ " base_url " ] = base_url ( ) . " index.php/pagination_controller/contact_info " ; $ total_row = $ this -> M_Report -> record_count_Saldo ( ) ; $ config [ " total_rows " ] = $ total_row ; $ config [ " per_page " ] = 1 ; $ config [ 'use_page_numbers' ] = TRUE ; $ config [ 'num_links' ] = $ total_row ; $ config [ 'cur_tag_open' ] = '&nbsp;<a class="current">' ; $ config [ 'cur_tag_close' ] = '</a>' ; $ config [ 'next_link' ] = 'Next' ; $ config [ 'prev_link' ] = 'Previous' ; $ this -> pagination -> initialize ( $ config ) ; if ( $ this -> uri -> segment ( 3 ) ) { $ page = ( $ this -> uri -> segment ( 3 ) ) ; } else { $ page = 1 ; } $ data [ " results " ] = $ this -> M_Report -> fetch_data_saldo ( $ config [ " per_page " ] , $ page ) ; $ str_links = $ this -> pagination -> create_links ( ) ; $ data [ " links " ] = explode ( '&nbsp;' , $ str_links ) ; $ data [ 'main' ] = 'template/report/saldo' ; $ this -> load -> view ( 'template/main_layout' , $ data ) ; }
Set array for PAGINATION LIBRARY, and show view data according to page.
Set array for PAGINATION LIBRARY and show view data according to page .
// View data according to array.