Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Student_fee_status extends CI_Controller {
- function index($id){
- $this->load->library('pagination');
- $config['base_url'] = site_url().'Student_fee_status/index/'.$id;
- $this->db->select('*');
- $this->db->from('studentpayment1');
- $this->db->where('studentid', $id);
- $query = $this->db->get('');
- $numrows=$query->num_rows();
- $config['total_rows'] = $numrows;
- $config['per_page'] = 2;
- $config['uri_segment'] = '2';
- $config['num_links'] = 20;
- $config['full_tag_open'] = '<div class="pagination" align="center">';
- $config['full_tag_close'] = '</div>';
- $this->pagination->initialize($config);
- $this->load->model('Mod_student_fee_status');
- $data['records']= $this->Mod_student_fee_status->fee_status($id,$config['per_page'],$config['uri_segment']);
- $data['main_content']='view_student_fee_status';
- $this->load->view('includes/template',$data);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement