function finish() { reportico_report::finish(); $this->debug("HTML End **"); if ($this->line_count < 1) { $this->soapresult = new soap_fault('Server', 100, "No Data Returned", "No Data Returned"); } else { $this->soapdata = array("ReportTitle" => $this->reporttitle, "ReportTime" => date("Y-m-d H:I:s T"), $this->soapdata); $this->soapresult = new soapval('reportReturn', 'ReportDeliveryType', $this->soapdata, 'http://reportico.org/xsd'); } }
function finish() { reportico_report::finish(); $len = strlen(json_encode($this->results)); if (ob_get_length() > 0) { ob_end_clean(); } header('Cache-Control: no-cache, must-revalidate'); header('Content-Type: application/json'); header("Content-Length: {$len}"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Disposition: attachment; filename=reportico.json'); echo json_encode($this->results); die; }
function finish() { reportico_report::finish(); $xmlroot = preg_replace("/\\.xml\$/", "", $this->query->xmloutfile); $xml = $this->arrayToXML($this->results, new SimpleXMLElement('<' . $xmlroot . '/>'))->asXml(); $len = strlen($xml); if (ob_get_length() > 0) { ob_end_clean(); } header('Cache-Control: no-cache, must-revalidate'); header('Content-Type: text/xml'); header("Content-Length: {$len}"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Disposition: inline; filename=reportico.xml'); echo $xml; die; }
function finish() { reportico_report::finish(); //if ( $this->line_count < 1 ) //{ //// No CSV data found just return //return; //} if ($this->report_file) { $this->debug("Saved to {$this->report_file}"); } else { $this->debug("No csv file specified !!!"); $buf = ""; $len = strlen($buf) + 1; print $buf; die; } }
function finish() { reportico_report::finish(); if ($this->line_count < 1) { $this->setup_report_attributes(); } $str = json_encode($this->jar); $len = strlen($str); if (ob_get_length() > 0) { ob_end_clean(); } header('Cache-Control: no-cache, must-revalidate'); header('Content-Type: application/json'); header("Content-Length: {$len}"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Disposition: attachment; filename=reportico.json'); echo $str; die; $this->page_started = false; }
function finish() { reportico_report::finish(); $this->debug("HTML End **"); if ($this->line_count < 1) { $title = $this->query->derive_attribute("ReportTitle", "Unknown"); $this->text .= '<H1 class="swRepTitle">' . sw_translate($title) . '</H1>'; $forward = session_request_item('forward_url_get_parameters', ''); if ($forward) { $forward .= "&"; } // In printable html mode dont show back box if (!get_request_item("printable_html")) { // Show Go Back Button ( if user is not in "SINGLE REPORT RUN " ) if (!$this->query->access_mode || $this->query->access_mode != "REPORTOUTPUT") { $this->text .= '<div class="swRepBackBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'execute_mode=PREPARE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_BACK") . '"> </a></div>'; } if (get_reportico_session_param("show_refresh_button")) { $this->text .= '<div class="swRepRefreshBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'refreshReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_REFRESH") . '"> </a></div>'; } $this->text .= '<div class="reporticoJSONExecute"><a class="swJSONExecute1 testy" href="' . $this->query->get_action_url() . '?' . $forward . 'refreshReport=1&target_format=JSON&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_REFRESH") . '"> </a></div>'; } else { $this->text .= '<div class="swRepPrintBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'printReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_PRINT") . '">' . template_xlate("GO_PRINT") . '</a></div>'; } $this->text .= '<div class="swRepNoRows">' . template_xlate("NO_DATA_FOUND") . '</div>'; } if ($this->report_file) { $this->debug("Saved to {$this->report_file}"); } else { $this->debug("No html file specified !!!"); $buf = ""; $len = strlen($buf) + 1; print $buf; } if ($this->page_started) { $this->text .= "</TBODY></TABLE>"; } $this->page_started = false; }
function finish() { reportico_report::finish(); if (ob_get_length() > 0) { ob_clean(); } $retarr = array(); $retarr["JSON"] = "success"; $retarr["viewname"] = $this->report_name; $retarr["colmodel"] = $this->colmodel; $retarr["colnames"] = $this->colnames; $page = get_request_item("page", ""); $numrecords = 1000000; if (!$page) { $page = 1; } $rows = get_request_item("rows", ""); if (!$rows) { $rows = $numrecords; } $retarr["gridmodel"] = array("total" => ceil($numrecords / $rows) . "", "page" => $page, "records" => $numrecords . "", "rows" => $this->results); if ($this->dataonly) { $len = strlen(json_encode($retarr["gridmodel"])); } else { $len = strlen(json_encode($retarr)); } header('Cache-Control: no-cache, must-revalidate'); //header('Content-Type: application/json'); header('Content-Type: text/html'); header("Content-Length: {$len}"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Disposition: attachment; filename=reportico.json'); if ($this->dataonly) { echo json_encode($retarr["gridmodel"]); } else { echo json_encode($retarr); } die; }
function finish() { reportico_report::finish(); $this->debug("Finish"); $this->document->SetDisplayMode("real"); //$this->document->pdf_close($this->document); if ($this->report_file) { $this->debug("Saved to {$this->report_file}"); } else { $this->debug("No pdf file specified !!!"); //$buf = $this->document->pdf_get_buffer($this->document); $buf = $this->document->Output("", "S"); $len = strlen($buf); if (ob_get_length() > 0) { ob_clean(); } header("Content-Type: application/pdf"); header("Content-Length: {$len}"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); $attachfile = "reportico.pdf"; if ($this->reportfilename) { $attachfile = preg_replace("/ /", "_", $this->reportfilename . ".pdf"); } header('Content-Disposition: attachment;filename=' . $attachfile); print $buf; die; } }
function finish() { reportico_report::finish(); }