145 lines
4.6 KiB
PHP
Executable File
145 lines
4.6 KiB
PHP
Executable File
<?php
|
|
/*
|
|
// Décalage à droite
|
|
$pdf->Cell(30);
|
|
|
|
$pdf->SetFillColor(153,255,153); // bleu
|
|
// Titre
|
|
$pdf->Cell(0,$ht,convertirc("BORDEREAU D'EMISSION DE LA PRIME"),1,0,'C',true);
|
|
*/
|
|
// Saut de ligne
|
|
$pdf->Ln(20);
|
|
//encadrer
|
|
$pdf->Rect(10,30,190,65);
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Code Compagnie"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['codeGcassureur']),0,0,'L',false);
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
if($entetecp['codeTypeContrat'] == "G")
|
|
{
|
|
$pdf->Cell(32,$ht,convertirc("Nature du risque"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": SANTE GROUPE"),0,0,'L',false);
|
|
}
|
|
else
|
|
{
|
|
$pdf->Cell(32,$ht,convertirc("Nature du risque"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": SANTE INDIVIDUELLE"),0,0,'L',false);
|
|
}
|
|
$pdf->Ln();
|
|
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
|
|
|
|
if(strlen($entetecp['garant']) > "40"){
|
|
|
|
$pdf->Cell(17,$ht,convertirc("Compagnie"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',8);
|
|
$pdf->Cell(85,$ht,convertirc(":".$entetecp['garant']),0,0,'L',false);
|
|
}
|
|
else{
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Compagnie"),0,0,'L',false);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['garant']),0,0,'L',false);
|
|
}
|
|
|
|
|
|
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
if(strlen($entetecp['libellePolice']) > "30"){
|
|
$pdf->Cell(22,$ht,convertirc("Police : "),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',8);
|
|
$pdf->MultiCell(65, 4, $entetecp['libellePolice'],0);
|
|
}else{
|
|
$pdf->Cell(32,$ht,convertirc("Police"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": ".$entetecp['libellePolice']),0,0,'L',false);
|
|
$pdf->Ln();
|
|
}
|
|
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Code Intermédiaire"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['codeApporteur']),0,0,'L',false);
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(32,$ht,convertirc("N° Interne Police"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": ".$entetecp['numeroPolice']),0,0,'L',false);
|
|
$pdf->Ln();
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Intermédiaire"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['apporteur']),0,0,'L',false);
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(32,$ht,convertirc("Durée"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": ".$entetecp['dureePeriodicite']),0,0,'L',false);
|
|
$pdf->Ln();
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("N° Souscripteur"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['numeroClient']),0,0,'L',false);
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
if(strlen($entetecp['nomClient'])> "30"){
|
|
$pdf->Cell(22,$ht,convertirc("Souscripteur : "),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',8);
|
|
$pdf->MultiCell(65,4,convertirc($entetecp['nomClient']),0);
|
|
}
|
|
else{
|
|
|
|
$pdf->Cell(32,$ht,convertirc("Souscripteur"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(77,$ht,convertirc(": ".$entetecp['nomClient']),0,0,'L',false);
|
|
$pdf->Ln();
|
|
}
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Echéance annuelle"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['echeancean']),0,0,'L',false);
|
|
|
|
|
|
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(32,$ht,convertirc("Fractionnement prime"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": ".$entetecp['fractionnement']),0,0,'L',false);
|
|
$pdf->Ln();
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Adresse postale"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['boitepostale']),0,0,'L',false);
|
|
$pdf->SetFont('Arial','',9);
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(32,$ht,convertirc("N° d'avenant"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": ".$entetecp['numeroAvenant']),0,0,'L',false);
|
|
$pdf->Ln();
|
|
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(30,$ht,convertirc("Numéro police"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(72,$ht,convertirc(": ".$entetecp['numeroPoliceGarant']),0,0,'L',false);
|
|
$pdf->SetFont('Arial','',9);
|
|
$pdf->Cell(32,$ht,convertirc("N° quittance"),0,0,'L',false);
|
|
$pdf->SetFont('Arial','B',9);
|
|
$pdf->Cell(20,$ht,convertirc(": ".$entetecp['numeroQuittancePlus']),0,0,'L',false);
|
|
///////////////////
|
|
?>
|