Ejemplo n.º 1
0
 function philhealth_sched()
 {
     $data['page_name'] = '<b>Philhealth Schedule</b>';
     $data['msg'] = '';
     $p = new Philhealth_sched();
     $this->load->library('pagination');
     $config['base_url'] = base_url() . 'payroll/remittance/philhealth_sched/';
     $config['total_rows'] = $p->get()->count();
     $config['per_page'] = '30';
     $this->pagination->initialize($config);
     // How many related records we want to limit ourselves to
     $limit = $config['per_page'];
     // Set the offset for our paging
     $offset = $this->uri->segment(3);
     // Get all positions
     //$p = new Position();
     $p->order_by('salary_bracket');
     $data['deductions'] = $p->get($limit, $offset);
     $data['main_content'] = 'remittance/philhealth_sched/philhealth_sched';
     return View::make('includes/template', $data);
 }