Add php files
This commit is contained in:
19
modules/EcmSales/multiPdf.php
Executable file
19
modules/EcmSales/multiPdf.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include "include/ECM/EcmMultiPdf/EcmMultiPdf.inc";
|
||||
$db = $GLOBALS ['db'];
|
||||
$docs = array ();
|
||||
|
||||
$res = $db->query ( "SELECT id FROM ecmsales ORDER BY date_entered DESC LIMIT 0,5" );
|
||||
while ( $r = $db->fetchByAssoc ( $res ) ) {
|
||||
$tmp = array ();
|
||||
$tmp ['module'] = 'EcmSales';
|
||||
$tmp ['record'] = $r ['id'];
|
||||
$docs [] = $tmp;
|
||||
}
|
||||
|
||||
var_dump($docs);
|
||||
|
||||
$mp = new EcmMultiPdf($docs, 'multi.pdf');
|
||||
echo $r = $mp->process();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user