require_once 'import.php'; $import = new ImportFile(); $import->launch(); } elseif ($strFunc == 'import_statement') { createFuncMenu($strFunc); require_once 'import_statement.php'; $import = new ImportStatement(); $import->launch(); } else { switch ($strFunc) { case 'reports': createFuncMenu($strFunc); switch ($strForm) { case 'invoice': require_once 'invoice_report.php'; $invoiceReport = new InvoiceReport(); $invoiceReport->createReport(); break; case 'product': require_once 'product_report.php'; $productReport = new ProductReport(); $productReport->createReport(); break; case 'product_stock': require_once 'product_stock_report.php'; $productStockReport = new ProductStockReport(); $productStockReport->createReport(); break; } break; default:
<?php require 'invoicereportlib.php'; $pdf = new InvoiceReport('P', 'mm', 'A4', $_GET['id']); $pdf->Output();