Changeset 838 for pro-violet-viettel/sourcecode/application/modules/admin/controllers/collaborator.php
- Timestamp:
- Mar 27, 2015 9:49:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/controllers/collaborator.php
r690 r838 9 9 parent::__construct(); 10 10 $this->load->helper('cookie'); 11 $this->load->helper('language'); 12 $this->lang->load('messages', 'message'); 11 13 } 12 14 … … 25 27 $this->load->helper('pagging'); 26 28 $this->load->model('collabolator_model'); 29 $provinces = lang('_PROVINCES_'); 27 30 $data['current_page'] = $this->uri->segment(4, 1); 28 31 $data['itemsoptions'] = array(10, 25, 50, 100); … … 62 65 $data['start'] = ($data['current_page'] - 1) * $data['perpage']; 63 66 $data['total'] = $this->collabolator_model->countCollaborator($data); 64 $data['collaborators'] = $this->collabolator_model->getCollaborators($data); 67 68 $collaborators = $this->collabolator_model->getCollaborators($data); 69 foreach ($collaborators as $index => $collaborator){ 70 $collaborator ['province'] = isset($provinces[$collaborator ['province']]) ? $provinces[$collaborator ['province']] : $collaborator ['province']; 71 $collaborators[$index] = $collaborator; 72 } 73 $data['collaborators'] = $collaborators; 65 74 66 75 $data['paging_url'] = base_url() . "/admin/cong_tac_vien/trang/";
Note: See TracChangeset
for help on using the changeset viewer.