57 lines
2.0 KiB
PHP
Executable File
57 lines
2.0 KiB
PHP
Executable File
<?php
|
|
|
|
// require_once $_SESSION['dossierSociete'].'/Tarifs/Modele/Police_sodciete.php';
|
|
|
|
// $this->police_societe = new Police_sodciete();
|
|
// $idPolice = $_SESSION['idPolice_C'];
|
|
|
|
// $codeGarant = $this->police_societe->getcodeGarant($idPolice);
|
|
// $codeGcAssureur = $codeGarant['codeGcAssureur'];
|
|
// $infosDuGarant = $this->police_societe->getInfosGarant($codeGcAssureur);
|
|
|
|
// // Un peu d'espace avant le pied
|
|
// $pdf->Ln(5);
|
|
|
|
// $pdf->SetFont('Arial','BI', $tp);
|
|
|
|
// if (est_anglophone())
|
|
// {
|
|
// $pdf->Cell(0,$ht,convertirc("Done at " . $_SESSION['villeSociete'].", on ".dateCouranteLang($_SESSION['lang'])),0,1,'C',false);
|
|
// }
|
|
// else
|
|
// {
|
|
// $pdf->Cell(0,$ht,convertirc("Fait à " . $_SESSION['villeSociete'].", le ".dateCouranteLang($_SESSION['lang'])),0,1,'C',false);
|
|
// }
|
|
|
|
// $pdf->Ln(10);
|
|
|
|
// $pdf->SetFont('Arial','BU', $tp);
|
|
|
|
// $pdf->Cell(0,$ht,convertirc(_("Le Souscripteur")),0,0,'L',false);
|
|
|
|
// $pdf->Cell(0,$ht,convertirc(_("Pour le Gestionnaire")),0,0,'R',false);
|
|
|
|
$nomEtatAvenant = $_SESSION['nomEtatAvenant'];
|
|
// if ($infosDuGarant['typeGarant']=="1"){
|
|
// if (file_exists($_SESSION['dossierSociete'].'/Tarifs/Img/garants/pied_'.strtolower($codeGcAssureur).'.png')){
|
|
// $pdf->Image($_SESSION['dossierSociete'].'/Tarifs/Img/garants/pied_'.strtolower($codeGcAssureur).'.png',10,270,190);
|
|
// }
|
|
// }else{
|
|
// if (file_exists($_SESSION['dossierSociete'].'/Tarifs/Img/garants/pied_vitalis.jpg')){
|
|
// $pdf->Image($_SESSION['dossierSociete'].'/Tarifs/Img/garants/pied_vitalis.jpg',10,270,190);
|
|
// }
|
|
// }
|
|
// // créatiob du fichier
|
|
// // $fichier="Temp/TMP_Edition_Avenant"."_".uniqid().".pdf";
|
|
$fichier="Temp/TMP_" . $nomEtatAvenant . "_".uniqid().".pdf";
|
|
|
|
$pdf->Output($fichier,"F");
|
|
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div ';
|
|
|
|
echo $t_html;
|
|
|
|
?>
|