permission->is_admin(); //$this->output->enable_profiler(TRUE); $this->load->model('Groupinfo_model'); $this->load->model('User_model'); } public function index() { echo 'ok'; } public function checkunback() { $data = array(); $passVeiSn = $this->input->get_post("veisn"); if (!empty($passVeiSn)){ $vei_sn = $this->input->get_post('veisn'); } else { $vei_sn = $this->permission->admin()->LMI_VEI_SN; } $check_day_start = date("Y-m-d", strtotime("-3 month")); $check_day_end = date("Y-m-d", strtotime("-1 month")); $group_list = $this->Groupinfo_model->get_eva_objectinfo(100, false, false, $vei_sn, false, false, null, " EOI_Date between '$check_day_start' and '$check_day_end' ", ' EOI_Date ASC '); if (empty($group_list)) { $data[] = array('name' => 'no', 'value' => 'all feedback is sumbit'); } else { $feedbackstring=''; foreach ($group_list as $item){ //$feedbackstring=$feedbackstring."$item->groupname$item->EOI_DateEOI_SN&GSN=$item->EOI_GRI_SN','MainBodyFrame');\" >查看"; $feedbackstring=$feedbackstring."$item->groupname$item->EOI_DateEOI_GRI_SN/$item->EOI_SN','MainBodyFrame');\" >查看"; } $data[] = array('name' => 'yes', 'value' => $feedbackstring); } echo json_encode($data); } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */