facture = new Facture(); } public function index() { $idFacture = $this->requete->getParametre("idFacture"); $entete = $this->facture->consulterfacturefacture($idFacture); $prestations = $this->facture->consulterfactureprestationactes($idFacture); $medicaments = $this->facture->consulterfacturemedicaments($idFacture); $detfeuilleMaladies = $this->facture->getdetfeuilleMaladie($idFacture); //////////// $feuilleMaladie =0; foreach($detfeuilleMaladies as $detfeuilleMaladie){ } $feuilleMaladie = $detfeuilleMaladie['numeroFeuilleMaladie']; $factures = $prestations; $datas =array(); ob_start(); ?>

:
:
:
:
: / :
"0") { $aPayer = $v['montantTm'] + $v['depassement']; }else{ $aPayer = $v['montantTm']; } ?>
Date
#
Total
0){ $motifsententes = $this->facture->getmotifententeprealablenew($feuilleMaladie,$v['codeActe']); $beneficiaire = $entete['numeroBeneficiaire']; ?>
Instructions

pdf; $pdf->SetAuthor('INTER-SANTE'); $pdf->SetSubject('Facture Definitive'); $pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP'); $pdf->SetProtection( // ['print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high'], ['modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high'], '', // mot de passe utilisateur (optionnel) '', // mot de passe propriétaire (recommandé) 3 // mode chiffrement: 0=RC4-40, 1=RC4-128, 2=AES-128, 3=AES-256 (préféré) ); $html2pdf->writeHTML($content); $fichier="/../Temp/TMP_FACTURE_DEFINITIVE"."_".uniqid().".pdf"; $Out=__DIR__ . $fichier; $html2pdf->Output($Out, "F"); // $pdf->SetTitle($fichier); $t_html ='
'; $t_html .=' TELECHARGER '; $t_html .='
'; echo $t_html; } catch (\Exception $e) { echo $e->getMessage(); } } } ?>