66 lines
1.7 KiB
PHP
Executable File
66 lines
1.7 KiB
PHP
Executable File
<?php
|
|
|
|
$ht0 = 8;
|
|
$ht = 6;
|
|
$tp = 8;
|
|
|
|
require_once 'Enteteavenant.php';
|
|
|
|
$corpsavenant = $this->editionpieceavenant_societe->get_edition_avenant_changementcollege();
|
|
|
|
$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(_("CHANGEMENT DE COLLGE LORS DU RENOUVELLEMENT")),0,1,'C',false);
|
|
|
|
|
|
$idCollegeOld = "0";
|
|
|
|
$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(90,$ht,convertirc(_("Famille")),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(_("Numéro")),1,0,'C',false);
|
|
$pdf->Cell(75,$ht,convertirc(_("Nouveau Collège")),1,1,'C',false);
|
|
|
|
foreach ($corpsavenant as $donnee)
|
|
{
|
|
if($idCollegeOld!=$donnee['idCollegeOld'])
|
|
{
|
|
$pdf->SetFont('Arial','BIU', $tp);
|
|
$pdf->Cell(190,$ht,convertirc(_("Ancien Collège")." : ".$donnee['libelleCollegeOld']),1,1,'C',false);
|
|
}
|
|
|
|
$pdf->SetFont('Arial','', $tp);
|
|
|
|
$pdf->Cell(90,$ht,convertirc($donnee['adherent']),1,0,'L',false);
|
|
$pdf->Cell(25,$ht,convertirc($donnee['numeroAdherent']),1,0,'C',false);
|
|
$pdf->Cell(75,$ht,convertirc($donnee['libelleCollegeNew']),1,1,'C',false);
|
|
|
|
$idCollegeOld = $donnee['idCollegeOld'];
|
|
}
|
|
|
|
// 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';
|
|
|
|
?>
|