public function get() { $actionxm = $this->get_request('actionxm'); $result = array(); switch ($actionxm) { case 'search': $params = $this->input->post('rs'); $order = get_datagrid_order(); $page = get_datagrid_page(); $result = $this->def_model->search($params, $order, $page); echo json_encode($result); break; case 'details': $id = $this->get_request('id'); $result = $this->def_model->get_detail($id); echo $result; break; case 'getUserList': $this->load->model('recept_regist_model', 'rrModel'); $result = $this->rrModel->getCustomerJSON(); echo json_encode($result); break; case 'getPackageList': $this->load->model('package_model', 'pModel'); $result = $this->pModel->getPackageJSON(); echo json_encode($result); break; } }
public function get() { $actionxm = $this->get_request('actionxm'); $result = array(); switch ($actionxm) { case 'search': $params = $this->input->post('rs'); $order = get_datagrid_order(); $page = get_datagrid_page(); $result = $this->def_model->search($params, $order, $page); break; } echo json_encode($result); }
public function get() { $actionxm = $this->get_request('actionxm'); $result = array(); switch ($actionxm) { case 'search': $params = $this->input->post('rs'); $order = get_datagrid_order(); $page = get_datagrid_page(); $result = $this->def_model->ledger_search($params, $order, $page); echo json_encode($result); break; case 'details': $id = $this->get_request('id'); $result = $this->def_model->get_detail($id, true); echo $result; break; } }
public function get() { $actionxm = $this->get_request('actionxm'); $result = array(); switch ($actionxm) { case 'user-search': $this->load->model('sys/user_model'); $params = $this->input->post('rs'); $order = get_datagrid_order(); $page = get_datagrid_page(); $result = $this->user_model->search($params, $order, $page); break; case 'menu-search': $this->load->model('sys/menu_model'); $result = $this->menu_model->search(); break; case 'search': $user_id = $this->input->post('user_id'); $result = $this->def_model->search($user_id); break; } echo json_encode($result); }