1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
foreach($_REQUEST['pdf'] as $key => $val){
$nameFile=str_replace('.','',str_replace(' ','',microtime()));
switch ($val) {
case PDF_CONTENTS :
$htm->setSommaire(1);
case PDF_TITLE:
require_once('pdf/createtitle.php');
createtitle($nameFile);
$htm->setPage(PDF.$nameFile.".tmp");
continue;
case PDF_FOCUS_CATEGORIES: foreach($cat as $c){
$nameFile=str_replace('.','',str_replace(' ','',microtime()));
echo $c->getId();
createfocuscategorie($nameFile,$currency,$c->getId(),$net);
$htm->setPage(PDF.$nameFile.".tmp");
}
continue 2;
case PDF_FOCUS_SEGMENTS: require_once('pdf/createfocussegment.php');
foreach($seg as $s){
echo $s->getId();
$nameFile=str_replace('.','',str_replace(' ','',microtime()));
createfocussegment($nameFile,$currency,$s->getId(),$net);
$htm->setPage(PDF.$nameFile.".tmp");
}
continue 2;
}
}
$htm->PrintPdf(); |
Partager