public function index() { $this->load->helper('site/site_forms_helper'); $result = $this->site_model->get_tbl('user_roles'); $th = array('Username', 'Name', 'Role', 'Date Registered', 'Inactive'); $data = $this->syter->spawn('user'); $data['code'] = create_rtable('users', 'id', 'users-tbl', $th, null, false, 'grid'); $data['load_js'] = 'site/admin'; $data['use_js'] = 'usersListJs'; $data['page_no_padding'] = true; // $data['sideBarHide'] = true; $this->load->view('page', $data); }
public function roles() { $this->load->helper('site/site_forms_helper'); $result = $this->site_model->get_tbl('user_roles'); $th = array('ID', 'Name', 'Description', 'Access', ''); $data = $this->syter->spawn('roles'); $data['code'] = create_rtable('user_roles', 'id', 'user_roles-tbl', $th, null, false, 'list'); $data['page_title'] = fa('fa-suitcase') . " Roles"; $data['load_js'] = 'site/admin'; $data['use_js'] = 'rolesListJs'; $data['page_no_padding'] = true; // $data['sideBarHide'] = true; $this->load->view('page', $data); }