/** SEARCH EXPORT */ function search_export($VAR) { $this->invoice_construct(); # require the export class require_once PATH_CORE . "export.inc.php"; # Call the correct export function for inline browser display, download, email, or web save. if ($VAR["format"] == "excel") { $type = "export_excel"; $this->method["{$type}"] = explode(",", $this->method["{$type}"]); $export = new CORE_export(); $export->search_excel($VAR, $this, $type); } else { if ($VAR["format"] == "pdf") { $type = "export_pdf"; $this->method["{$type}"] = explode(",", $this->method["{$type}"]); $export = new CORE_export(); $export->pdf_invoice($VAR, $this, $type); } else { if ($VAR["format"] == "xml") { $type = "export_xml"; $this->method["{$type}"] = explode(",", $this->method["{$type}"]); $export = new CORE_export(); $export->search_xml($VAR, $this, $type); } else { if ($VAR["format"] == "csv") { $type = "export_csv"; $this->method["{$type}"] = explode(",", $this->method["{$type}"]); $export = new CORE_export(); $export->search_csv($VAR, $this, $type); } else { if ($VAR["format"] == "tab") { $type = "export_tab"; $this->method["{$type}"] = explode(",", $this->method["{$type}"]); $export = new CORE_export(); $export->search_tab($VAR, $this, $type); } } } } } }