예제 #1
0
 function search_export($VAR)
 {
     $this->charge_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->search_pdf($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);
                     }
                 }
             }
         }
     }
 }
예제 #2
0
 function search_export($VAR)
 {
     if (!$this->checkLimits()) {
         return false;
     }
     // check account limits
     # 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}"] = split(",", $this->method["{$type}"]);
         $export = new CORE_export();
         $export->search_excel($VAR, $this, $type);
     } else {
         if ($VAR["format"] == "pdf") {
             $type = "export_pdf";
             $this->method["{$type}"] = split(",", $this->method["{$type}"]);
             $export = new CORE_export();
             $export->search_pdf($VAR, $this, $type);
         } else {
             if ($VAR["format"] == "xml") {
                 $type = "export_xml";
                 $this->method["{$type}"] = split(",", $this->method["{$type}"]);
                 $export = new CORE_export();
                 $export->search_xml($VAR, $this, $type);
             } else {
                 if ($VAR["format"] == "csv") {
                     $type = "export_csv";
                     $this->method["{$type}"] = split(",", $this->method["{$type}"]);
                     $export = new CORE_export();
                     $export->search_csv($VAR, $this, $type);
                 } else {
                     if ($VAR["format"] == "tab") {
                         $type = "export_tab";
                         $this->method["{$type}"] = split(",", $this->method["{$type}"]);
                         $export = new CORE_export();
                         $export->search_tab($VAR, $this, $type);
                     }
                 }
             }
         }
     }
 }