276 lines
12 KiB
PHP
276 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=10;
|
||
|
||
$pdf->SetMargins(10, 10, 10) ;
|
||
|
||
$pdf->SetFont('Arial','B', 15);
|
||
|
||
$pdf->SetY(37);
|
||
|
||
if($adherent['codeProduit']=="FC2")
|
||
{
|
||
$pdf->SetFillColor(135,206,250); // bleu
|
||
|
||
$pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true);
|
||
// $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20);
|
||
$pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180);
|
||
|
||
$pdf->SetFont('');
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false);
|
||
// $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Name"),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("Address"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false);
|
||
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Names"),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("Type of Insurance"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),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("Village/Cell/Sector"),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("District"),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("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("Contract Signing Date"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false);
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Contracting Party’s staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->AddPage();
|
||
// $pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false);
|
||
$pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,convertirc('Premiums'),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('Total'),1,0,'C',false);
|
||
$pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','B', 10);
|
||
$pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false);
|
||
$pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
foreach ($garantiescollegecps as $garantiescollegecp)
|
||
{
|
||
$pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
|
||
$pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false);
|
||
}
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("The insured will receive medical services at all health centers, district and provincial hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, plus some clinics as per the list attached on this contract as well as all pharmacies that have partnership with RADIANT INSURANCE COMPANY.
|
||
The insured shall a 10% co-pay in public health facilities&Pharmacies and 15% in private clinics.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->SetFont('Arial','BI', 10);
|
||
$text = convertirc("Note: This list should be updated by adding or removing a provider any time in accordance with the agreement between RADIANT INSURANCE COMPANY LTD and the provider. In this event, RADIANT INSURANCE COMPANY LTD shall inform the client through the email address or telephone number provided by the client in this contract.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("The insured shall a 10% co-pay in public health&pharmacies and 15% in private clinics.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->AddPage();
|
||
// $pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("- All medical services that are not related to sickness are not covered;
|
||
- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire;
|
||
- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed.
|
||
- CT Scan and MRI are covered for Inpatient cases
|
||
- Optical Frame");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage.
|
||
Members of the new insured family will be included in the contract plus 75% of the insurance premiums paid by the insured when he or she adds the spouse and 37.5% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents.
|
||
The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded.");
|
||
$pdf->MultiCell(0, $ht, $text);
|
||
|
||
$pdf->AddPage();
|
||
// $pdf->Ln(7);
|
||
|
||
$pdf->SetFont('Arial','BU', 15);
|
||
$pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false);
|
||
|
||
$pdf->SetFont('Arial','', 10);
|
||
$text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed.
|
||
These agreements have been approved by both parties involved and are effective from");
|
||
$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("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false);
|
||
|
||
$pdf->Ln(10);
|
||
|
||
$pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false);
|
||
|
||
$pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false);
|
||
}
|
||
else
|
||
{
|
||
$pdf->Cell(0,$ht,convertirc("Tt is not a FC2 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);
|
||
?>
|