Ejemplo n.º 1
0
 public function institute_list($offset = 0)
 {
     $data['web_title'] = "Institute List";
     $params = array();
     $embedString = "";
     $data['keyword'] = '';
     if ($this->input->get('q')) {
         $data['keyword'] = $params['keyword'] = urldecode($this->input->get('q'));
         $embedString = "?q=" . $params['keyword'];
     }
     $params['count'] = true;
     $count = $this->model_license->getLicense($params);
     //pagination area
     $config = $this->configpagination;
     $config['base_url'] = site_url('admin/institute_list');
     $config['uri_segment'] = 3;
     $config['total_rows'] = $count;
     $config['per_page'] = $this->per_page;
     $config['num_links'] = 5;
     $this->load->library('pagination', $config);
     $data['pagination'] = $this->pagination->create_links();
     $data['pagination'] = embedSuffixInPaging($embedString, $data['pagination']);
     $params['limit'] = $this->per_page;
     $params['offset'] = $offset;
     $data['offset'] = $offset;
     unset($params['count']);
     $data['lists'] = $this->model_license->getLicense($params);
     $this->displayView('admin/institute_list', $data);
 }
Ejemplo n.º 2
0
 public function student_strength()
 {
     $data['active_module_parent_id'] = $this->parent_module_id;
     $data['web_title'] = "Student Class Strength";
     $params = array();
     $embedString = $data['keyword'] = "";
     if ($this->input->get('q')) {
         $data['keyword'] = $params['keyword'] = urldecode($this->input->get('q'));
         $embedString = "?q=" . $params['keyword'];
     }
     $params['count'] = true;
     $count = $this->model_student->getStudent($params);
     unset($params['count']);
     //pagination area
     $config = $this->configpagination;
     $config['base_url'] = site_url('student/student_list');
     $config['uri_segment'] = 3;
     $config['total_rows'] = $count;
     $config['per_page'] = $this->per_page;
     $config['num_links'] = 5;
     $this->load->library('pagination', $config);
     $data['pagination'] = $this->pagination->create_links();
     $data['pagination'] = embedSuffixInPaging($embedString, $data['pagination']);
     $params['limit'] = $this->per_page;
     unset($params['count']);
     // $student_strength = $this->getCount();
     $data['lists'] = $this->getCount();
     $this->displayView('student/student_strength', $data);
 }
Ejemplo n.º 3
0
 public function employee_list($offset = 0)
 {
     if (!is_moduleAllowed($this->session->userdata('group_id'), 'employee/employee_list')) {
         redirect('home');
     }
     $license_id = $this->session->userdata('license_id');
     $data['active_module_parent_id'] = $this->parent_module_id;
     $data['web_title'] = "Employee List";
     $params['license_id'] = $license_id;
     $params['single'] = true;
     $data['getLicense'] = $this->model_license->getLicense($params);
     if (count($data['getLicense']) == 0) {
         redirect('home');
     }
     $params = array();
     $embedString = $data['keyword'] = "";
     if ($this->input->get('q')) {
         $data['keyword'] = $params['keyword'] = urldecode($this->input->get('q'));
         $embedString = "?q=" . $params['keyword'];
     }
     $params['license_id'] = $license_id;
     $params['count'] = true;
     $count = $this->model_user->getUser($params);
     unset($params['count']);
     //pagination area
     $config = $this->configpagination;
     $config['base_url'] = site_url('employee/employee_list');
     $config['uri_segment'] = 3;
     $config['total_rows'] = $count;
     $config['per_page'] = $this->per_page;
     $config['num_links'] = 5;
     $this->load->library('pagination', $config);
     $data['pagination'] = $this->pagination->create_links();
     $data['pagination'] = embedSuffixInPaging($embedString, $data['pagination']);
     $params['limit'] = $this->per_page;
     $params['offset'] = $offset;
     $data['offset'] = $offset;
     unset($params['count']);
     $data['lists'] = $this->model_user->getUser($params);
     $this->displayView('employee/employee_list', $data);
 }