production/Societes/envoyx/Tarifs/Controleur/Avenantassuresnonrenouveles.php
2026-03-04 01:48:40 +00:00

79 lines
2.4 KiB
PHP
Executable File

<?php
$ht0 = 8;
$ht = 6;
$tp = 8;
require_once 'Enteteavenant.php';
$corpsavenant = $this->editionpieceavenant_societe->get_edition_avenant_assures_non_renouveles();
$donnees_total = null;
if(count($corpsavenant)>"0")
{
$donnees_total = $corpsavenant['0'];
}
// Un peu d'espace avant le dé but du corps
// $pdf->Ln(5);
$pdf->SetFont('Arial','BIU', $tp);
$pdf->Cell(0,$ht0,convertirc(_("LISTE DES ASSURES NON RENOUVELES")),0,1,'C',false);
$idCollege = "0";
$numeroAdherent = "";
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(0,$ht,convertirc(_('Edité le').' : '.heureCouranteLang($_SESSION['lang'])),0,1,'R',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(10,$ht,convertirc(_("Lien")),1,0,'C',false);
$pdf->Cell(80,$ht,convertirc(_("Bénéficiaire")),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc(_("Numéro")),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc(_("Sexe")),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc(_("Naissance")),1,0,'C',false);
$pdf->Cell(45,$ht,convertirc(_('Téléphone')),1,1,'C',false);
foreach ($corpsavenant as $donnee)
{
if($idCollege!=$donnee['idCollege'])
{
$pdf->SetFont('Arial','BIU', $tp);
$pdf->Cell(190,$ht,convertirc(_("Collège")." : ".$donnee['libelleCollege']),1,1,'C',false);
}
if($numeroAdherent!=$donnee['numeroAdherent'])
{
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(190,$ht,convertirc(_("Famille")." : ".$donnee['adherent']),1,1,'C',false);
}
$pdf->SetFont('Arial','', $tp);
$pdf->Cell(10,$ht,convertirc($donnee['codeLienParente']),1,0,'C',false);
$pdf->Cell(80,$ht,convertirc($donnee['beneficiaire']),1,0,'L',false);
$pdf->Cell(25,$ht,convertirc($donnee['numeroBeneficiaire']),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc($donnee['sexe']),1,0,'C',false);
$pdf->Cell(20,$ht, dateLang($donnee['dateNaissance'], $_SESSION['lang']),1,0,'C',false);
$pdf->Cell(45,$ht,substr(convertirc($donnee['telephonePortable']),0,28),1,1,'C',false);
$idCollege = $donnee['idCollege'];
$numeroAdherent = $donnee['numeroAdherent'];
}
// Totaux
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(190,$ht,convertirc(_("Totaux") . " => " . format_N($donnees_total['nbEmissionTotal']) . " " . _("Lignes") ),1,1,'C',false);
// Un peu d'espace avant le pied de page
$pdf->Ln(10);
// Piedavenant
require_once 'Piedavenant.php';
?>