if ($value['buss_name_detail'] == '') { unset($data['result'][$key]); // if($key == 0) // $data['result'][0] = current($data['result']); // var_dump(current($data['result'])); continue; } $tmp['name'][] = $value['buss_name_detail']; $tmp['value'][] = $value['num']; } $data['chartName'] = $tmp['name'] ? '"' . implode('","', $tmp['name']) . '"' : ''; $data['chartValue'] = $tmp['value'] ? implode(',', $tmp['value']) : ''; } // rsort($tmp['wan']); $start_date = $param['start_date'] = $_GET['start_date'] = $_GET['start_date'] ? $_GET['start_date'] : date('Y-m'); $row_count = Complaint::baseSingleCount($param); // $data['month'] = Complaint::customAnalayzeMonth($param); // $data['provinces'] = Complaint::customAnalayzeArea($param); $province = Info::getProvince(); foreach ($province as $key => $value) { $data['provinceMap'][$key] = $value['name']; } $data['provinceString'] = '"' . implode('","', $data['provinceMap']) . '"'; // } $data['province'] = Info::getProvince(false); $data['complaintType'] = Info::getComplaintType('complaint_type', false); $data['questionType'][1] = Info::getQuestionType(1, 'question_type', true); $data['questionType'][2] = Info::getQuestionType(2, 'question_type', true); $data['questionType'][3] = Info::getQuestionType(3, 'question_type', true); $data['complaintLevel'] = Info::getComplaintLevel('complaint_level', false); $data['bussLine'] = Info::getBussLine('buss_type', false);