270 lines
12 KiB
PHP
270 lines
12 KiB
PHP
<?php
|
||
$idPolice = $_SESSION['idPolice_C'];
|
||
|
||
$entetecp = $this->police->getEnteteCP($idPolice);
|
||
$adherent = $this->police->getAdherentCP($idPolice);
|
||
// $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
|
||
// $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice);
|
||
$garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice);
|
||
$listeassures = $this->police->getcpfclisteassures($idPolice);
|
||
|
||
// $pdf = new FPDF();
|
||
$pdf = new FPDF_Protection();
|
||
$pdf->SetProtection(array('print'));
|
||
|
||
$pdf->AliasNbPages();
|
||
$pdf->AddPage();
|
||
|
||
$ht=8;
|
||
|
||
$pdf->SetMargins(10, 10, 10) ;
|
||
|
||
$pdf->SetFont('Arial','B', 15);
|
||
|
||
$pdf->SetY(37);
|
||
|
||
if($adherent['codeProduit']=="FC1")
|
||
{
|
||
$pdf->SetFillColor(135,206,250); // bleu
|
||
|
||
$text = convertirc("AMASEZERANO Y’UBWISHINGIZI BWO KWIVUZA BW’UMUNTU KU GITI CYE HAMWE N’ABAGIZE UMURYANGO WE");
|
||
$pdf->MultiCell(0, $ht, $text, 1, 'C',true);
|
||
|
||
// MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])
|
||
|
||
// $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20);
|
||
$pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180);
|
||
|
||
$pdf->SetFont('');
|
||
|
||
$pdf->Ln(10);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Itariki y’amavuko"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("No y’indangamuntu"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false);
|
||
|
||
/*
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false);
|
||
*/
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
// $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false);
|
||
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false);
|
||
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma y’ukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false);
|
||
|
||
// $pdf->AddPage();
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati y’imyaka 18 na 65, uwo bashakanye n’abana babo batarengeje imyaka 21 nk’uko bagaragara mu mbonerahamwe iri hasi hamwe n’imisanzu yabo : ");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,convertirc('Itariki y’amavuko'),1,0,'C',false);
|
||
$pdf->Cell(40,$ht,convertirc('No y’ubwishingizi'),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
foreach ($listeassures as $assure)
|
||
{
|
||
$pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false);
|
||
$pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false);
|
||
}
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false);
|
||
|
||
$pdf->AddPage();
|
||
// $pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Amasezerano y’ubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse n’ubundi burwayi busanzwe.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Abafashe ubu bwishingizi bahabwa serivise z’ubuvuzi zitangirwa mu bigo nderabuzima, ibitaro by’uturere n’intara. ibitaro bya gisirikare by’i Kanombe, CHUB, CHUK, n’ibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi.
|
||
Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company.
|
||
Uwishingiwe yishyura buri 10% kuri fagitire y’ibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi.
|
||
Nyuma y’itangira ry’aya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nk’umuryango.
|
||
|
||
Abagize umuryango w’uwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% by’amafaranga yishyuwe n’uwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka w’amasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo n’imyaka y’amavuko byashyikirijwe RADIANT INSURANCE COMPANY.
|
||
|
||
Buri wese ahabwa ikarita y’ubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse n’ibyo yemerewe gukorerwa.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bw’uwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi n’abagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu y’umwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->AddPage();
|
||
// $pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false);
|
||
$pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
foreach ($garantiescollegecps as $garantiescollegecp)
|
||
{
|
||
$pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false);
|
||
$pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false);
|
||
}
|
||
|
||
// $pdf->AddPage();
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu z’uburwayi;
|
||
- Ubuvuzi n’imiti y’ibibazo byo kubura urubyaro;
|
||
- Imbago, inyunganirangingo n’insimburangingo;
|
||
- Indorerwamo z’amaso
|
||
- Ibijyanye no kuyungurura impyiko (diyalize), imiti ya diabete, imiti y’ibibazo by’umuvuduko w’amaraso n’ibindi bikorwa cyangwa ibizamini byihariye bitagendanye n’uburwayi;
|
||
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
|
||
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa ku mwaka ukurikiyeho w’ubwishingizi kandi mu gihe amasezerano yahise avugururwa ku itariki yagombaga kurangiriraho;
|
||
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro n’ibigonderabuzima bya Leta.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Ln(7);
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RY’AMASEZERANO"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye.
|
||
|
||
• Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
|
||
$pdf->AddPage();
|
||
// $pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bw’uwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
|
||
Aya masezerano yemejwe n’impande zombi ziyagiranye kandi afite agaciro uhereye kuwa");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false);
|
||
|
||
$pdf->Ln(10);
|
||
|
||
$pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false);
|
||
|
||
$pdf->Ln(10);
|
||
|
||
$pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false);
|
||
|
||
$pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false);
|
||
}
|
||
else
|
||
{
|
||
$pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false);
|
||
}
|
||
|
||
/*
|
||
$fichier="Temp/TMP_conditions_particulieres"."_".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;
|
||
*/
|
||
|
||
|
||
$uniqid = uniqid();
|
||
$fichierSimple="Temp/$uniqid.pdf";
|
||
$pdf->Output($fichierSimple,"F");
|
||
|
||
// 08/11/2025 => conversion image pdf
|
||
pdf_to_image($fichierSimple, $uniqid);
|
||
?>
|