Advertisement
Guest User

Student_fee_status

a guest
Nov 28th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. class Student_fee_status extends CI_Controller {
  2.  
  3. function index($id){
  4.  
  5. $this->load->library('pagination');
  6.  
  7. $config['base_url'] = site_url().'Student_fee_status/index/'.$id;
  8.  
  9. $this->db->select('*');
  10. $this->db->from('studentpayment1');
  11.  
  12. $this->db->where('studentid', $id);
  13.  
  14. $query = $this->db->get('');
  15. $numrows=$query->num_rows();
  16.  
  17. $config['total_rows'] = $numrows;
  18. $config['per_page'] = 2;
  19. $config['uri_segment'] = '2';
  20. $config['num_links'] = 20;
  21. $config['full_tag_open'] = '<div class="pagination" align="center">';
  22. $config['full_tag_close'] = '</div>';
  23. $this->pagination->initialize($config);
  24.  
  25.  
  26. $this->load->model('Mod_student_fee_status');
  27. $data['records']= $this->Mod_student_fee_status->fee_status($id,$config['per_page'],$config['uri_segment']);
  28.  
  29.  
  30. $data['main_content']='view_student_fee_status';
  31. $this->load->view('includes/template',$data);
  32.  
  33. }
  34.  
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement