public function ajaxReportedNonReportedProvinceAction() { $data_arr = explode('|', $this->_request->getParam('param')); $province = $data_arr[0]; $item = $data_arr[1]; $date = $data_arr[2]; $type = $data_arr[3]; $wh_data = new Model_WarehousesData(); $params["date"] = $date; $params["item"] = $item; $params["province"] = $province; $wh_data->form_values = $params; if ($type == 1) { $caption = "Districts Reporting Rate By Union Councils"; $xml = $wh_data->getReportedLocationProvince(); } else { $caption = "Districts Non Reporting Rate By Union Councils"; $xml = $wh_data->getNonReportedLocationProvince(); } $xmlstore = "<chart yAxisMaxValue='100' exportEnabled='1' exportAction='Download' caption='{$caption}' exportFileName='Reporting Status " . date('Y-m-d H:i:s') . "' numberSuffix='%' showValues='1' theme='fint'>"; foreach ($xml as $row) { $xmlstore .= "<set label='{$row['districtName']}' value='{$row['perVal']}' />"; } $xmlstore .= "</chart>"; $this->view->xmlstore = $xmlstore; }