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

195 lines
6.2 KiB
PHP
Executable File

<?php
$entetevenant = $this->editionpieceavenant_societe->get_edition_avenant_entete();
$pdf = new FPDF_Protection('P','mm','A4');
$pdf->SetAuthor('EBENE SOLUTIONS INFORMATIQUES');
$userPassword = '';
$ownerPassword = null;
$pdf->SetProtection(['print'], $userPassword, $ownerPassword);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','BIU', $tp);
$pdf->SetLineStyle(array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
// Rectangle 1
// $x=10; $y = 10; $w=94; $h=57; $r=3.50;
$x=10; $y = 10; $w=94; $h=63; $r=3.50;
$pdf->RoundedRect($x, $y, $w, $h, $r, '1111');
// Ligne 1
$x1=10; $y1 = 17; $x2=104; $y2=17;
$pdf->Line($x1, $y1, $x2, $y2);
// Rectangle 2
// $x=107; $y = 10; $w=94; $h=57; $r=3.50;
$x=107; $y = 10; $w=94; $h=63; $r=3.50;
$pdf->RoundedRect($x, $y, $w, $h, $r, '1111');
// Ligne 2
$x1=107; $y1 = 17; $x2=201; $y2=17;
$pdf->Line($x1, $y1, $x2, $y2);
// Titres des zones
$pdf->Cell(94,$ht0,convertirc(_("Souscripteur")),0,0,'C',false);
$pdf->Cell(2,$ht0,"",0,0,'L',false);
$pdf->Cell(94,$ht0,convertirc(_("Emission")),0,1,'C',false);
// Fin Titres des zones
// L1
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Numéro")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['numeroClient']),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
// $pdf->Cell(20,$ht,convertirc(_("Emission")),0,0,'L',false);
$pdf->Cell(20,$ht,convertirc(_("Contrat")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
// $pdf->Cell(73,$ht,convertirc($entetevenant['numeroEmission']),0,1,'L',false);
$pdf->Cell(73,$ht,convertirc($entetevenant['libellePolice']),0,1,'L',false);
// Fin L1
// L2
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Nom")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['souscripteur']),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Sytème")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc(dateheureLang($entetevenant['dateSysteme'])),0,1,'L',false);
// Fin L2
// L3
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Adresse")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['boitepostale']),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("N° Police")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['numeroPolice'] . " (ID => ".$entetevenant['idPolice']. ")"),0,1,'L',false);
// Fin L3
// L3
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Rég Com")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(7373,$ht,convertirc($entetevenant['registreCommerce']),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
// L4
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Avenant")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['numeroAvenant']),0,1,'L',false);
// Fin L4
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Téléphone")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,substr(convertirc($entetevenant['telephone']),0,40),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Effet")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht, dateLang($entetevenant['dateEffet']),0,1,'L',false);
// L5
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Email")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,substr(convertirc($entetevenant['email']),0,45),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
// Fin L5
// L6
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Expiration")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(28,$ht, dateLang($entetevenant['dateFin']),0,1,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,("Profession"),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$secteuractivite = $entetevenant['secteuractivite'];
if (est_anglophone())
{
$secteuractivite = $entetevenant['secteuractiviteEng'];
}
$pdf->Cell(73,$ht,convertirc($secteuractivite),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Durée")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(10,$ht, $entetevenant['dureeAvenant'],0,0,'L',false);
$pdf->Cell(10,$ht, convertirc(_("Jours")),0,1,'L',false);
// Fin L6
// L7
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Pt Vente")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['pointvente']),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Type")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$typecontrat = $entetevenant['typecontrat'];
if (est_anglophone())
{
$typecontrat = $entetevenant['typecontratEng'];
}
$pdf->Cell(73,$ht,convertirc($typecontrat),0,1,'L',false);
// Fin L7
// L8
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Apporteur")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$pdf->Cell(73,$ht,convertirc($entetevenant['apporteur']),0,0,'L',false);
$pdf->Cell(4,$ht0,"",0,0,'L',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(20,$ht,convertirc(_("Mouvement")),0,0,'L',false);
$pdf->SetFont('Arial','I', $tp);
$libelleAvenant = $entetevenant['libelleAvenant'];
if (est_anglophone())
{
$libelleAvenant = $entetevenant['libelleAvenantEng'];
}
$pdf->Cell(73,$ht,convertirc($libelleAvenant),0,1,'L',false);
// Fin L8
// Un peu d'espace avant l ecorps
$pdf->Ln(5);
?>