facture = new Facture(); } public function index() { $idFacture = $this->requete->getParametre("idFacture"); $entete = $this->facture->consulterfacturefacture($idFacture); $prestations = $this->facture->consulterfactureprestationactes($idFacture); $optiques = $this->facture->consulterfactureoptique($idFacture); $detfeuilleMaladies = $this->facture->getdetfeuilleMaladie($idFacture); //////////// $feuilleMaladie =0; foreach($detfeuilleMaladies as $detfeuilleMaladie){ } $feuilleMaladie = $detfeuilleMaladie['numeroFeuilleMaladie']; if($_SESSION['p_codeProfil_C'] != "OPT"){ $_SESSION['p_codeProfil_C'] = "OPT"; } //$motifsententes = $this->facture->getmotifententeprealable($feuilleMaladie); //highlight_string(""); //highlight_string(""); //highlight_string(""); foreach ($prestations as $prestation){ if($idFacture == $prestation['idFacture']){ $depassement = $prestation['depassement']; } } $factures = $optiques; //highlight_string(""); $datas =array(); ob_start(); ?>
:
:

:
:
:
: :
: /
:
"0") { $aPayer = $v['montantTm'] + $v['depassement']; }else{ $aPayer = $v['montantTm']; } ?>
Date
#
Total
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); } } } ?>