function course()
 {
     $data['page_name'] = '<b>Training Course</b>';
     $data['msg'] = '';
     $this->load->library('pagination');
     $course = new Training_course();
     $config['base_url'] = base_url() . 'training_manage/course';
     $config['total_rows'] = $course->count();
     $config['per_page'] = '15';
     $this->config->load('pagination', TRUE);
     $pagination = $this->config->item('pagination');
     // We will merge the config file of pagination
     $config = array_merge($config, $pagination);
     $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);
     $course->order_by('course_title');
     if (Input::get('training_type_id') != 0) {
         $course->where('training_type_id', Input::get('training_type_id'));
     }
     $data['rows'] = $course->get($limit, $offset);
     $data['page'] = $this->uri->segment(3);
     $data['main_content'] = 'course';
     return View::make('includes/template', $data);
 }