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']; foreach ($prestations as $prestation){ if($idFacture == $prestation['idFacture']){ $depassement = $prestation['depassement']; } } $factures = $medicaments;//$prestations; $datas =array(); ob_start(); ?>
:
:

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

:

setTestIsImage(false); $pdf = new HTML2PDF("p", "A4", "fr"); $pdf->pdf->SetAuthor('INTER-SANTE'); $pdf->pdf->SetSubject('Facture Definitive'); $pdf->pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP'); $pdf->writeHTML($content); $fichier="Temp/TMP_FACTURE_DEFINITIVE"."_".uniqid().".pdf"; $pdf->Output($fichier, "F"); $pdf->pdf->SetTitle($fichier); $t_html ='
'; $t_html .=' TELECHARGER '; $t_html .='
'; echo $t_html; } catch (HTML2PDF_exception $e) { die($e); } } } ?>