public function reportedNonReportedProvinceAction() { $province = $this->_request->getParam("province"); $date = $this->_request->getParam("date"); $item = $this->_request->getParam("item"); $wh_data = new Model_WarehousesData(); $params["date"] = $date; $params["item"] = $item; $params["province"] = $province; $wh_data->form_values = $params; $xmlstore = $wh_data->reportedNonReportedByProvince(); $this->view->xmlstore = $xmlstore; $caption = "Districts Reporting Rate By Union Councils"; $xml = $wh_data->getReportedLocationProvince(); $xmlstore2 = "<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) { $xmlstore2 .= "<set label='{$row['districtName']}' value='{$row['perVal']}' />"; } $xmlstore2 .= "</chart>"; $this->view->xmlstore2 = $xmlstore2; }