/** * ajax change manager parent content */ public function ajax_change_parent() { $return_struct = array('status' => 0, 'code' => 501, 'msg' => 'Not Implemented'); if (request::is_ajax()) { $manager_id = role::manager_id(); $id_str = $this->input->post('id_str'); $managers = Mymanager::instance()->subs($manager_id); $return_template = $this->template = new View('template_blank'); $this->template->content = new View('manage/manager_change_parent'); $this->template->content->managers = $managers; $this->template->content->id_str = $id_str; $return_str = $return_template->render(); $return_struct['status'] = 1; $return_struct['code'] = 200; $return_struct['msg'] = 'Success'; $return_struct['content'] = $return_str; exit(json_encode($return_struct)); } }