Nouvel Adhérent

This commit is contained in:
KONE SOREL 2025-12-30 10:55:06 +00:00
parent ab855989cf
commit a009e04090
73 changed files with 16552 additions and 726 deletions

View File

@ -1320,4 +1320,18 @@ li i { margin-right:10px; color:#007bff; }
border: 1px solid #ffeeba !important;
font-size: 0.9rem;
padding: 8px 12px;
}
/* Style pour le sélecteur de date focus */
.datepicker:focus {
border-color: var(--office-secondary);
background-color: #f8faff;
}
/* Animation de l'affichage de la prime */
#div_prime:not(:empty) {
border: 2px dashed var(--office-primary-lighter);
padding: 15px;
border-radius: 8px;
background-color: white;
}

View File

@ -0,0 +1,23 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent_temp.php';
class ControleurAjaxproraterprime extends Controleur {
private $adherent_temp;
public function __construct() {
$this->adherent_temp = new Adherent_temp();
}
public function index()
{
$user = $_SESSION['login'];
$idCollege = $this->requete->getParametreFormulaire("idCollege");
$prorata = $this->requete->getParametreFormulaire("prorata");
$dateEntree = $this->requete->getParametreDate("dateEntree");
$adherent_temp = $this->adherent_temp->getAdherent_temp($idCollege, $dateEntree, $user, $prorata) ;
$this->genererVueAjax(array('adherent_temp' => $adherent_temp));
}
}

View File

@ -0,0 +1,138 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Collegepolice.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Beneficiaire.php';
require_once 'Modele/Naturepiece.php';
require_once 'Modele/Sexe.php';
require_once 'Modele/Pays.php';
require_once 'Modele/Situationfamille.php';
require_once 'Modele/Groupesanguin.php';
require_once 'Modele/Avenant.php';
require_once 'Modele/Ouinon.php';
require_once 'Modele/Ville.php';
require_once 'Modele/Localite.php';
require_once 'Modele/Client.php';
require_once 'Societes/'.$_SESSION['codeSociete'].'/Tarifs/Modele/Tarif.php';
class ControleurCreeradherent extends Controleur {
private $adherent;
private $beneficiaire;
private $naturepiece;
private $sexe;
private $pays;
private $situationfamille;
private $groupesanguin;
private $tarif;
private $college;
private $avenant;
private $ouinon;
private $client;
private $ville;
private $localite;
public function __construct()
{
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Creeradherent');
$this->adherent = new Adherent();
$this->beneficiaire = new Beneficiaire();
$this->naturepiece = (new Naturepiece())->getListe();
$this->sexe = (new Sexe())->getListe();
$this->situationfamille = (new Situationfamille())->getListe();
// $this->pays = (new Pays())->getListe($_SESSION['codePaysSociete']);
$this->pays = new Pays();
$this->groupesanguin = (new Groupesanguin())->getListe();
$this->tarif = new Tarif();
$this->college = (new Collegepolice())->getListe($_SESSION['idPolice_C']);
$this->avenant = (new Avenant())->getListeEnCours($_SESSION['idPolice_C']);
$this->ouinonprorata = (new Ouinon())->getListe();
$this->ville = new Ville();
$this->localite = new Localite();
$this->client = new Client();
}
public function index()
{
$idClient = $_SESSION['idClient_C'];
$client = $this->client->getClientId($idClient);
$codeSociete = $_SESSION['codeSociete'];
$codePays = $client['codePays'];
$codeVille = $client['codeVille'];
$codeLocalite = $client['codeLocalite'];
$pays = $this->pays->getListe($codePays);
$ville = $this->ville->getListe($codePays);
$localite = $this->localite->getListe($codePays, $codeVille);
$idPolice = $_SESSION['idPolice_C'];
$ville = $this->ville->getListe($codePays);
$localite = $this->localite->getListe($codePays, $codeVille);
$this->genererVue(array('college' => $this->college, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe,
'pays' => $pays, 'situationfamille' => $this->situationfamille, 'groupesanguin' => $this->groupesanguin,
'avenant' => $this->avenant, 'ouinonprorata' => $this->ouinonprorata, 'ville' => $ville, 'localite' => $localite,
'codePays' => $codePays, 'codeVille' => $codeVille, 'codeLocalite' => $codeLocalite));
}
public function ajouteradherent()
{
$idPolice = $_SESSION['idPolice_C'];
$racineNoAdherent = $this->requete->getSession()->getAttribut('racineNoAdherent');
$codeSociete = $this->requete->getSession()->getAttribut('codeSociete');
$idCollege = $this->requete->getParametre("idCollege");
$idPolice = $this->requete->getParametre("idPolice");
$numeroPolice = $this->requete->getParametre("numeroPolice");
$nom = $this->requete->getParametre("nom");
$prenoms = $this->requete->getParametreFormulaire("prenoms");
$codeNaturePiece = $this->requete->getParametre("codeNaturePiece");
$numeroPiece = $this->requete->getParametreFormulaire("numeroPiece");
$sexe = $this->requete->getParametreFormulaire("sexe");
$dateNaissance = $this->requete->getParametreDate("dateNaissance");
$codeGroupeSanguin = $this->requete->getParametreFormulaire("codeGroupeSanguin");
$codeSituationFamille = $this->requete->getParametreFormulaire("codeSituationFamille");
$nombreEnfants = $this->requete->getParametreFormulaire("nombreEnfants");
$adresseGeo = $this->requete->getParametreFormulaire("adresseGeo");
$adressePostale = $this->requete->getParametreFormulaire("adressePostale");
$codePays = $this->requete->getParametre("codePays");
$telephonFixe = $this->requete->getParametreFormulaire("telephonFixe");
$telephonePortable = $this->requete->getParametreFormulaire("telephonePortable");
$email = $this->requete->getParametreFormulaire("email");
$dateEntree = $this->requete->getParametreDate("dateEntree");
$idAvenant = $this->requete->getParametre("idAvenant");
$codeLocalite = $this->requete->getParametre("codeLocalite");
$user = $this->requete->getSession()->getAttribut('login');
$dateCre = date("Y-m-d");
$nom = strtoupper($nom);
$prenoms = ucwords($prenoms);
$dernierIdAdherent = $this->adherent->ajouteradherent($idPolice, $idCollege, $nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe,
$dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale,
$codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $user, $idAvenant, $codeLocalite) ;
$idBeneficiaire = $this->beneficiaire->ajouterAdherent($dernierIdAdherent);
// On va calculuer la prime
$codeLienParente = "A";
$idAdherent = $dernierIdAdherent;
$_SESSION['idAdherent_C'] = $idAdherent;
$_SESSION['idBeneficiaire_C'] = $idBeneficiaire;
// On actualise le contexte : NbAdh et NbAss
$idPolice = $_SESSION['idPolice_C'];
$this->adherent->getNbassure($idPolice);
$this->rediriger("Ficheadherent/".$idAdherent);
}
}

View File

@ -681,4 +681,96 @@ function assurance_familiale()
}
window.location.assign($("#racineWeb" ).val()+"Assuranceindividuelle/");
}
function est_ce_police_famille()
{
codeTypeContrat = $("#codeTypeContrat_C").val();
return (codeTypeContrat=="F");
}
function creer_adherents()
{
// 06/11/2020
if(est_ce_police_famille())
{
window.location.assign($("#racineWeb" ).val()+"Assuranceindividuelle/");
return;
}
nbAdh = $("#nbAdh_C").val();
codeTypeContrat = $("#codeTypeContrat_C").val();
if ( (codeTypeContrat!="G") && (nbAdh>0) )
{
v_msg="Ce n\'est pas une police GROUPE!";
v_msgEng="This is not a GROUP policy!";
alert_ebene(v_msg, v_msgEng);
return;
}
etat=$("#codeEtatPolice_C").val();
if (etat=="RE")
{
v_msg="Attention! Police résiliée!";
v_msgEng="Warning! Terminated policy!";
alert_ebene(v_msg, v_msgEng);
return;
}
if (etat=="SU")
{
v_msg="Attention! Police suspendue!";
v_msgEng="Warning! Suspended policy!";
alert_ebene(v_msg, v_msgEng);
return;
}
if (etat=="AN")
{
v_msg="Attention! Police annulée!";
v_msgEng="Warning! Canceled policy!";
alert_ebene(v_msg, v_msgEng);
return;
}
window.location.assign($("#racineWeb" ).val()+"Creeradherent/");
}
function prorater_prime_adherent()
{
idCollege=$("#idCollege").val();
dateEntree=$("#dateEntree").val();
prorata=$("#prorata").val();
if (idCollege<=" ")
{
v_msg="Veuillez sélectionner un collège!";
v_msgEng="Please select a college!";
alert_ebene(v_msg, v_msgEng);
return;
}
donnees = 'idCollege='+idCollege;
donnees += '&dateEntree='+dateEntree;
donnees += '&prorata='+prorata;
$.ajax({
url: $("#racineWeb").val()+"Ajaxproraterprime/",
type : 'post',
data: donnees,
error: function(errorData) {
},
success: function(data) {
$("#div_prime").html(data);
},
complete: function() {
}
});
}

File diff suppressed because it is too large Load Diff

25
Modele/Adherent_temp.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once 'Framework/Modele.php';
class Adherent_temp extends Modele {
public function getAdherent_temp($idCollege, $dateEntree, $user, $prorata)
{
$sql = 'call sp_init_adherent(?, ?, ?, ?)';
$adherent_temp = $this->executerRequete($sql, array($idCollege, $dateEntree, $user, $prorata));
return $adherent_temp->fetch(PDO::FETCH_ASSOC);
}
public function recapadherentfamilialetemp($idCollege, $dateEntree, $primeBase, $codeTypeEcheancier)
{
$codeCommercial = $_SESSION['codeApporteur_C'];
$user = $_SESSION['login'];
$sql = 'call sp_recap_prime_adherent_familiale_temp(?, ?, ?, ?, ?, ?)';
$resultat = $this->executerRequete($sql, array($idCollege, $dateEntree, $primeBase, $codeTypeEcheancier,
$codeCommercial, $user));
return $resultat->fetch(PDO::FETCH_ASSOC);
}
}

84
Modele/Avenant.php Normal file
View File

@ -0,0 +1,84 @@
<?php
require_once 'Framework/Modele.php';
class Avenant extends Modele {
public function getAvenant($idPolice)
{
$sql = 'call sp_avenants_police(?)';
$resultat = $this->executerRequete($sql, array($idPolice));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getAvenantNonFactures($idPolice)
{
$sql = 'call sp_avenants_non_factures_police(?)';
$resultat = $this->executerRequete($sql, array($idPolice));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getListe($idPolice)
{
$sql = 'SELECT A.id as `code`, concat(B.libelle, " du ",DATE_FORMAT(dateEffet, "%d/%m/%Y")) as libelle
from avenant A
join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
where (idPolice=?) and (B.ajoutAliment="1")
order by numeroAvenant DESC';
$liste = $this->executerRequete($sql, array($idPolice));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getListeToutes($idPolice)
{
$sql = 'SELECT A.id as `code`, concat(IFNULL(B.libelle, B.codeTypeAvenant), " du ",DATE_FORMAT(dateEffet, "%d/%m/%Y")) as libelle
from avenant A
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
where (idPolice=?) order by numeroAvenant DESC';
$liste = $this->executerRequete($sql, array($idPolice));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getdateavenant($idAvenant)
{
$sql = 'select fn_get_date_avenant(?) as dateAvenant';
$resultat = $this->executerRequete($sql, array($idAvenant));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['dateAvenant'];
}
public function getListeEnCours($idPolice)
{
if (est_anglophone())
{
$sql = 'SELECT A.id AS `code`, CONCAT(B.libelleEng, " of ",DATE_FORMAT(A.dateEffet, "%d/%m/%Y")) AS libelle
FROM avenant A
JOIN typeavenant B ON (B.codeTypeAvenant=A.codeTypeAvenant)
JOIN police P ON (P.id=A.idPolice)
WHERE (A.idPolice=?) AND (B.ajoutAliment="1")
AND (A.dateEffet>=P.dateEffet)
ORDER BY A.numeroAvenant DESC;';
}
else
{
$sql = 'SELECT A.id AS `code`, CONCAT(B.libelle, " du ",DATE_FORMAT(A.dateEffet, "%d/%m/%Y")) AS libelle
FROM avenant A
JOIN typeavenant B ON (B.codeTypeAvenant=A.codeTypeAvenant)
JOIN police P ON (P.id=A.idPolice)
WHERE (A.idPolice=?) AND (B.ajoutAliment="1")
AND (A.dateEffet>=P.dateEffet)
ORDER BY A.numeroAvenant DESC;';
}
$liste = $this->executerRequete($sql, array($idPolice));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -8,20 +8,16 @@ class Client extends Modele {
$prenomsearch = contruireParamLike($prenomsearch);
$telsearch = contruireParamLike($telsearch);
$sql = 'SELECT A.id, A.codeSociete, numeroClient, nom, prenoms, B.libelle as Ville, telephonePortable
FROM clients A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille)
WHERE (A.codeSociete=? AND nom LIKE ? AND prenoms LIKE ? AND telephonePortable LIKE ?)
order by nom, prenoms';
$sql = 'call sp_getClients(?, ?, ?, ?);';
$clients = $this->executerRequete($sql, array($_SESSION['codeSociete'], $nomsearch, $prenomsearch, $telsearch));
return $clients;
}
public function getClientsearch($numeroClient) {
$sql = 'SELECT A.id, A.codeSociete, numeroClient, nom, prenoms, B.libelle as Ville, telephonePortable
FROM clients A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille)
WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
public function getClientsearch($numeroClient)
{
$sql = 'call sp_getClientsearch(?, ?);';
$clients = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
return $clients;
}
@ -35,22 +31,24 @@ class Client extends Modele {
return $clients;
}
public function getClientVide() {
$sql = 'SELECT A.id, A.codeSociete, numeroClient, nom, prenoms, B.libelle as Ville, telephonePortable
FROM clients A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille)
order by nom, prenoms';
// order by nom, prenoms limit 20';
public function getClientVide()
{
$sql = 'call sp_getClientVide();';
$clients = $this->executerRequete($sql);
return $clients;
}
public function getClient($numeroClient) {
$sql = 'SELECT A.id, A.codeSociete, numeroClient, A.typeClient, D.libelle as libelleTypeClient, A.codeTitre, E.libelle as libelleTitre,
A.nom, A.prenoms, adresseGeo, boitepostale, A.codeVille, C.libelle as Ville, A.codeLocalite, L.libelle as localite, A.codePays, F.libelle as pays, A.telephoneBureau, A.telephonedomicile,
A.telephonePortable, A.fax, A.email, A.sexe, A.dateNaissance, A.codeSecteur, B.libelleSecteur, A.codeGestionnaire, concat(G.nom," ", G.prenoms) as gestionnaire,
A.nomMandataire, A.telephoneFixemandataire, A.telephonePortablemandataire, A.emailMandataire, A.dateCre, A.user
$sql = 'SELECT A.id, A.codeSociete, numeroClient, A.typeClient, D.libelle as libelleTypeClient, A.codeTitre,
E.libelle as libelleTitre, A.nom, A.prenoms, adresseGeo, boitepostale, A.codeVille, C.libelle as Ville,
A.codeLocalite, L.libelle as localite, A.codePays, F.libelle as pays, A.telephoneBureau, A.telephonedomicile,
A.telephonePortable, A.fax, A.email, A.sexe, A.dateNaissance, A.codeSecteur, B.libelle as libelleSecteur, B.libelleEng as libelleSecteurEng,
A.codeGestionnaire, concat(G.nom," ", G.prenoms) as gestionnaire, A.nomMandataire, A.telephoneFixemandataire,
A.telephonePortablemandataire,
A.emailMandataire, A.dateCre, A.user, A.registreCommerce, A.codeLangueClient
FROM clients A
left join secteuractivite B on (B.codeSecteur=A.codeSecteur)
left join pays F on (F.codeSociete=A.codeSociete AND F.codePays=A.codePays)
@ -65,54 +63,44 @@ class Client extends Modele {
return $client;
}
public function getClientId($id) {
$sql = 'SELECT A.id, A.codeSociete, numeroClient, A.typeClient, D.libelle as libelleTypeClient, A.codeTitre, E.libelle as libelleTitre,
A.nom, A.prenoms, adresseGeo, boitepostale, A.codeVille, C.libelle as Ville, A.codeLocalite, L.libelle as localite, A.codePays, F.libelle as pays, A.telephoneBureau, A.telephonedomicile,
A.telephonePortable, A.fax, A.email, A.sexe, A.dateNaissance, A.codeSecteur, B.libelleSecteur, A.codeGestionnaire, concat(G.nom," ", G.prenoms) as gestionnaire,
A.nomMandataire, A.telephoneFixemandataire, A.telephonePortablemandataire, A.emailMandataire, A.dateCre, A.user
FROM clients A
left join secteuractivite B on (B.codeSecteur=A.codeSecteur)
left join pays F on (F.codeSociete=A.codeSociete AND F.codePays=A.codePays)
left join ville C on (C.codeSociete=A.codeSociete AND C.codeVille=A.codeVille)
left join localite L on (L.codeSociete=A.codeSociete AND L.codeLocalite=A.codeLocalite)
left join typeclient D on (D.codeTypeClient=A.typeClient)
left join titre E on (E.codeTitre=A.codeTitre)
left join gestionnaire G on (G.codeSociete=A.codeSociete AND G.codeGestionnaire=A.codeGestionnaire)
WHERE (A.codeSociete=?) AND (A.id=?)';
$client = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $client->fetch();
/*
if ($client->rowCount() > 0)
return $client->fetch();
else
throw new Exception("Aucun client ne correspond au id '$id'");
*/
public function getClientId($id)
{
$sql = 'call sp_get_client_id(?);';
$client = $this->executerRequete($sql, array($id));
return $client->fetch(PDO::FETCH_ASSOC);
}
public function getNombreClients()
{
$sql = 'select count(*) as nbClients FROM clients A WHERE (A.codeSociete=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['nbClients'];
}
public function getIdClient($numeroClient) {
$sql = 'SELECT id FROM clients WHERE (codeSociete=?) AND (numeroClient=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['id'];
}
public function getContexteClientId($id) {
$sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient FROM clients A WHERE (A.codeSociete=?) AND (A.id=?)';
$sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient, A.codeLangueClient, A.codeLocalite
FROM clients A WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$context = $resultat->fetch();
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['nomClient_C'] = $context['nomClient'];
$_SESSION['idClientAjax'] = $context['idClient'];
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['nomClient_C'] = $context['nomClient'];
$_SESSION['idClientAjax'] = $context['idClient'];
$_SESSION['codeLangueClient'] = $context['codeLangueClient'];
$_SESSION['codeLocalite'] = $context['codeLocalite'];
$_SESSION['codeTypeContrat'] = "";
$_SESSION['idPolice_C'] = "";
$_SESSION['numeroPolice_C'] = "";
@ -121,9 +109,9 @@ class Client extends Modele {
$_SESSION['ndDep_C'] = "0";
$_SESSION['ndActif_C'] = "0";
// $_SESSION['idAdherent_C'] = "";
// $_SESSION['numeroAdherent_C'] = "";
// $_SESSION['nomAdherent_C'] = "";
$_SESSION['idAdherent_C'] = "";
$_SESSION['numeroAdherent_C'] = "";
$_SESSION['nomAdherent_C'] = "";
$_SESSION['idBeneficiaire_C'] = "";
$_SESSION['numeroBeneficiaire_C'] = "";
@ -149,7 +137,7 @@ class Client extends Modele {
return "0";
} else
{
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['dernierNumeroClient'];
}
}
@ -163,18 +151,18 @@ class Client extends Modele {
public function ajouter($codeSociete, $numeroClient, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo,
$boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax,
$email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire,
$telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite)
$telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite, $registreCommerce, $codeLangueClient)
{
$sql = 'INSERT INTO clients (codeSociete, numeroClient, typeClient, codeTitre, nom, prenoms, adresseGeo,
boitepostale, codeVille, codePays, telephoneBureau, telephonedomicile, telephonePortable, fax, email,
sexe, dateNaissance, codeSecteur, codeGestionnaire, nomMandataire, telephoneFixemandataire,
telephonePortablemandataire, emailMandataire, dateCre, user, codeLocalite)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
telephonePortablemandataire, emailMandataire, dateCre, user, codeLocalite, registreCommerce, codeLangueClient)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($codeSociete, $numeroClient, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo,
$boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax,
$email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire,
$telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite));
$telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite, $registreCommerce, $codeLangueClient));
return $this->dernierId();
}
@ -182,17 +170,18 @@ class Client extends Modele {
public function modifier($id, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo,
$boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax,
$email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire,
$telephonePortablemandataire, $emailMandataire, $codeLocalite)
$telephonePortablemandataire, $emailMandataire, $codeLocalite, $registreCommerce, $codeLangueClient)
{
$sql = 'UPDATE clients SET typeClient=?, codeTitre=?, nom=?, prenoms=?, adresseGeo=?,
boitepostale=?, codeVille=?, codePays=?, telephoneBureau=?, telephonedomicile=?, telephonePortable=?, fax=?,
email=?, sexe=?, dateNaissance=?, codeSecteur=?, codeGestionnaire=?, nomMandataire=?, telephoneFixemandataire=?,
telephonePortablemandataire=?, emailMandataire=?, codeLocalite=? where (id=?)';
telephonePortablemandataire=?, emailMandataire=?, codeLocalite=? , registreCommerce=? , codeLangueClient=?
where (id=?)';
$this->executerRequete($sql, array($typeClient, $codeTitre, $nom, $prenoms, $adresseGeo,
$boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax,
$email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire,
$telephonePortablemandataire, $emailMandataire, $codeLocalite, $id));
$telephonePortablemandataire, $emailMandataire, $codeLocalite, $registreCommerce, $codeLangueClient, $id));
}
public function supprimer($idClient) {
@ -215,7 +204,87 @@ class Client extends Modele {
{
$sql = 'SELECT A.id as idClient FROM clients A WHERE (A.id=?)';
$resultat = $this->executerRequete($sql, array($id));
$context = $resultat->fetch();
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['idClientAjax'] = $context['idClient'];
}
public function getListeClients()
{
$sql = 'call sp_get_liste_clients(?);';
$clients = $this->executerRequete($sql, array($_SESSION['codeSociete']));
return $clients;
}
public function getListeClientsExport()
{
$sql = 'call sp_get_liste_clients_export(?);';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getClientParent($id)
{
$sql = 'call sp_get_client_parent(?);';
$resultat = $this->executerRequete($sql, array($id));
return $resultat->fetch(PDO::FETCH_ASSOC);
}
public function getClientEnfants($id)
{
$sql = 'call sp_get_client_enfants(?);';
$resultat = $this->executerRequete($sql, array($id));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getClientFreres($id)
{
$sql = 'call sp_get_client_freres(?);';
$resultat = $this->executerRequete($sql, array($id));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function supprimer_liaison_client($idClient)
{
$user = $_SESSION['login'];
$sql = 'call sp_supprimer_liaison_client(?, ?)';
$this->executerRequete($sql, array($idClient, $user));
}
public function getclientslike($numeroclientsearch, $nomsearch, $idClient)
{
$nomsearch = contruireParamLike($nomsearch);
$sql = 'call sp_r_clients_parents_like(?, ?, ?)';
$resultat = $this->executerRequete($sql, array($numeroclientsearch, $nomsearch, $idClient));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function client_lier_a_un_parent($idClient, $idClientP)
{
$user = $_SESSION['login'];
$sql = 'call sp_lier_client(?, ?, ?)';
$this->executerRequete($sql, array($idClientP, $idClient, $user));
}
public function getclientsEnfantslike($numeroclientsearch, $nomsearch, $idClient)
{
$nomsearch = contruireParamLike($nomsearch);
$sql = 'call sp_r_clients_enfants_like(?, ?, ?)';
$resultat = $this->executerRequete($sql, array($numeroclientsearch, $nomsearch, $idClient));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
}

View File

@ -28,4 +28,154 @@ class Collegepolice extends Modele {
return $totalcollege->fetch(PDO::FETCH_ASSOC);
}
public function supprimer($idCollege)
{
$sql = 'select id from adherent where (idCollege=?) limit 1';
$resultat = $this->executerRequete($sql, array($idCollege));
if($resultat->rowCount() == 0)
{
$sql = 'DELETE FROM college WHERE (id=?)';
$this->executerRequete($sql, array($idCollege));
$sql = 'DELETE FROM garantiecollege WHERE (idCollege=?)';
$this->executerRequete($sql, array($idCollege));
$sql = 'DELETE FROM prestationcollege WHERE (idCollege=?)';
$this->executerRequete($sql, array($idCollege));
}
}
public function archiverGarntie($idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_archiver_garantie(?, ?)';
$resultat = $this->executerRequete($sql, array($idCollege, $user));
}
public function desarchiverGarntie($idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_de_archiver_garantie(?, ?)';
$resultat = $this->executerRequete($sql, array($idCollege, $user));
}
public function getPrimeTtcFamille($idCollege)
{
$sql = 'SELECT IFNULL(primeTtcAdherent,"0") AS primeTtc FROM college where (id=?)';
$resultat = $this->executerRequete($sql, array($idCollege));
if($resultat->rowCount() > 0)
{
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['primeTtc'];
}
else
{
return 0;
}
}
public function getListe($idPolice) {
if($_SESSION['codeTypeAvenant_C']=="REN")
{
$sql = 'SELECT id as `code`, libelleCollege as libelle FROM college
where (idPolice=?) order by 2';
} else
{
$sql = 'SELECT id as `code`, libelleCollege as libelle FROM college
where (idPolice=?) and (garantieArchive="1") order by 2';
}
$liste = $this->executerRequete($sql, array($idPolice));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getListeToutes($idPolice) {
$sql = 'SELECT id as `code`, libelleCollege as libelle FROM college where (idPolice=?) order by 2';
$liste = $this->executerRequete($sql, array($idPolice));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getRapportSpCollege($idCollege, $dateReference)
{
$sql = 'call sp_rapport_sp_college(?, ?)';
$sppolice = $this->executerRequete($sql, array($idCollege, $dateReference));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function refuserderogationmedicament($idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_refuser_derogation_medicament(?, ?)';
$resultat = $this->executerRequete($sql, array($idCollege, $user));
}
public function accorderderogationmedicament($idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_accorder_derogation_medicament(?, ?)';
$resultat = $this->executerRequete($sql, array($idCollege, $user));
}
public function archiveradherent($idAherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_archiver_adherent(?, ?)';
$resultat = $this->executerRequete($sql, array($idAherent, $user));
}
public function desarchiveradherent($idAherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_de_archiver_adherent(?, ?)';
$resultat = $this->executerRequete($sql, array($idAherent, $user));
}
public function archiverbeneficiaire($idBeneficiaire)
{
$user = $_SESSION['login'];
$sql = 'call sp_archiver_beneficiaire(?, ?)';
$resultat = $this->executerRequete($sql, array($idBeneficiaire, $user));
}
public function desarchiverbeneficiaire($idBeneficiaire)
{
$user = $_SESSION['login'];
$sql = 'call sp_de_archiver_beneficiaire(?, ?)';
$resultat = $this->executerRequete($sql, array($idBeneficiaire, $user));
}
public function fn_get_college_familiale($idPolice)
{
$sql = 'SELECT fn_get_college_familiale(?) AS dernierIdCollege;';
$resultat = $this->executerRequete($sql, array($idPolice));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$dernierIdCollege = $ligne['dernierIdCollege'];
$_SESSION['dernierIdCollege'] = $dernierIdCollege;
return $dernierIdCollege;
}
}

View File

@ -24,16 +24,13 @@ class Localite extends Modele {
WHERE (A.codeSociete=?) AND (A.id=?)';
$localite = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($localite->rowCount() > 0)
return $localite->fetch();
else
throw new Exception("Aucune localité ne correspond à cet id : '$id'");
return $localite->fetch(PDO::FETCH_ASSOC);
}
public function getNombreLocalite()
{
$sql = 'select count(*) as nbLocalite FROM localite A WHERE (A.codeSociete=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['nbLocalite'];
}
@ -61,7 +58,7 @@ class Localite extends Modele {
public function getListe($codePays=null, $codeVille=null) {
$codePays = contruireParam($codePays);
$codeVille = contruireParam($codeVille);
$sql = 'SELECT codeLocalite as code, libelle FROM localite
$sql = 'SELECT codeLocalite as `code`, libelle FROM localite
WHERE (codeSociete=? AND codePays=? AND codeVille=?) order by libelle';
$liste = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codePays, $codeVille));

View File

@ -1,7 +1,8 @@
<?php
require_once 'Framework/Modele.php';
class Naturepiece extends Modele {
class Naturepiece extends Modele
{
public function getNaturepieces($codeNaturePiece=null,$libelle=null) {
$codeNaturePiece = contruireParamLike($codeNaturePiece);
@ -18,16 +19,13 @@ class Naturepiece extends Modele {
FROM naturepiece A WHERE (A.codeSociete=?) AND (A.id=?)';
$naturepiece = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($naturepiece->rowCount() > 0)
return $naturepiece->fetch();
else
throw new Exception("Aucune naturepiece ne correspond à cet id : '$id'");
return $naturepiece->fetch(PDO::FETCH_ASSOC);
}
public function getNombreNaturepiece()
{
$sql = 'select count(*) as nbNaturepiece FROM naturepiece A WHERE (A.codeSociete=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['nbNaturepiece'];
}
@ -52,11 +50,19 @@ class Naturepiece extends Modele {
return ($resultat->rowCount() > 0);
}
public function getListe() {
$sql = 'SELECT codeNaturePiece as code, libelle FROM naturepiece
WHERE (codeSociete=?) order by ordre, libelle';
public function getListe()
{
if (est_anglophone())
{
$sql = 'SELECT codeNaturePiece as `code`, libelleEng as libelle FROM naturepiece WHERE (codeSociete=?) order by ordre, libelle';
}
else
{
$sql = 'SELECT codeNaturePiece as `code`, libelle FROM naturepiece WHERE (codeSociete=?) order by ordre, libelle';
}
$liste = $this->executerRequete($sql, array($_SESSION['codeSociete']));
$liste = $this->executerRequete($sql, array($_SESSION['codeSociete']));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
}

View File

@ -3,9 +3,16 @@ require_once 'Framework/Modele.php';
class Ouinon extends Modele {
public function getListe() {
$sql = 'SELECT "1" as code, "Oui" libelle
union SELECT "0" as code, "Non" libelle';
public function getListe()
{
if (est_anglophone())
{
$sql = 'SELECT "1" as `code`, "Yes" libelle union SELECT "0" as `code`, "No" libelle';
}
else
{
$sql = 'SELECT "1" as `code`, "Oui" libelle union SELECT "0" as `code`, "Non" libelle';
}
$liste = $this->executerRequete($sql);
return $liste->fetchAll(PDO::FETCH_ASSOC);

View File

@ -17,16 +17,13 @@ class Pays extends Modele {
FROM pays A WHERE (A.codeSociete=?) AND (A.id=?)';
$pays = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($pays->rowCount() > 0)
return $pays->fetch();
else
throw new Exception("Aucune pays ne correspond à cet id : '$id'");
return $pays->fetch(PDO::FETCH_ASSOC);
}
public function getNombrePays()
{
$sql = 'select count(*) as nbPays FROM pays A WHERE (A.codeSociete=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['nbPays'];
}
@ -53,7 +50,7 @@ class Pays extends Modele {
public function getListe($codePaysDefault=null) {
$codePaysDefault = contruireParam($codePaysDefault);
$sql = 'SELECT case when codePays = ? then "0" else "1" end as ordre, codePays as code, libelle
$sql = 'SELECT case when codePays = ? then "0" else "1" end as ordre, codePays as `code`, libelle
FROM pays WHERE (codeSociete=?) order by 1, libelle';
$liste = $this->executerRequete($sql, array($codePaysDefault, $_SESSION['codeSociete']));

View File

@ -18,7 +18,7 @@ class Police extends Modele {
$_SESSION['nomGcAssureur_C'] = $context['garant'];
$_SESSION['numeroPolice_C'] = $context['numeroPolice'];
$_SESSION['codeTypeContrat'] = $context['codeTypeContrat'];
$_SESSION['codeTypeContrat_C'] = $context['codeTypeContrat'];
$_SESSION['codeEtape_C'] = $context['codeEtape'];
$_SESSION['tauxTaxe_C'] = $context['tauxTaxe'];

View File

@ -3,10 +3,19 @@ require_once 'Framework/Modele.php';
class Sexe extends Modele {
public function getListe() {
$sql = 'SELECT codeSexe as code, libelle FROM sexe order by 1 DESC';
public function getListe()
{
if (est_anglophone())
{
$sql = 'SELECT codeSexe as `code`, libelleEng as libelle FROM sexe order by 1 DESC';
}
else
{
$sql = 'SELECT codeSexe as `code`, libelle FROM sexe order by 1 DESC';
}
$liste = $this->executerRequete($sql);
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
}

View File

@ -3,10 +3,19 @@ require_once 'Framework/Modele.php';
class Situationfamille extends Modele {
public function getListe() {
$sql = 'SELECT codeSituationFamille as code, libelle FROM situationfamille order by ordre';
public function getListe()
{
if (est_anglophone())
{
$sql = 'SELECT codeSituationFamille as `code`, libelleEng as libelle FROM situationfamille order by ordre';
}
else
{
$sql = 'SELECT codeSituationFamille as `code`, libelle FROM situationfamille order by ordre';
}
$liste = $this->executerRequete($sql);
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
}

View File

@ -19,16 +19,13 @@ class Ville extends Modele {
WHERE (A.codeSociete=?) AND (A.id=?)';
$ville = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($ville->rowCount() > 0)
return $ville->fetch();
else
throw new Exception("Aucune ville ne correspond à cet id : '$id'");
return $ville->fetch(PDO::FETCH_ASSOC);
}
public function getNombreVille()
{
$sql = 'select count(*) as nbVille FROM ville A WHERE (A.codeSociete=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
$ligne = $resultat->fetch();
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['nbVille'];
}
@ -55,7 +52,7 @@ class Ville extends Modele {
public function getListe($codePays=null) {
$codePays = contruireParam($codePays);
$sql = 'SELECT codeVille as code, libelle FROM ville
$sql = 'SELECT codeVille as `code`, libelle FROM ville
WHERE (codeSociete=? AND codePays=?) order by libelle';
$liste = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codePays));

View File

@ -0,0 +1,24 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Consultercollege");
}
else
{
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm));
}
?>

View File

@ -0,0 +1,265 @@
<?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->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC1")
{
$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 Partys 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(); // Page 2
// $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, Provincial and Referral hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, All pharmacies that have partnership with RADIANT INSURANCE COMPANY.
The insured shall a 10% co-pay in public health and pharmacies.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage(); // Page 3
// $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 Frames");
$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 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% 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(); // Page 3
// $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 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);
?>

View File

@ -0,0 +1,269 @@
<?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 YUBWISHINGIZI BWO KWIVUZA BWUMUNTU KU GITI CYE HAMWE NABAGIZE 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 yamavuko"),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 yindangamuntu"),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 yukwezi 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 yimyaka 18 na 65, uwo bashakanye nabana babo batarengeje imyaka 21 nkuko bagaragara mu mbonerahamwe iri hasi hamwe nimisanzu 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 yamavuko'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('No yubwishingizi'),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 yubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse nubundi 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 zubuvuzi zitangirwa mu bigo nderabuzima, ibitaro byuturere nintara. ibitaro bya gisirikare byi Kanombe, CHUB, CHUK, nibitaro 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 yibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi.
Nyuma yitangira ryaya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nkumuryango.
Abagize umuryango wuwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% byamafaranga yishyuwe nuwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka wamasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo nimyaka yamavuko byashyikirijwe RADIANT INSURANCE COMPANY.
Buri wese ahabwa ikarita yubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse nibyo 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 bwuwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi nabagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu yumwaka 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 zuburwayi;
- Ubuvuzi nimiti yibibazo byo kubura urubyaro;
- Imbago, inyunganirangingo ninsimburangingo;
- Indorerwamo zamaso
- Ibijyanye no kuyungurura impyiko (diyalize), imiti ya diabete, imiti yibibazo byumuvuduko wamaraso nibindi bikorwa cyangwa ibizamini byihariye bitagendanye nuburwayi;
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa ku mwaka ukurikiyeho wubwishingizi kandi mu gihe amasezerano yahise avugururwa ku itariki yagombaga kurangiriraho;
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro nibigonderabuzima bya Leta.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RYAMASEZERANO"),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 bwuwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
Aya masezerano yemejwe nimpande 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);
?>

View File

@ -0,0 +1,275 @@
<?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 Partys 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);
?>

View File

@ -0,0 +1,274 @@
<?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']=="FC2")
{
$pdf->SetFillColor(135,206,250); // bleu
$text = convertirc("AMASEZERANO YUBWISHINGIZI BWO KWIVUZA BWUMUNTU KU GITI CYE HAMWE NABAGIZE 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 yamavuko"),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 yindangamuntu"),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 yukwezi 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->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 yimyaka 18 na 65, uwo bashakanye nabana babo batarengeje imyaka 21 nkuko bagaragara mu mbonerahamwe iri hasi hamwe nimisanzu 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 yamavuko'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('No yubwishingizi'),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 yubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse nubundi 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 zubuvuzi zitangirwa mu bigo nderabuzima, ibitaro byuturere nintara. ibitaro bya gisirikare byi Kanombe, CHUB, CHUK, nibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. Bahabwa kandi serivisi zitangirwa mu mavuriro yigenga agaragara ku rutonde ruri ku mugereka waya masezerano.
Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','BI', 10);
$text = convertirc("ICYITONDERWA: Amavuriro amwe ashobora kuvanwa cyangwa kwiyongera kuri uru rutonde igihe icyo ari cyo cyose biturutse ku masezerano yimikoranire RADIANT INSURANCE COMPANY LTD yagiranye namavuriro ndetse na Farumasi. Igihe urutonde ruhindutse, uwishingiwe abimenyeshwa binyuze kuri nomero ya telephone cyangwa aderesi imeyili yatanze igihe yafataga ubwishingizi.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Uwishingiwe yishyura buri 10% kuri fagitire yibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi na 15% mu mavuriro yigenga.
Nyuma yitangira ryaya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nkumuryango.
Abagize umuryango wuwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 75% byamafaranga yishyuwe nuwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 37.5% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka wamasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo nimyaka yamavuko byashyikirijwe RADIANT INSURANCE COMPANY.");
$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 bwuwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi nabagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu yumwaka 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 zuburwayi;
- Ubuvuzi nimiti yibibazo byo kubura urubyaro;
- Imbago, inyunganirangingo ninsimburangingo;
- Indorerwamo zamaso
- Ibijyanye no kuyungurura impyiko (diyalize), nibindi bikorwa cyangwa ibizamini byihariye bitagendanye nuburwayi;
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa guhera hashize amezi 10 umuntu afashe ubwishingizi igihe ari ubwa mbere abufashe ndetse nigihe amasezerano ahise avugururwa ku munsi yarangiriyeho.
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro nibigonderabuzima bya Leta.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RYAMASEZERANO"),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 bwuwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
Aya masezerano yemejwe nimpande 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);
?>

View File

@ -0,0 +1,675 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
// $tableauajustementcps = $this->police->gettableauAjustementCP($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(40);
$pdf->SetFillColor(135,206,250); // bleu
if($entetecp['codeTypeContrat'] == "G")
{
$pdf->Cell(0,$ht,convertirc("CONTRAT - GROUPE D'ASSURANCE SANTE"),1,1,'C',true);
}
else
{
$pdf->Cell(0,$ht,convertirc("CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true);
}
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(50,$ht,convertirc("No POLICE"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(50,$ht,convertirc("SOUSCRITE PAR"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("En qualité de CONTRACTANT "),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Le présent contrat est constitué et régi par les CONDITIONS PARTICULIERES, les DISPOSITIONS"),0,1,'C',false);
$pdf->Cell(0,$ht,convertirc("SPECIALES ainsi que par les CONDITIONS GENERALES."),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Il a pour objet la garantie suivante :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("CONDITIONS PARTICULIERES"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat ");
$text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']);
$text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à ");
$text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
foreach ($collegecps as $collegecp)
{
$pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2 : PRISE DEFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées ");
$text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec ");
$text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Ainsi, chaque assuré aura une carte dassurance maladie quil va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via lapplication de MEDICOR. Cela va permettre aussi à lassuré de voir en temps réel où il en est avec sa limite de couverture. ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période dun mois avant de bénéficier de lassurance santé ; exception faite des cas daccident.
Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU CONTRAT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Le présent contrat est souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']."
Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité.
Ainsi, sont prises en charge les prestations médicales suivantes :
- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques.
- Les conditions de prématurité sont couvertes
- L'IRM et d'autres tests spéciaux sont tous couverts
- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande
le remboursement ou la différence à RDIANT INSURANCE COMPANY (applicable pour les options avec ticket modérateur)
- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable
- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant
- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance sappliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir dune zone les équipements indispensables nexistent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé).
- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. Lassuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser lassureur au moins 3 jours avant afin de lui permettre daviser les prestatires désignés par lassuré (seulement pour ceux qui ont une couverture extraterritoriale).
- Traitement en Inde le cas échéant,sur base dun rapport médical dun medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de lAfrique de lEst avec l'approbation préalable de RDIANT INSURANCE COMPANY
- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.
- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger
- La chambre individuelle est couverte
- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte
- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata
- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge
- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement.
- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré.
- La liste de tous les partenaires de RDIANT INSURANCE COMPANY est jointe à cette offre technique
- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec RDIANT INSURANCE COMPANY et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques.
- Délai maximum de remboursement en cas de paiement direct il n y a pas de partenariat et après réception de tous les documents requis : 2 jours
- Gestion commune avec l'employeur des cas de fraudes
- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner.
- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement.
- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, RDIANT INSURANCE COMPANY peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste.
Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableau ci-dessous :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['codeProduit']." : ".$tableaupretationcp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleCollege'];
}
// $pdf->AddPage();
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['codeProduit']." : ".$garantiescollegecp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleCollege'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de lecheance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
// $pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties définies ci-dessus sont accordées moyennant des cotisations de :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoireBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total Général"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($entetecp['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total Général"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($entetecp['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT DE LA PRIME"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à lassuré pour le règlement d'un acompte sur le renouvellement.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes (déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Pour associer lassuré à l'évolution des consommations, un rapport dutilisation trimestriel lui sera régulièrement transmis.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Traitement cosmétique et chirurgie esthétique
- Blessures dues à la participation aux jeux et activités dangereuses
- Blessures dues à la participation aux greves et émeutes
- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance
- Traitement prophylactique, les compléments alimentaires
- Cardiopathie ischemique
- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue
- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins)
- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers
- Coût d'appareils auditifs, à moins quil résulte dun accident
- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident
- Frais recouvrables en vertu de la Loi sur lIndemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes dindemnisation de l'INSS ou tout autre régime sauf sur demande préalable de lassuré et moyennant une prime correspondante");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("POUR RDIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("POUR LASSURE"),0,1,'R',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',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);
?>

View File

@ -0,0 +1,578 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($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(40);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("MEDICOR HEALTH INSURANCE"),1,1,'C',true);
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No Policy"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("SUBSCRIBER"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
foreach ($collegecps as $collegecp)
{
$pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured:
- From the effective date of the contract for persons to be insured who are already in the Contractor's service.
- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage.
- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].".
It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one months notice before its expiry.
No obligation to renew the contract is incubent upon the parties. RDIANT INSURANCE COMPANY reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness.
Thus, the following medical benefits are covered:
-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases.
-conditions of prematurity are covered
-MRI and other special tests are all covered
-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to RDIANT INSURANCE COMPANY (applicable for options with co-payment)
- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs.
However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization.
-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student.
-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized)
-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage).
-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of RDIANT INSURANCE COMPANY.
-The extension in East African countries is covered within the limit of coverage for dependents of the insured.
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad
-The single room is covered
-Automatic addition of a newborn and/or spouse without additional premium except card fees
-Automatic addition of a new member with a prorated premium
-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated
-pro rata, if no medical service has been paid for him and his dependents
-The issue of health insurance cards within 7 days of notification and/or proof of payment.
-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].".
-The list of all RDIANT INSURANCE COMPANY partners is attached to this technical offer
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
For expenses paid to a provider who has no partnership with RDIANT INSURANCE COMPANY and which has not been terminated or suspended for fault or bad practice.
-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days
-Joint management with the employer of cases of fraud
-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate.
-The list of staff and reports of medical consumption will be provided monthly.
-If the limit of the insured person is exceeded during the insurance period, RDIANT INSURANCE COMPANY may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctors degree, surgeon or dental surgeon.
No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer.
The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer.
The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances.
For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed.
Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students.
This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor.
In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleCollege'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleCollege'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractors service, or dies.
In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods.");
$pdf->MultiCell(0, $ht, $text);
// $pdf->AddPage();
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insureds membership.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The guarantees defined above will be granted with :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal.
The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year.
To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Cosmetic treatment and cosmetic surgery
- Injuries due to participation in games and dangerous activities
- Injuries due to participation in strikes and riots
- Fertility treatment, namely treatment costs related to infertility and impotence
- Prophylactic treatment, dietary supplements
-Ischemic heart disease
- Intentional self-harm, suicide or the influence of alcohol or drugs
- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas)
- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers
- Cost of hearing aids, unless resulting from an accident
- Nervous breakdown, psychoneurosis, unless it results from an accident");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art.
In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility.
The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("FOR RDIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false);
/*
$fichier="Temp/TMP_particuliars_conditions"."_".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);
?>

View File

@ -0,0 +1,33 @@
<?php
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Creercolleged");
}
else
{
$this->college_temp->enregistrer($idCollegeTemp);
$this->rediriger("Fichedevis");
}
?>

View File

@ -0,0 +1,18 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp);
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'optionstarif' => $optionstarif,
'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond));
?>

View File

@ -0,0 +1,8 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$user = $this->requete->getSession()->getAttribut('login');
$idCollegeTemp = $this->college_temp->initCollege($idPolice, $user);
$this->rediriger("Creercolleged");
?>

View File

@ -0,0 +1,32 @@
<?php
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Creercollege");
}
else
{
$this->college_temp->enregistrer($idCollegeTemp);
$this->rediriger("Collegepolice");
}
?>

View File

@ -0,0 +1,16 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond));
?>

View File

@ -0,0 +1,8 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$user = $this->requete->getSession()->getAttribut('login');
$idCollegeTemp = $this->college_temp->initCollege($idPolice, $user);
$this->rediriger("Creercollege");
?>

View File

@ -0,0 +1,694 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($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(40);
$pdf->SetFillColor(135,206,250); // bleu
if($entetecp['codeTypeContrat'] == "G")
{
$pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE"),1,1,'C',true);
}
else
{
$pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true);
}
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No DEVIS"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
// $pdf->Cell(0,$ht,convertirc("En qualité de PROSPECT "),0,0,'C',false);
// $pdf->Cell(0,$ht,convertirc("En qualité de CLIENT "),0,0,'C',false);
$pdf->Cell(0,$ht,convertirc("En qualité d'Assuré "),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Le futur contrat aura pour objet la garantie suivante :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("DISPOSITIONS PARTICULIERES"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat ");
$text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']);
$text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à ");
$text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$oldnumeroOptionTarif = "0";
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$categorie = "0";
foreach ($collegecps as $collegecp)
{
$numeroOptionTarif = $collegecp['numeroOptionTarif'];
if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0")
{
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$oldnumeroOptionTarif),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$pdf->Ln(5);
}
if($categorie!=$collegecp['numeroOptionTarif'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','', 9);
$pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
$nbAdherent += $collegecp['nbAdherent'];
$nbAyantdroit += $collegecp['nbAyantdroit'];
$primeTtcAdherent += $collegecp['primeTtcAdherent'];
$primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire'];
$primeTtcTotal += $collegecp['primeTtcTotal'];
$oldnumeroOptionTarif = $numeroOptionTarif;
$categorie = $collegecp['numeroOptionTarif'];
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$pdf->Ln(5);
$text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2 : PRISE DEFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées ");
$text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec ");
$text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Ainsi, chaque assuré aura une carte dassurance maladie quil va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via lapplication de MEDICOR. Cela va permettre aussi à lassuré de voir en temps réel où il en est avec sa limite de couverture. ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période dun mois avant de bénéficier de lassurance santé ; exception faite des cas daccident.
Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU FUTUR CONTRAT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Le contrat sera souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']."
Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité.
Ainsi, sont prises en charge les prestations médicales suivantes :
- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques.
- Les conditions de prématurité sont couvertes
- L'IRM et d'autres tests spéciaux sont tous couverts
- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande
le remboursement ou la différence à BICOR VIE ET CAPITALISATION (applicable pour les options avec ticket modérateur)
- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable
- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant
- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance sappliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir dune zone les équipements indispensables nexistent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé).
- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. Lassuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser lassureur au moins 3 jours avant afin de lui permettre daviser les prestatires désignés par lassuré (seulement pour ceux qui ont une couverture extraterritoriale).
- Traitement en Inde le cas échéant,sur base dun rapport médical dun medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de lAfrique de lEst avec l'approbation préalable de BICOR VIE ET CAPITALISATION
- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.
- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger
- La chambre individuelle est couverte
- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte
- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata
- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge
- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement.
- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré.
- La liste de tous les partenaires de BICOR VIE ET CAPITALISATION est jointe à cette offre technique
- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec BICOR VIE ET CAPITALISATION et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques.
- Délai maximum de remboursement en cas de paiement direct il n y a pas de partenariat et après réception de tous les documents requis : 2 jours
- Gestion commune avec l'employeur des cas de fraudes
- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner.
- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement.
- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, BICOR VIE ET CAPITALISATION peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste.
Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableaux ci-dessous :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleComplet'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleComplet'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de lecheance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
// $pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties définies ci-dessus seront accordées moyennant des cotisations de :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
// $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à lassuré pour le règlement d'un acompte sur le renouvellement.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes(déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Pour associer lassuré à l'évolution des consommations, un rapport dutilisation trimestriel lui sera régulièrement transmis.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Traitement cosmétique et chirurgie esthétique
- Blessures dues à la participation aux jeux et activités dangereuses
- Blessures dues à la participation aux greves et émeutes
- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance
- Traitement prophylactique, les compléments alimentaires
- Cardiopathie ischemique
- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue
- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins)
- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers
- Coût d'appareils auditifs, à moins quil résulte dun accident
- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident
- Frais recouvrables en vertu de la Loi sur lIndemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes dindemnisation de l'INSS ou tout autre régime sauf sur demande préalable de lassuré et moyennant une prime correspondante");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("POUR BICOR VIE ET CAPITALISATION"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("POUR LASSURE"),0,1,'R',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false);
$fichier="Temp/TMP_devis"."_".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;
?>

View File

@ -0,0 +1,681 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($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(40);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("MEDICOR PROPOSAL HEALTH INSURANCE"),1,1,'C',true);
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No Quotation"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$oldnumeroOptionTarif = "0";
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$categorie = "0";
foreach ($collegecps as $collegecp)
{
$numeroOptionTarif = $collegecp['numeroOptionTarif'];
if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0")
{
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total : Option ".$oldnumeroOptionTarif),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$pdf->Ln(5);
}
if($categorie!=$collegecp['numeroOptionTarif'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','', 9);
$pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
$nbAdherent += $collegecp['nbAdherent'];
$nbAyantdroit += $collegecp['nbAyantdroit'];
$primeTtcAdherent += $collegecp['primeTtcAdherent'];
$primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire'];
$primeTtcTotal += $collegecp['primeTtcTotal'];
$oldnumeroOptionTarif = $numeroOptionTarif;
$categorie = $collegecp['numeroOptionTarif'];
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured:
- From the effective date of the contract for persons to be insured who are already in the Contractor's service.
- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage.
- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].".
It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one months notice before its expiry.
No obligation to renew the contract is incubent upon the parties. BICOR VIE ET CAPITALISATION reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness.
Thus, the following medical benefits are covered:
-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases.
-conditions of prematurity are covered
-MRI and other special tests are all covered
-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to BICOR VIE ET CAPITALISATION (applicable for options with co-payment)
- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs.
However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization.
-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student.
-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized)
-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage).
-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of BICOR VIE ET CAPITALISATION.
-The extension in East African countries is covered within the limit of coverage for dependents of the insured.
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad
-The single room is covered
-Automatic addition of a newborn and/or spouse without additional premium except card fees
-Automatic addition of a new member with a prorated premium
-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated
-pro rata, if no medical service has been paid for him and his dependents
-The issue of health insurance cards within 7 days of notification and/or proof of payment.
-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].".
-The list of all BICOR VIE ET CAPITALISATION partners is attached to this technical offer
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
For expenses paid to a provider who has no partnership with BICOR VIE ET CAPITALISATION and which has not been terminated or suspended for fault or bad practice.
-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days
-Joint management with the employer of cases of fraud
-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate.
-The list of staff and reports of medical consumption will be provided monthly.
-If the limit of the insured person is exceeded during the insurance period, BICOR VIE ET CAPITALISATION may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctors degree, surgeon or dental surgeon.
No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer.
The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer.
The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances.
For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed.
Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students.
This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor.
In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleComplet'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleComplet'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractors service, or dies.
In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods.");
$pdf->MultiCell(0, $ht, $text);
// $pdf->AddPage();
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insureds membership.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The guarantees defined above will be granted with :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal.
The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year.
To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Cosmetic treatment and cosmetic surgery
- Injuries due to participation in games and dangerous activities
- Injuries due to participation in strikes and riots
- Fertility treatment, namely treatment costs related to infertility and impotence
- Prophylactic treatment, dietary supplements
-Ischemic heart disease
- Intentional self-harm, suicide or the influence of alcohol or drugs
- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas)
- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers
- Cost of hearing aids, unless resulting from an accident
- Nervous breakdown, psychoneurosis, unless it results from an accident");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art.
In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility.
The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("FOR BICOR VIE ET CAPITALISATION"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false);
$fichier="Temp/TMP_proposal"."_".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;
?>

View File

@ -0,0 +1,130 @@
<?php
// kane 23/09/2025 => rendre la carte personalisable par societeuser
// Fond blanc
$pdf->SetFillColor(255, 255, 255);
$pdf->Rect(0, 0, 85.6, 54, 'F');
// LOGO SOCIÉTÉ en haut à gauche
if (file_exists($logoSocietePath)) {
$logoGarantPath = $logoSocietePath;
$pdf->Image($logoSocietePath, 3, 3, 15);
}
// LOGO GARANT en haut à droite
//if (file_exists($logoGarantPath)) {
if (is_file($logoGarantPath)) {
$pdf->Image($logoGarantPath, 67, 3, 15);
}
// EN-TÊTE : "CARTE D'ASSURANCE"
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetTextColor(33, 46, 83);
$pdf->SetXY(0, 5);
// $pdf->Cell(85.6, 4, utf8_decode(_('CARTE SANTÉ')), 0, 1, 'C');
$pdf->Cell(85.6, 4, mb_convert_encoding(_('CARTE SANTÉ'), "ISO-8859-1", "UTF-8"), 0, 1, 'C');
$pdf->SetTextColor(0);
// Informations de contact de la société
$pdf->SetFont('Arial', '', 5);
$pdf->SetXY(0, 9);
$pdf->MultiCell(85.6, 3, mb_convert_encoding(_('Siège social').': '. $assure['adresseGeoSociete'].' ', "ISO-8859-1", "UTF-8"), 0, 'C');
$pdf->SetXY(0, 12);
$pdf->Cell(85.6, 3, mb_convert_encoding(_('Tél.').': '.$assure['telephoneSociete'], "ISO-8859-1", "UTF-8"), 0, 1, 'C');
// Ligne séparatrice
$pdf->Line(5, 15, 80, 15);
// Section "Bénéficiaire"
$pdf->SetFont('Arial', 'BUI', 7);
$pdf->SetXY(5, 17);
$pdf->SetTextColor(33, 46, 83);
$pdf->Cell(30, 4, mb_convert_encoding(_('Bénéficiaire'), "ISO-8859-1", "UTF-8"), 0, 1);
$pdf->SetTextColor(0);
// Matricule - en gras et rouge
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 21);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Matricule'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetTextColor(255, 0, 0);
$pdf->Cell(25, 3, ' : '.$assure['numeroBeneficiaire'], 0, 1);
$pdf->SetTextColor(0);
// Nom
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 24);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Nom'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(30, 3, ' : '.substr(mb_convert_encoding($assure['nomBeneficiaire'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1);
// Prénoms
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 27);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Prénoms'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(25, 3, ' : '.substr(mb_convert_encoding($assure['prenomsBeneficiaire'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1);
// Né(e) le - si disponible
if (!empty($assure['dateNaissance'])) {
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 30);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Né(e) le'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(25, 3, ' : '.dateLang($assure['dateNaissance'], $_SESSION['lang']), 0, 1);
}
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 33);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Statut'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(28, 3, ' : '.substr(mb_convert_encoding($assure['lienparente'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1);
// Section "Assuré Principal"
$pdf->SetFont('Arial', 'BUI', 7);
$pdf->SetXY(5, 38);
$pdf->SetTextColor(33, 46, 83);
$pdf->Cell(30, 4, mb_convert_encoding(_('Assuré Principal'), "ISO-8859-1", "UTF-8"), 0, 1);
$pdf->SetTextColor(0);
// Numéro assuré - en gras et rouge
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 42);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Matricule'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetTextColor(255, 0, 0);
$pdf->Cell(25, 3, ' : '.$assure['numeroAdherent'], 0, 1);
$pdf->SetTextColor(0);
// Nom et Prénoms assuré
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 45);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Nom & prénoms'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(15, 3, ' : '.substr(mb_convert_encoding($assure['adherent'], "ISO-8859-1", "UTF-8"), 0, 15), 0, 1);
// Photo de l'assuré (positionnée à droite) - taille réduite
$photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto'];
$photoX = 57;
$photoY = 17;
// Vérifier si l'URL est accessible
$headers = @get_headers($photoPath);
if (!empty($assure['lienPhoto']) && $headers && strpos($headers[0], '200')) {
$pdf->Image($photoPath, $photoX, $photoY, 25, 25); // Réduction de 30x30 à 25x25
} else {
// Cadre pour la photo si non disponible
$pdf->Rect($photoX, $photoY, 25, 25);
$pdf->SetFont('Arial', '', 4);
$pdf->SetXY($photoX, $photoY + 12);
$pdf->Cell(25, 3, mb_convert_encoding(_('Photo non disponible'), "ISO-8859-1", "UTF-8"), 0, 1, 'C');
}
// Nom du souscripteur en bas
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetXY(0, 49);
$pdf->Cell(85.6, 3, mb_convert_encoding($assure['souscripteur'], "ISO-8859-1", "UTF-8"), 0, 1, 'C');

View File

@ -0,0 +1,46 @@
<?php
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif");
$_SESSION['numeroOptionTarif'] = $numeroOptionTarif;
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$ageMoyen = $this->requete->getParametreFormulaire("ageMoyen","numerique");
$delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique");
$plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique");
$plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire, $ageMoyen);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Modifiercolleged");
}
else
{
$this->college_temp->modifiercollege($idCollegeTemp, $idCollege);
$this->rediriger("Fichedevis");
}
?>

View File

@ -0,0 +1,33 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Modifiercolleged");
}
else
{
$idPolice = $_SESSION['idPolice_d_C'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'ouinonimposerplafond' => $this->ouinonimposerplafond, 'optionstarif' => $optionstarif));
}
?>

View File

@ -0,0 +1,37 @@
<?php
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique");
$plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique");
$plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Modifiercollege");
}
else
{
$this->college_temp->modifiercollege($idCollegeTemp, $idCollege);
$this->rediriger("Collegepolice");
}
?>

View File

@ -0,0 +1,27 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Modifiercollege");
}
else
{
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'ouinonimposerplafond' => $this->ouinonimposerplafond));
}
?>

View File

@ -0,0 +1,24 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Consultercollege");
}
else
{
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm));
}
?>

View File

@ -0,0 +1,253 @@
<?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);
$listeassures = $this->police->getcpfclisteassures($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC1")
{
$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 Partys 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(); // Page 2
// $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, Provincial and Referral hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, All pharmacies that have partnership with RADIANT INSURANCE COMPANY.
The insured shall a 10% co-pay in public health and pharmacies.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage(); // Page 3
// $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 Frames");
$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 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% 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(); // Page 3
// $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 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;
?>

View File

@ -0,0 +1,255 @@
<?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);
$listeassures = $this->police->getcpfclisteassures($idPolice);
$pdf = new FPDF();
$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 YUBWISHINGIZI BWO KWIVUZA BWUMUNTU KU GITI CYE HAMWE NABAGIZE 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 yamavuko"),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 yindangamuntu"),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 yukwezi 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 yimyaka 18 na 65, uwo bashakanye nabana babo batarengeje imyaka 21 nkuko bagaragara mu mbonerahamwe iri hasi hamwe nimisanzu 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 yamavuko'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('No yubwishingizi'),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 yubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse nubundi 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 zubuvuzi zitangirwa mu bigo nderabuzima, ibitaro byuturere nintara. ibitaro bya gisirikare byi Kanombe, CHUB, CHUK, nibitaro 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 yibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi.
Nyuma yitangira ryaya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nkumuryango.
Abagize umuryango wuwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% byamafaranga yishyuwe nuwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka wamasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo nimyaka yamavuko byashyikirijwe RADIANT INSURANCE COMPANY.
Buri wese ahabwa ikarita yubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse nibyo 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 bwuwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi nabagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu yumwaka 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 zuburwayi;
- Ubuvuzi nimiti yibibazo byo kubura urubyaro;
- Imbago, inyunganirangingo ninsimburangingo;
- Indorerwamo zamaso
- Ibijyanye no kuyungurura impyiko (diyalize), imiti ya diabete, imiti yibibazo byumuvuduko wamaraso nibindi bikorwa cyangwa ibizamini byihariye bitagendanye nuburwayi;
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa ku mwaka ukurikiyeho wubwishingizi kandi mu gihe amasezerano yahise avugururwa ku itariki yagombaga kurangiriraho;
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro nibigonderabuzima bya Leta.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RYAMASEZERANO"),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 bwuwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
Aya masezerano yemejwe nimpande 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;
?>

View File

@ -0,0 +1,261 @@
<?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);
$listeassures = $this->police->getcpfclisteassures($idPolice);
$pdf = new FPDF();
$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 Partys 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 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% 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;
?>

View File

@ -0,0 +1,261 @@
<?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);
$listeassures = $this->police->getcpfclisteassures($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=8;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC2")
{
$pdf->SetFillColor(135,206,250); // bleu
$text = convertirc("AMASEZERANO YUBWISHINGIZI BWO KWIVUZA BWUMUNTU KU GITI CYE HAMWE NABAGIZE 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 yamavuko"),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 yindangamuntu"),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 yukwezi 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->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 yimyaka 18 na 65, uwo bashakanye nabana babo batarengeje imyaka 21 nkuko bagaragara mu mbonerahamwe iri hasi hamwe nimisanzu 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 yamavuko'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('No yubwishingizi'),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 yubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse nubundi 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 zubuvuzi zitangirwa mu bigo nderabuzima, ibitaro byuturere nintara. ibitaro bya gisirikare byi Kanombe, CHUB, CHUK, nibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. Bahabwa kandi serivisi zitangirwa mu mavuriro yigenga agaragara ku rutonde ruri ku mugereka waya masezerano.
Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','BI', 10);
$text = convertirc("ICYITONDERWA: Amavuriro amwe ashobora kuvanwa cyangwa kwiyongera kuri uru rutonde igihe icyo ari cyo cyose biturutse ku masezerano yimikoranire RADIANT INSURANCE COMPANY LTD yagiranye namavuriro ndetse na Farumasi. Igihe urutonde ruhindutse, uwishingiwe abimenyeshwa binyuze kuri nomero ya telephone cyangwa aderesi imeyili yatanze igihe yafataga ubwishingizi.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Uwishingiwe yishyura buri 10% kuri fagitire yibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi na 15% mu mavuriro yigenga.
Nyuma yitangira ryaya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nkumuryango.
Abagize umuryango wuwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% byamafaranga yishyuwe nuwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka wamasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo nimyaka yamavuko byashyikirijwe RADIANT INSURANCE COMPANY.
Buri wese ahabwa ikarita yubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse nibyo 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 bwuwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi nabagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu yumwaka 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 zuburwayi;
- Ubuvuzi nimiti yibibazo byo kubura urubyaro;
- Imbago, inyunganirangingo ninsimburangingo;
- Indorerwamo zamaso
- Ibijyanye no kuyungurura impyiko (diyalize), nibindi bikorwa cyangwa ibizamini byihariye bitagendanye nuburwayi;
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa guhera hashize amezi 10 umuntu afashe ubwishingizi igihe ari ubwa mbere abufashe ndetse nigihe amasezerano ahise avugururwa ku munsi yarangiriyeho.
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro nibigonderabuzima bya Leta.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RYAMASEZERANO"),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 bwuwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
Aya masezerano yemejwe nimpande 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;
?>

View File

@ -0,0 +1,662 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
// $tableauajustementcps = $this->police->gettableauAjustementCP($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
if($entetecp['codeTypeContrat'] == "G")
{
$pdf->Cell(0,$ht,convertirc("CONTRAT - GROUPE D'ASSURANCE SANTE"),1,1,'C',true);
}
else
{
$pdf->Cell(0,$ht,convertirc("CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true);
}
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(50,$ht,convertirc("No POLICE"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(50,$ht,convertirc("SOUSCRITE PAR"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("En qualité de CONTRACTANT "),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Le présent contrat est constitué et régi par les CONDITIONS PARTICULIERES, les DISPOSITIONS"),0,1,'C',false);
$pdf->Cell(0,$ht,convertirc("SPECIALES ainsi que par les CONDITIONS GENERALES."),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Il a pour objet la garantie suivante :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("CONDITIONS PARTICULIERES"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat ");
$text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']);
$text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à ");
$text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
foreach ($collegecps as $collegecp)
{
$pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2 : PRISE DEFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées ");
$text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec ");
$text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Ainsi, chaque assuré aura une carte dassurance maladie quil va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via lapplication de MEDICOR. Cela va permettre aussi à lassuré de voir en temps réel où il en est avec sa limite de couverture. ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période dun mois avant de bénéficier de lassurance santé ; exception faite des cas daccident.
Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU CONTRAT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Le présent contrat est souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']."
Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité.
Ainsi, sont prises en charge les prestations médicales suivantes :
- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques.
- Les conditions de prématurité sont couvertes
- L'IRM et d'autres tests spéciaux sont tous couverts
- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande
le remboursement ou la différence à RDIANT INSURANCE COMPANY (applicable pour les options avec ticket modérateur)
- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable
- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant
- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance sappliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir dune zone les équipements indispensables nexistent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé).
- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. Lassuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser lassureur au moins 3 jours avant afin de lui permettre daviser les prestatires désignés par lassuré (seulement pour ceux qui ont une couverture extraterritoriale).
- Traitement en Inde le cas échéant,sur base dun rapport médical dun medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de lAfrique de lEst avec l'approbation préalable de RDIANT INSURANCE COMPANY
- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.
- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger
- La chambre individuelle est couverte
- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte
- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata
- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge
- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement.
- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré.
- La liste de tous les partenaires de RDIANT INSURANCE COMPANY est jointe à cette offre technique
- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec RDIANT INSURANCE COMPANY et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques.
- Délai maximum de remboursement en cas de paiement direct il n y a pas de partenariat et après réception de tous les documents requis : 2 jours
- Gestion commune avec l'employeur des cas de fraudes
- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner.
- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement.
- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, RDIANT INSURANCE COMPANY peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste.
Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableau ci-dessous :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['codeProduit']." : ".$tableaupretationcp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleCollege'];
}
// $pdf->AddPage();
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['codeProduit']." : ".$garantiescollegecp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleCollege'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de lecheance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
// $pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties définies ci-dessus sont accordées moyennant des cotisations de :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoireBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total Général"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($entetecp['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total Général"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($entetecp['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT DE LA PRIME"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à lassuré pour le règlement d'un acompte sur le renouvellement.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes (déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Pour associer lassuré à l'évolution des consommations, un rapport dutilisation trimestriel lui sera régulièrement transmis.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Traitement cosmétique et chirurgie esthétique
- Blessures dues à la participation aux jeux et activités dangereuses
- Blessures dues à la participation aux greves et émeutes
- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance
- Traitement prophylactique, les compléments alimentaires
- Cardiopathie ischemique
- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue
- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins)
- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers
- Coût d'appareils auditifs, à moins quil résulte dun accident
- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident
- Frais recouvrables en vertu de la Loi sur lIndemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes dindemnisation de l'INSS ou tout autre régime sauf sur demande préalable de lassuré et moyennant une prime correspondante");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("POUR RDIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("POUR LASSURE"),0,1,'R',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',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;
?>

View File

@ -0,0 +1,566 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("MEDICOR HEALTH INSURANCE"),1,1,'C',true);
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No Policy"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("SUBSCRIBER"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
foreach ($collegecps as $collegecp)
{
$pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured:
- From the effective date of the contract for persons to be insured who are already in the Contractor's service.
- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage.
- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].".
It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one months notice before its expiry.
No obligation to renew the contract is incubent upon the parties. RDIANT INSURANCE COMPANY reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness.
Thus, the following medical benefits are covered:
-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases.
-conditions of prematurity are covered
-MRI and other special tests are all covered
-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to RDIANT INSURANCE COMPANY (applicable for options with co-payment)
- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs.
However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization.
-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student.
-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized)
-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage).
-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of RDIANT INSURANCE COMPANY.
-The extension in East African countries is covered within the limit of coverage for dependents of the insured.
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad
-The single room is covered
-Automatic addition of a newborn and/or spouse without additional premium except card fees
-Automatic addition of a new member with a prorated premium
-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated
-pro rata, if no medical service has been paid for him and his dependents
-The issue of health insurance cards within 7 days of notification and/or proof of payment.
-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].".
-The list of all RDIANT INSURANCE COMPANY partners is attached to this technical offer
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
For expenses paid to a provider who has no partnership with RDIANT INSURANCE COMPANY and which has not been terminated or suspended for fault or bad practice.
-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days
-Joint management with the employer of cases of fraud
-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate.
-The list of staff and reports of medical consumption will be provided monthly.
-If the limit of the insured person is exceeded during the insurance period, RDIANT INSURANCE COMPANY may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctors degree, surgeon or dental surgeon.
No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer.
The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer.
The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances.
For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed.
Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students.
This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor.
In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleCollege'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleCollege'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractors service, or dies.
In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods.");
$pdf->MultiCell(0, $ht, $text);
// $pdf->AddPage();
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insureds membership.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The guarantees defined above will be granted with :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal.
The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year.
To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Cosmetic treatment and cosmetic surgery
- Injuries due to participation in games and dangerous activities
- Injuries due to participation in strikes and riots
- Fertility treatment, namely treatment costs related to infertility and impotence
- Prophylactic treatment, dietary supplements
-Ischemic heart disease
- Intentional self-harm, suicide or the influence of alcohol or drugs
- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas)
- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers
- Cost of hearing aids, unless resulting from an accident
- Nervous breakdown, psychoneurosis, unless it results from an accident");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art.
In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility.
The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("FOR RDIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false);
$fichier="Temp/TMP_particuliars_conditions"."_".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;
?>

View File

@ -0,0 +1,33 @@
<?php
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Creercolleged");
}
else
{
$this->college_temp->enregistrer($idCollegeTemp);
$this->rediriger("Fichedevis");
}
?>

View File

@ -0,0 +1,18 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp);
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'optionstarif' => $optionstarif,
'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond));
?>

View File

@ -0,0 +1,8 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$user = $this->requete->getSession()->getAttribut('login');
$idCollegeTemp = $this->college_temp->initCollege($idPolice, $user);
$this->rediriger("Creercolleged");
?>

View File

@ -0,0 +1,32 @@
<?php
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Creercollege");
}
else
{
$this->college_temp->enregistrer($idCollegeTemp);
$this->rediriger("Collegepolice");
}
?>

View File

@ -0,0 +1,16 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond));
?>

View File

@ -0,0 +1,8 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$user = $this->requete->getSession()->getAttribut('login');
$idCollegeTemp = $this->college_temp->initCollege($idPolice, $user);
$this->rediriger("Creercollege");
?>

View File

@ -0,0 +1,691 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
if($entetecp['codeTypeContrat'] == "G")
{
$pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE"),1,1,'C',true);
}
else
{
$pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true);
}
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No DEVIS"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
// $pdf->Cell(0,$ht,convertirc("En qualité de PROSPECT "),0,0,'C',false);
// $pdf->Cell(0,$ht,convertirc("En qualité de CLIENT "),0,0,'C',false);
$pdf->Cell(0,$ht,convertirc("En qualité d'Assuré "),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Le futur contrat aura pour objet la garantie suivante :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("DISPOSITIONS PARTICULIERES"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat ");
$text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']);
$text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à ");
$text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$oldnumeroOptionTarif = "0";
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$categorie = "0";
foreach ($collegecps as $collegecp)
{
$numeroOptionTarif = $collegecp['numeroOptionTarif'];
if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0")
{
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$oldnumeroOptionTarif),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$pdf->Ln(5);
}
if($categorie!=$collegecp['numeroOptionTarif'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','', 9);
$pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
$nbAdherent += $collegecp['nbAdherent'];
$nbAyantdroit += $collegecp['nbAyantdroit'];
$primeTtcAdherent += $collegecp['primeTtcAdherent'];
$primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire'];
$primeTtcTotal += $collegecp['primeTtcTotal'];
$oldnumeroOptionTarif = $numeroOptionTarif;
$categorie = $collegecp['numeroOptionTarif'];
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$pdf->Ln(5);
$text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2 : PRISE DEFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées ");
$text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec ");
$text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Ainsi, chaque assuré aura une carte dassurance maladie quil va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via lapplication de MEDICOR. Cela va permettre aussi à lassuré de voir en temps réel où il en est avec sa limite de couverture. ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période dun mois avant de bénéficier de lassurance santé ; exception faite des cas daccident.
Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU FUTUR CONTRAT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Le contrat sera souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']."
Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité.
Ainsi, sont prises en charge les prestations médicales suivantes :
- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques.
- Les conditions de prématurité sont couvertes
- L'IRM et d'autres tests spéciaux sont tous couverts
- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande
le remboursement ou la différence à BICOR VIE ET CAPITALISATION (applicable pour les options avec ticket modérateur)
- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable
- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant
- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance sappliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir dune zone les équipements indispensables nexistent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé).
- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. Lassuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser lassureur au moins 3 jours avant afin de lui permettre daviser les prestatires désignés par lassuré (seulement pour ceux qui ont une couverture extraterritoriale).
- Traitement en Inde le cas échéant,sur base dun rapport médical dun medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de lAfrique de lEst avec l'approbation préalable de BICOR VIE ET CAPITALISATION
- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.
- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger
- La chambre individuelle est couverte
- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte
- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata
- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge
- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement.
- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré.
- La liste de tous les partenaires de BICOR VIE ET CAPITALISATION est jointe à cette offre technique
- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec BICOR VIE ET CAPITALISATION et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques.
- Délai maximum de remboursement en cas de paiement direct il n y a pas de partenariat et après réception de tous les documents requis : 2 jours
- Gestion commune avec l'employeur des cas de fraudes
- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner.
- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement.
- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, BICOR VIE ET CAPITALISATION peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste.
Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableaux ci-dessous :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleComplet'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleComplet'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de lecheance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
// $pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties définies ci-dessus seront accordées moyennant des cotisations de :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
// $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à lassuré pour le règlement d'un acompte sur le renouvellement.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes(déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Pour associer lassuré à l'évolution des consommations, un rapport dutilisation trimestriel lui sera régulièrement transmis.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Traitement cosmétique et chirurgie esthétique
- Blessures dues à la participation aux jeux et activités dangereuses
- Blessures dues à la participation aux greves et émeutes
- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance
- Traitement prophylactique, les compléments alimentaires
- Cardiopathie ischemique
- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue
- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins)
- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers
- Coût d'appareils auditifs, à moins quil résulte dun accident
- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident
- Frais recouvrables en vertu de la Loi sur lIndemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes dindemnisation de l'INSS ou tout autre régime sauf sur demande préalable de lassuré et moyennant une prime correspondante");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("POUR BICOR VIE ET CAPITALISATION"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("POUR LASSURE"),0,1,'R',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false);
$fichier="Temp/TMP_devis"."_".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;
?>

View File

@ -0,0 +1,678 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("MEDICOR PROPOSAL HEALTH INSURANCE"),1,1,'C',true);
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No Quotation"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$oldnumeroOptionTarif = "0";
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$categorie = "0";
foreach ($collegecps as $collegecp)
{
$numeroOptionTarif = $collegecp['numeroOptionTarif'];
if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0")
{
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total : Option ".$oldnumeroOptionTarif),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$pdf->Ln(5);
}
if($categorie!=$collegecp['numeroOptionTarif'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','', 9);
$pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
$nbAdherent += $collegecp['nbAdherent'];
$nbAyantdroit += $collegecp['nbAyantdroit'];
$primeTtcAdherent += $collegecp['primeTtcAdherent'];
$primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire'];
$primeTtcTotal += $collegecp['primeTtcTotal'];
$oldnumeroOptionTarif = $numeroOptionTarif;
$categorie = $collegecp['numeroOptionTarif'];
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured:
- From the effective date of the contract for persons to be insured who are already in the Contractor's service.
- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage.
- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].".
It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one months notice before its expiry.
No obligation to renew the contract is incubent upon the parties. BICOR VIE ET CAPITALISATION reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness.
Thus, the following medical benefits are covered:
-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases.
-conditions of prematurity are covered
-MRI and other special tests are all covered
-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to BICOR VIE ET CAPITALISATION (applicable for options with co-payment)
- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs.
However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization.
-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student.
-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized)
-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage).
-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of BICOR VIE ET CAPITALISATION.
-The extension in East African countries is covered within the limit of coverage for dependents of the insured.
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad
-The single room is covered
-Automatic addition of a newborn and/or spouse without additional premium except card fees
-Automatic addition of a new member with a prorated premium
-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated
-pro rata, if no medical service has been paid for him and his dependents
-The issue of health insurance cards within 7 days of notification and/or proof of payment.
-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].".
-The list of all BICOR VIE ET CAPITALISATION partners is attached to this technical offer
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
For expenses paid to a provider who has no partnership with BICOR VIE ET CAPITALISATION and which has not been terminated or suspended for fault or bad practice.
-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days
-Joint management with the employer of cases of fraud
-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate.
-The list of staff and reports of medical consumption will be provided monthly.
-If the limit of the insured person is exceeded during the insurance period, BICOR VIE ET CAPITALISATION may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctors degree, surgeon or dental surgeon.
No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer.
The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer.
The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances.
For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed.
Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students.
This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor.
In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleComplet'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleComplet'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractors service, or dies.
In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods.");
$pdf->MultiCell(0, $ht, $text);
// $pdf->AddPage();
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insureds membership.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The guarantees defined above will be granted with :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal.
The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year.
To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Cosmetic treatment and cosmetic surgery
- Injuries due to participation in games and dangerous activities
- Injuries due to participation in strikes and riots
- Fertility treatment, namely treatment costs related to infertility and impotence
- Prophylactic treatment, dietary supplements
-Ischemic heart disease
- Intentional self-harm, suicide or the influence of alcohol or drugs
- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas)
- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers
- Cost of hearing aids, unless resulting from an accident
- Nervous breakdown, psychoneurosis, unless it results from an accident");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art.
In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility.
The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("FOR BICOR VIE ET CAPITALISATION"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false);
$fichier="Temp/TMP_proposal"."_".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;
?>

View File

@ -0,0 +1,46 @@
<?php
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif");
$_SESSION['numeroOptionTarif'] = $numeroOptionTarif;
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$ageMoyen = $this->requete->getParametreFormulaire("ageMoyen","numerique");
$delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique");
$plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique");
$plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire, $ageMoyen);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Modifiercolleged");
}
else
{
$this->college_temp->modifiercollege($idCollegeTemp, $idCollege);
$this->rediriger("Fichedevis");
}
?>

View File

@ -0,0 +1,33 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Modifiercolleged");
}
else
{
$idPolice = $_SESSION['idPolice_d_C'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'ouinonimposerplafond' => $this->ouinonimposerplafond, 'optionstarif' => $optionstarif));
}
?>

View File

@ -0,0 +1,37 @@
<?php
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique");
$plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique");
$plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Modifiercollege");
}
else
{
$this->college_temp->modifiercollege($idCollegeTemp, $idCollege);
$this->rediriger("Collegepolice");
}
?>

View File

@ -0,0 +1,27 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Modifiercollege");
}
else
{
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'ouinonimposerplafond' => $this->ouinonimposerplafond));
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,682 @@
<?php
require_once '././Framework/Modele.php';
class College_temp extends Modele {
public function ajouterUneGarantie($idCollegeTemp, $codeGarantie)
{
$sql = 'call sp_ajouter_une_garantie_radiant(?, ?)';
// $sql = 'call sp_ajouter_une_garantie_bicor(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeGarantie));
}
public function getCollegeTemp($idCollegeTemp)
{
$sql = 'call sp_afficher_college_temp(?)';
$collegeTemp = $this->executerRequete($sql, array($idCollegeTemp));
return $collegeTemp->fetch();
}
public function getCollegeTempPolice($idPolice, $user)
{
$sql = 'select * from college_temp where (idPolice=?) and (user=?)';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getCollegeTempPoliceRen($idPolice, $user)
{
$sql = 'select * from college_ren_temp where (idPolice=?) and (user=?) order by codeProduit, libelleCollege';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarAddCollege($idCollegeTemp)
{
$sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A
join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie)
where (A.idCollegeTemp=?) order by A.ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarBaseCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle!="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarOptCollege($idCollegeTemp)
{
$sql = 'CALL sp_get_gar_opt_college(?);';
$resultat = $this->executerRequete($sql, array($idCollegeTemp));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarOptCollegeAcq($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getPrestation($idCollegeTemp)
{
$sql = 'select A.*, B.libelle as reseausoin from prestation_temp A
join reseausoins B on (B.codeReseau=A.codeReseau)
where (A.idCollegeTemp=?) order by A.tmBase, A.tm';
$prestations = $this->executerRequete($sql, array($idCollegeTemp));
return $prestations;
}
public function supprimer($idCollegeTemp) {
$sql = 'DELETE FROM college_temp WHERE (id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
$sql = 'DELETE FROM garantie_temp WHERE (idCollegeTemp=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function supprimergarantie($idGarantie) {
$sql = 'DELETE FROM garantie_temp WHERE (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function initCollege($idPolice, $user)
{
$codeSociete = $_SESSION['codeSociete'];
if (est_anglophone())
{
$sql = 'CALL sp_init_college_eng(?, ?, ?);';
}
else
{
$sql = 'CALL sp_init_college(?, ?, ?);';
}
$this->executerRequete($sql, array($idPolice, $codeSociete, $user));
$resultat = $this->executerRequete($sql, array($idPolice, $codeSociete, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function initModifCollege($idCollege, $user)
{
$this->viderCollegTemp($user);
$sql = 'CALL sp_init_modifier_college(?, ?);';
$this->executerRequete($sql, array($idCollege, $user));
$resultat = $this->executerRequete($sql, array($idCollege, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond, $tauxPrimeFraisFuneraire)
{
$sql = 'call sp_recapituller_college_temp_radiant(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
// $sql = 'call sp_recapituller_college_temp_bicor(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire));
}
public function maj($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm)
{
$sql = 'call sp_maj_college_temp(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm));
}
public function enregistrer($idCollegeTemp)
{
$sql = 'insert into college (codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire,
fraisCarteBeneficiaire, primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm,
tauxPrimeRachatTm, imposerPlafond, tauxPrimeFraisFuneraire, delaiCarenceCollege)
select codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire,
fraisCarteBeneficiaire, primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm,
tauxPrimeRachatTm, imposerPlafond, tauxPrimeFraisFuneraire, delaiCarenceCollege
from college_temp where id=?';
$this->executerRequete($sql, array($idCollegeTemp));
$idCollege = $this->dernierId();
$this->ajouterGarantieCollege($idCollege, $idCollegeTemp);
$this->ajouterTableauPrestation($idCollege, $idCollegeTemp);
$user = $_SESSION['login'];
$this->viderCollegTemp($user);
}
public function modifiercollege($idCollegeTemp, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_college(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $idCollege, $user));
}
public function ajouterGarantieCollege($idCollege, $idCollegeTemp)
{
$sql = 'delete from garantiecollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into garantiecollege (codeSociete, idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital)
select codeSociete, ? as idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital
from garantie_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function ajouterTableauPrestation($idCollege, $idCollegeTemp)
{
$sql = 'delete from prestationcollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into prestationcollege (
codeSociete,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
)
select
codeSociete,
? as idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
from prestation_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function initGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
user,
plafond,
ordre,
plafondLettre,
champApplication
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.libelle as garantie,
A.libelleEng as garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
B.user,
ROUND((B.primeFamille*A.tauxPlafond),0)+A.forfaitPlafond as plafond,
A.ordre, A.plafondLettre,
A.champApplication
from garantie A
join college_temp B on (B.codeSociete=A.codeSociete)
Where (B.id=?) and optionnelle!="1"';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initPrestationCollege($idCollegeTemp)
{
$user = $_SESSION['login'];
$codeProduitBase = $_SESSION['codeProduitBase'];
$sql = 'call sp_init_prestation_college(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduitBase, $user));
}
public function initModifGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollege,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
primeOption,
user,
plafond,
ordre,
plafondLettre,
primeFamille,
champApplication
)
select
A.codeSociete,
A.idCollege,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.garantie,
A.garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
A.primeOption,
B.user,
A.plafond,
A.ordre, A.plafondLettre,
A.primeFamille,
A.champApplication
from garantiecollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initModifPrestation($idCollegeTemp)
{
$sql = 'insert into prestation_temp (
codeSociete,
idCollegeTemp,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
user,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm,
tauxPrimeRachatTm
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idCollege,
B.idPolice,
B.numeroPolice,
A.codeProduit,
A.codeReseau,
A.tm,
B.user,
now() as dateSysteme,
A.tmBase,
B.rachatTm,
B.tauxRachatTm,
B.tauxPrimeRachatTm
from prestationcollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function majtauxplafond($idGarantie, $tauxPlafond)
{
$sql = 'update garantie_temp set tauxPlafond=? where (id=?)';
$this->executerRequete($sql, array($tauxPlafond, $idGarantie));
$sql = 'update garantie_temp set plafond= ROUND((primeFamille*tauxPlafond),0)+forfaitPlafond where (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function imposerplafond($idGarantie, $plafond)
{
$sql = 'update garantie_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majtm($idPrestation, $tm)
{
$sql = 'update prestation_temp set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function majtmprestatairenplus($idPrestation, $tm)
{
$sql = 'update prestationcollegeplus set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function retirerprestatairenplus($idPrestation)
{
$sql = 'delete from prestationcollegeplus where (id=?)';
$this->executerRequete($sql, array($idPrestation));
}
public function ajouterunprestataireenplus($codePrestataire)
{
$idCollege = $_SESSION['idCollege'];
$user = $_SESSION['login'];
$sql = 'call sp_ajouterprestataireenplus(?, ?, ?)';
$this->executerRequete($sql, array($idCollege, $codePrestataire, $user));
}
public function ajouterunprestataireenmoins($codePrestataire)
{
$idCollege = $_SESSION['idCollege'];
$user = $_SESSION['login'];
$sql = 'call sp_ajouterprestataireenmoins(?, ?, ?)';
$this->executerRequete($sql, array($idCollege, $codePrestataire, $user));
}
public function retirerprestatairenmoins($idPrestation)
{
$sql = 'delete from prestationcollegemoins where (id=?)';
$this->executerRequete($sql, array($idPrestation));
}
// ajouterunprestatairetm
public function ajouterunprestatairetm($codePrestataire)
{
$idCollege = $_SESSION['idCollege'];
$user = $_SESSION['login'];
$sql = 'call sp_ajouterprestatairetm(?, ?, ?)';
$this->executerRequete($sql, array($idCollege, $codePrestataire, $user));
}
public function retirerprestatairetm($idPrestation)
{
$sql = 'delete from prestationcollegetm where (id=?)';
$this->executerRequete($sql, array($idPrestation));
}
public function majtmprestatairetm($idPrestation, $tm)
{
$sql = 'update prestationcollegetm set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function majPrimeOpt($idGarantie, $primeOption)
{
$sql = 'call sp_maj_prime_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $primeOption));
}
public function majPlafondOpt($idGarantie, $plafondOption)
{
$sql = 'call sp_maj_plafond_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $plafondOption));
}
public function majlibgar($idGarantie, $libellegarantie)
{
$sql = 'update garantie_temp set garantie=? where (id=?)';
$this->executerRequete($sql, array($libellegarantie, $idGarantie));
}
public function viderCollegTemp($user)
{
$sql = 'DELETE FROM college_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM garantie_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM prestation_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
}
public function init_changement_college($idAdherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_init_changement_college(?, ?)';
$college_temp = $this->executerRequete($sql, array($idAdherent, $user));
return $college_temp->fetch();
}
public function changer_college_temp($idAdherent, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_changer_college_temp(?, ?, ?)';
$college_temp = $this->executerRequete($sql, array($idAdherent, $idCollege, $user));
return $college_temp->fetch();
}
public function changer_college($idAdherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_changer_college(?, ?)';
$this->executerRequete($sql, array($idAdherent, $user));
}
public function getCollegesPolice()
{
$user = $_SESSION['login'];
$sql = 'SELECT * FROM college_temp WHERE (user=?) order by libelleCollege';
$college = $this->executerRequete($sql, array($user));
return $college;
}
public function getTotaldcollege($idPolice) {
$user = $_SESSION['login'];
$sql = 'call sp_totalcollege_temp(?, ?)';
$totalcollege = $this->executerRequete($sql, array($idPolice, $user));
return $totalcollege->fetch(PDO::FETCH_ASSOC);
}
public function selectioncollegetemp($idCollegeTemp, $choix) {
$sql = 'update college_temp set choix=? WHERE (id=?)';
$this->executerRequete($sql, array($choix, $idCollegeTemp));
}
public function majplafondadd($idGarantie, $plafond)
{
$sql = 'update garantieaddition_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majprimeadd($idGarantie, $primeOption)
{
$sql = 'update garantieaddition_temp set primeOption=? where (id=?)';
$this->executerRequete($sql, array($primeOption, $idGarantie));
}
public function recapituler_maj_limite_college($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_recapituller_maj_limite_college(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function modifierlimitecollegetemp($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_limite_college_temp(?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function getCollegepoliceId($idCollege) {
$sql = 'SELECT A.id AS idCollege, A.*, B.libelle as produit
from college A
join produit B on (B.codeSociete=A.codeSociete) AND (B.codeProduit=A.codeProduit)
where A.id=?';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetch();
}
public function getprestatairehorsreseau($idCollege) {
$sql = 'call sp_getprestatairehorsreseau(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getprestataireenplus($idCollege) {
$sql = 'call sp_getprestataireenplus(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
// Prestataires en moins
public function getprestatairereseau($idCollege) {
$sql = 'call sp_getprestatairereseau(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getprestataireenmoins($idCollege) {
$sql = 'call sp_getprestataireenmoins(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getListeCollege($idPolice) {
$sql = 'SELECT id as code, CONCAT(codeProduit, " : ", libelleCollege) as libelle FROM college
where (idPolice=?) order by 2';
$liste = $this->executerRequete($sql, array($idPolice));
return $liste;
// return $liste->fetch(PDO::FETCH_ASSOC);
}
// Prestataires dérogation TM
public function getprestatairereseautm($idCollege) {
$sql = 'call sp_getprestatairereseau_tm(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getprestatairetm($idCollege) {
$sql = 'call sp_getprestataire_tm(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function majchampapplicationplafond($idGarantie, $choix)
{
$sql = 'update garantie_temp set champApplication=? where (id=?)';
$this->executerRequete($sql, array($choix, $idGarantie));
}
public function changecategorie($codeProduit)
{
$codeSociete = $_SESSION['codeSociete'];
// $user = $_SESSION['login'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$sql = 'CALL sp_modifier_categorie_college_temp(?, ?, ?);';
$resultat = $this->executerRequete($sql, array($idCollegeTemp, $codeSociete, $codeProduit));
return $resultat->fetch(PDO::FETCH_ASSOC);
}
public function maj_libelle_college($idCollegeTemp, $nouvLibelleCollege)
{
$sql = 'CALL sp_maj_libelle_college(?, ?);';
$this->executerRequete($sql, array($idCollegeTemp, $nouvLibelleCollege));
}
}

View File

@ -0,0 +1,528 @@
<?php
require_once 'Framework/Modele.php';
class College_temp_d extends Modele {
public function ajouterUneGarantie($idCollegeTemp, $codeGarantie)
{
$sql = 'call sp_ajouter_une_garantie(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeGarantie));
}
public function getCollegeTemp($idCollegeTemp)
{
$sql = 'call sp_afficher_college_temp(?)';
$collegeTemp = $this->executerRequete($sql, array($idCollegeTemp));
return $collegeTemp->fetch();
}
public function getCollegeTempPolice($idPolice, $user)
{
$sql = 'select * from college_temp where (idPolice=?) and (user=?)';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getCollegeTempPoliceRen($idPolice, $user)
{
$sql = 'select * from college_ren_temp where (idPolice=?) and (user=?) order by codeProduit, libelleCollege';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarAddCollege($idCollegeTemp)
{
$sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A
join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie)
where (A.idCollegeTemp=?) order by A.ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarBaseCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle!="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarOptCollege($idCollegeTemp)
{
$sql = 'CALL sp_get_gar_opt_college(?);';
$resultat = $this->executerRequete($sql, array($idCollegeTemp));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarOptCollegeAcq($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getPrestation($idCollegeTemp)
{
$sql = 'select A.*, B.libelle as reseausoin from prestation_temp A
join reseausoins B on (B.codeReseau=A.codeReseau)
where (A.idCollegeTemp=?) order by A.tmBase, A.tm';
$prestations = $this->executerRequete($sql, array($idCollegeTemp));
return $prestations;
}
public function supprimer($idCollegeTemp) {
$sql = 'DELETE FROM college_temp WHERE (id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
$sql = 'DELETE FROM garantie_temp WHERE (idCollegeTemp=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function supprimergarantie($idGarantie) {
$sql = 'DELETE FROM garantie_temp WHERE (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function initCollege($idPolice, $user)
{
$codeSociete = $_SESSION['codeSociete'];
$numeroOptionTarif = $_SESSION['numeroOptionTarif'];
if (est_anglophone())
{
$sql = 'CALL sp_init_college_d_eng(?, ?, ?, ?);';
}
else
{
$sql = 'CALL sp_init_college_d(?, ?, ?, ?);';
}
$resultat = $this->executerRequete($sql, array($idPolice, $codeSociete, $numeroOptionTarif, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function initModifCollege($idCollege, $user)
{
$sql = 'CALL sp_init_modifier_college_d(?, ?);';
$this->executerRequete($sql, array($idCollege, $user));
$resultat = $this->executerRequete($sql, array($idCollege, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond,
$numeroOptionTarif, $tauxPrimeFraisFuneraire)
{
// $sql = 'call sp_recapituller_college_temp_d_bicor(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$sql = 'call sp_recapituller_college_temp_d_radiant(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire));
}
public function maj($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm)
{
$sql = 'call sp_maj_college_temp(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm));
}
public function enregistrer($idCollegeTemp)
{
$sql = 'insert into d_college (codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, fraisCarteBeneficiaire,
primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, tauxPrimeRachatTm, imposerPlafond,
idOptionTarif, numeroOptionTarif, tauxPrimeFraisFuneraire, delaiCarenceCollege)
select codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, fraisCarteBeneficiaire,
primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, tauxPrimeRachatTm, imposerPlafond,
idOptionTarif, numeroOptionTarif, tauxPrimeFraisFuneraire, delaiCarenceCollege
from college_temp where id=?';
$this->executerRequete($sql, array($idCollegeTemp));
$idCollege = $this->dernierId();
$this->ajouterGarantieCollege($idCollege, $idCollegeTemp);
$this->ajouterTableauPrestation($idCollege, $idCollegeTemp);
$user = $_SESSION['login'];
$this->viderCollegTemp($user);
}
public function modifiercollege($idCollegeTemp, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_college_d(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $idCollege, $user));
}
public function ajouterGarantieCollege($idCollege, $idCollegeTemp)
{
$sql = 'delete from d_garantiecollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into d_garantiecollege (codeSociete, idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital)
select codeSociete, ? as idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital
from garantie_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function ajouterTableauPrestation($idCollege, $idCollegeTemp)
{
$sql = 'delete from d_prestationcollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into d_prestationcollege (
codeSociete,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
)
select
codeSociete,
? as idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
from prestation_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function initGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
user,
plafond,
ordre,
plafondLettre,
champApplication
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.libelle as garantie,
A.libelleEng as garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
B.user,
ROUND((B.primeFamille*A.tauxPlafond),0)+A.forfaitPlafond as plafond,
A.ordre, A.plafondLettre,
A.champApplication
from garantie A
join college_temp B on (B.codeSociete=A.codeSociete)
Where (B.id=?) and optionnelle!="1"';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initPrestationCollege($idCollegeTemp)
{
$user = $_SESSION['login'];
$codeProduitBase = $_SESSION['codeProduitBase'];
$sql = 'call sp_init_prestation_college(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduitBase, $user));
}
public function initModifGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollege,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
primeOption,
user,
plafond,
ordre,
plafondLettre,
primeFamille,
champApplication
)
select
A.codeSociete,
A.idCollege,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.garantie,
A.garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
A.primeOption,
B.user,
A.plafond,
A.ordre, A.plafondLettre,
A.primeFamille,
A.champApplication
from d_garantiecollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initModifPrestation($idCollegeTemp)
{
$sql = 'insert into prestation_temp (
codeSociete,
idCollegeTemp,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
user,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm,
tauxPrimeRachatTm
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idCollege,
B.idPolice,
B.numeroPolice,
A.codeProduit,
A.codeReseau,
A.tm,
B.user,
now() as dateSysteme,
A.tmBase,
B.rachatTm,
B.tauxRachatTm,
B.tauxPrimeRachatTm
from d_prestationcollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function majtauxplafond($idGarantie, $tauxPlafond)
{
$sql = 'update garantie_temp set tauxPlafond=? where (id=?)';
$this->executerRequete($sql, array($tauxPlafond, $idGarantie));
$sql = 'update garantie_temp set plafond= ROUND((primeFamille*tauxPlafond),0)+forfaitPlafond where (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function imposerplafond($idGarantie, $plafond)
{
$sql = 'update garantie_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majtm($idPrestation, $tm)
{
$sql = 'update prestation_temp set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function majPrimeOpt($idGarantie, $primeOption)
{
$sql = 'call sp_maj_prime_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $primeOption));
}
public function majPlafondOpt($idGarantie, $plafondOption)
{
$sql = 'call sp_maj_plafond_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $plafondOption));
}
public function majlibgar($idGarantie, $libellegarantie)
{
$sql = 'update garantie_temp set garantie=? where (id=?)';
$this->executerRequete($sql, array($libellegarantie, $idGarantie));
}
public function viderCollegTemp($user)
{
$sql = 'DELETE FROM college_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM garantie_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM prestation_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
}
public function changer_college_temp($idAdherent, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_changer_college_temp_d(?, ?, ?)';
$college_temp = $this->executerRequete($sql, array($idAdherent, $idCollege, $user));
return $college_temp->fetch();
}
public function getCollegesPolice()
{
$user = $_SESSION['login'];
$sql = 'SELECT * FROM college_temp WHERE (user=?) order by libelleCollege';
$college = $this->executerRequete($sql, array($user));
return $college;
}
public function getTotaldcollege($idPolice) {
$user = $_SESSION['login'];
$sql = 'call sp_totalcollege_temp_d(?, ?)';
$totalcollege = $this->executerRequete($sql, array($idPolice, $user));
return $totalcollege->fetch(PDO::FETCH_ASSOC);
}
public function selectioncollegetemp($idCollegeTemp, $choix) {
$sql = 'update college_temp set choix=? WHERE (id=?)';
$this->executerRequete($sql, array($choix, $idCollegeTemp));
}
public function majplafondadd($idGarantie, $plafond)
{
$sql = 'update garantieaddition_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majprimeadd($idGarantie, $primeOption)
{
$sql = 'update garantieaddition_temp set primeOption=? where (id=?)';
$this->executerRequete($sql, array($primeOption, $idGarantie));
}
public function recapituler_maj_limite_college($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_recapituller_maj_limite_college(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function modifierlimitecollegetemp($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_limite_college_temp(?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function getoptionstarif($idPolice) {
$sql = 'SELECT numeroOptionTarif as code, libelleOptionTarif as libelle from d_optionstarif where (idPolice=?) order by 1';
$liste = $this->executerRequete($sql, array($idPolice));
// return $liste;
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function nouvelleoptiontarif()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_d_C'];
$sql = 'call sp_d_nouvelle_option_tarif(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
}

View File

@ -0,0 +1,686 @@
<?php
require_once 'Framework/Modele.php';
class Police extends Modele {
public function getPolices($numeroClient) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, numeroDevis,
D.libelle as etatPolice, A.codeFractionnement, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, TM.libelle as rachattm
FROM police A
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
return $polices;
}
public function getPolicesId($id) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete, numeroDevis,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement,
D.libelle as etatPolice, A.codeFractionnement, T.libelle As typeContrat, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, rachatTm, TM.libelle as rachattm, garantieArchive, collegeArchive, A.gestionConfiee
FROM police A
left join typecontrat T on (T.codeTypeContrat=A.codeTypeContrat)
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.idClient=?) order by A.id';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $polices;
}
public function getPolice($numeroPolice)
{
$sql = 'call sp_getPoliceNo(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucune police ne correspond au numéo '$numeroPolice'");
}
public function getPoliceId($id)
{
$sql = 'call sp_getPoliceId(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $police->fetch(PDO::FETCH_ASSOC);
/*
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucune police ne correspond au ie '$id'");
*/
}
public function getPoliceIdSimple($id) {
$sql = 'SELECT A.* FROM police A WHERE (A.codeSociete=?) AND (A.id=?)';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucune police ne correspond au ie '$id'");
}
public function getTextecp($id) {
$sql = 'select texteCp from police where (id=?)';
$textecp = $this->executerRequete($sql, array($id));
return $textecp->fetch();
}
public function enregistrertexteCp($texteCp, $idPolice) {
$sql = 'update police set texteCp=? where (id=?)';
$this->executerRequete($sql, array($texteCp, $idPolice));
}
public function getNombrePolices($numeroClient)
{
$sql = 'select count(*) as nbPolices FROM polices A WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getNombrePolicesId($id)
{
$sql = 'select count(*) as nbPolices FROM police A WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getContextePoliceId($id)
{
$sql = 'SELECT
A.idClient,
A.numeroClient,
A.id AS idPolice,
A.numeroPolice,
IFNULL(B.tauxTaxe,"0") AS tauxTaxe,
A.codeEtape,
IFNULL(A.tauxCommission,"0") AS tauxCommission,
IFNULL(A.tauxCommissionAutre,"0") AS tauxCommissionAutre,
IFNULL(A.primeFamille,"0") AS primeFamille,
IFNULL(A.primeBeneficiaire,"0") AS primeBeneficiaire,
rachatTm,
TM.libelle AS rachattm,
garantieArchive,
collegeArchive,
A.codeTypeAvenant,
ADDDATE(A.dateEcheance, +1) AS DateRenouvellement,
A.dateEffet,
A.dateFin,
A.dateEcheance,
dateAvenant,
A.deduireComm,
A.codeEtatPolice,
A.gestionConfiee,
A.codeTypeContrat,
fn_id_entetecontrat_police_en_cours(A.id) AS idEntetecontratPolice,
fn_dernier_avenant_incorporation(A.id) AS dernierIdAvenant,
fn_derniere_date_avenant_incorporation(A.id) AS dernierDateAvenant,
fn_get_college_familiale(A.id) dernierIdCollege
FROM police A
LEFT JOIN typecontrat B ON (B.codeTypeContrat=A.codeTypeContrat)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['idPolice_C'] = $context['idPolice'];
$_SESSION['numeroPolice_C'] = $context['numeroPolice'];
$_SESSION['codeTypeContrat'] = $context['codeTypeContrat'];
$_SESSION['codeEtape_C'] = $context['codeEtape'];
$_SESSION['tauxTaxe_C'] = $context['tauxTaxe'];
$_SESSION['tauxCommission_C'] = $context['tauxCommission'];
$_SESSION['tauxCommissionAutre_C'] = $context['tauxCommissionAutre'];
$_SESSION['deduireComm_C'] = $context['deduireComm'];
$_SESSION['codeTypeAvenant_C'] = $context['codeTypeAvenant'];
$_SESSION['codeEtatPolice_C'] = $context['codeEtatPolice'];
$_SESSION['dateEffet_C'] = $context['dateEffet'];
$_SESSION['dateFin_C'] = $context['dateFin'];
$_SESSION['dateEcheance_C'] = $context['dateEcheance'];
$_SESSION['DateRenouvellement_C'] = $context['DateRenouvellement'];
$_SESSION['dateAvenant_C'] = $context['dateAvenant'];
$_SESSION['idPoliceAjax'] = $_SESSION['idPolice_C'];
$_SESSION['primeFamille_C'] = $context['primeFamille'];
$_SESSION['primeBeneficiaire_C'] = $context['primeBeneficiaire'];
$_SESSION['rachatTm_C'] = $context['rachatTm'];
// $_SESSION['garantieArchive_C'] = $context['garantieArchive'];
$_SESSION['collegeArchive_C'] = $context['collegeArchive'];
$_SESSION['idEntetecontratPolice'] = $context['idEntetecontratPolice'];
$_SESSION['dernierIdAvenant'] = $context['dernierIdAvenant'];
$_SESSION['dernierDateAvenant'] = $context['dernierDateAvenant'];
$_SESSION['dernierIdCollege'] = $context['dernierIdCollege'];
$_SESSION['idAdherent_C'] = "";
$_SESSION['numeroAdherent_C'] = "";
$_SESSION['nomAdherent_C'] = "";
$_SESSION['idBeneficiaire_C'] = "";
$_SESSION['numeroBeneficiaire_C'] = "";
$_SESSION['nomBeneficiaire_C'] = "";
$_SESSION['lienPhoto_C'] = "";
$_SESSION['beneficiaire_C'] = "";
$_SESSION['adherent_C'] = "";
$_SESSION['enVigueur_C'] = "";
$_SESSION['decede_C'] = "0";
$_SESSION['dateDeces_C'] = "";
$_SESSION['fraisFuneraireDemande_C'] = "0";
$_SESSION['fraisFunerairePaye_C'] = "0";
// nb famille et de dépendants
$sql = 'select
ifnull(sum(case when codeLienParente="A" then "1" else "0" end), "0") as ndAdh,
ifnull(SUM(case when codeLienParente="A" then "0" else "1" end), "0") as ndDep,
ifnull(SUM(case when codeEtatBeneficiaire="V" then "1" else "0" end), "0") as ndActif
from beneficiaire where (codeSociete=?) AND (idPolice=?) and (supprime!="1")';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$effectif = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['ndAdh_C'] = $effectif['ndAdh'];
$_SESSION['ndDep_C'] = $effectif['ndDep'];
$_SESSION['ndActif_C'] = $effectif['ndActif'];
}
public function getDenierNumeroPolice($annee)
{
$sql = 'select dernierNumeroPolice from numerotationpolice WHERE (codeSociete=? AND annee=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee));
if ($resultat->rowCount() == 0)
{
$sql = 'insert into numerotationpolice (codeSociete, annee, dernierNumeroPolice) values (?,?,?)';
$this->executerRequete($sql, array($_SESSION['codeSociete'],$annee,"0"));
return "1";
} else
{
$ligne = $resultat->fetch();
return $ligne['dernierNumeroPolice']+1;
}
}
public function setDenierNumeroPolice($annee,$dernierNumeroPolice)
{
$sql = 'update numerotationpolice set dernierNumeroPolice=? WHERE (codeSociete=? AND annee=?)';
$this->executerRequete($sql, array($dernierNumeroPolice, $_SESSION['codeSociete'], $annee));
}
public function ajouter($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur,
$codeGestionnaire, $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission,
$primeFamille, $primeBeneficiaire, $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent)
{
$sql = 'INSERT INTO police (codeSociete, idClient, numeroClient, numeroPolice, numeroPoliceSociete,
codeTypeContrat, dateEffet, dateFin, dateEcheance, numeroAvenant, codeTypeAvenant, dateAvenant,
codeApporteur, codeGestionnaire, dateCre, userCre, codeEtatPolice, codeFractionnement, codePeriodicite, tauxCommission,
primeFamille, primeBeneficiaire, rachatTm, deduireComm, taciteReconduction, tauxRachatTm, codeCommercial,
tauxCommissionAutre, speciale, limiteConsommation, tauxRistourne, remplacementAdherent)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur,
$codeGestionnaire, $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission,
$primeFamille, $primeBeneficiaire, $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent));
$dernierId=$this->dernierId();
$sql = 'insert into avenant (codeSociete, idPolice, numeroPolice, codeTypeAvenant, numeroAvenant, dateEffet, dateCre, user, dateSysteme)
select codeSociete, id as idPolice, numeroPolice, codeTypeAvenant, numeroAvenant, dateEffet, dateCre, userCre as `user`, dateSysteme
from police where (id=?)';
$this->executerRequete($sql, array($dernierId));
$sql = 'call sp_creer_contrat(?, ?)';
$this->executerRequete($sql, array($dernierId, $userCre));
return $dernierId;
}
public function modifier($id, $tauxCommission, $primeFamille, $primeBeneficiaire, $codeApporteur, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_police(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($id, $tauxCommission, $codeApporteur, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent, $user));
}
public function initresiliation($idPolice)
{
$dateAvenant = $_SESSION['dateAvenant_C'];
$motifavenant = $_SESSION['motifavenant_C'];
$user = $_SESSION['login'];
$sql = 'call sp_init_resiliation(?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant));
}
public function initretrait($idPolice)
{
$dateAvenant = $_SESSION['dateAvenant_C'];
$motifavenant = $_SESSION['motifavenant_C'];
$user = $_SESSION['login'];
$idSaisie = $_SESSION['idSaisie'];
/*
$sql = 'call sp_init_retrait(?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant, $idSaisie));
*/
$sql = 'call sp_init_retrait(?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant));
}
public function initrerenouvellement($idPolice)
{
$dateAvenant = $_SESSION['dateAvenant_C'];
$dateEcheanceRen = $_SESSION['dateEcheanceRen_C'];
$user = $_SESSION['login'];
$sql = 'call sp_init_renouvellement(?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $dateEcheanceRen));
}
public function initLimiteAdditionnelle($idPolice, $dateAvenant)
{
$user = $_SESSION['login'];
$sql = 'call sp_init_limite_additionnelle(?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user));
}
public function getAvenantTemp() {
$user = $_SESSION['login'];
$sql = 'SELECT * FROM avenant_temp WHERE (`user`=?) order by id desc';
$resultat = $this->executerRequete($sql, array($user));
return $resultat->fetch();
}
public function getEmissionTemp() {
$user = $_SESSION['login'];
$sql = 'SELECT * FROM emission_temp WHERE (`user`=?)';
$resultat = $this->executerRequete($sql, array($user));
return $resultat->fetch();
}
public function creeravenant($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant)
{
$user = $_SESSION['login'];
$sql = 'call sp_creer_avenant(?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant, $user));
}
public function enregistrerresiliation()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_resiliation(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function enregistrerretrait()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_retrait(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function enregistrerrenouvellement()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_renouvellement(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function getIdPolice($numeroPolice) {
$sql = 'SELECT id FROM police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
$ligne = $resultat->fetch();
return $ligne['id'];
}
public function existeligne($numeroPolice) {
$sql = 'select id FROM police WHERE (codeSociete=?) and (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
return ($resultat->rowCount() > 0);
}
public function formaterNumeroPolice($annee,$numeroPolice) {
$numeroPolice = "00000".$numeroPolice;
$numeroPolice = substr($numeroPolice, -6);
$numeroPolice = $annee.$numeroPolice;
return $numeroPolice;
}
public function supprimer($idPolice) {
$sql = 'select id from college where (idPolice=?) limit 1';
$resultat = $this->executerRequete($sql, array($idPolice));
if($resultat->rowCount() == 0)
{
$sql = 'DELETE FROM police WHERE (id=?)';
$this->executerRequete($sql, array($idPolice));
$sql = 'DELETE FROM contrat WHERE (idPolice=?)';
$this->executerRequete($sql, array($idPolice));
return true;
}
else
{
return false;
}
}
public function getExisteQuittance($idPolice) {
$sql = 'select id from emission where (idPolice=?) limit 1';
$resultat = $this->executerRequete($sql, array($idPolice));
if($resultat->rowCount() == 0)
{
return "0";
}
else
{
return "Q";
}
}
public function archivergarantie($id) {
$sql = 'UPDATE police SET garantieArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function archivercollege($id) {
$sql = 'UPDATE police SET collegeArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function getContexteAjaxPolice($id)
{
$sql = 'SELECT A.id as idPolice FROM police A WHERE (A.id=?)';
$resultat = $this->executerRequete($sql, array($id));
$context = $resultat->fetch();
$_SESSION['idPoliceAjax'] = $context['idPolice'];
$_SESSION['idPolice_C'] = $_SESSION['idPoliceAjax'];
}
public function getEnteteCP($idPolice)
{
$sql = 'call sp_entete_cp(?);';
$entete = $this->executerRequete($sql, array($idPolice));
return $entete->fetch(PDO::FETCH_ASSOC);
}
public function getCollegesCP($idPolice)
{
$sql = 'call sp_collesges_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarantiesCollegesCP($idPolice)
{
$sql = 'call sp_garanties_colleges_police(?);';
$garantiescolleges = $this->executerRequete($sql, array($idPolice));
return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC);
}
public function gettableauPrestationsCP($idPolice)
{
$sql = 'call sp_tableau_prestation_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getRapportSpPolice($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function getConsommationPolice($idPolice, $dateReference)
{
$sql = 'call sp_consommation_police(?, ?);';
$consommationpolice = $this->executerRequete($sql, array($idPolice, $dateReference));
return $consommationpolice->fetch(PDO::FETCH_ASSOC);
}
public function getExisteConsommationPolice($idPolice)
{
$dj = date("Y-m-d");
$sql = 'call sp_consommation_police(?, ?);';
$resultat = $this->executerRequete($sql, array($idPolice, $dj));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$consommationpolice = $ligne['consommation'];
if($consommationpolice>"0")
{
return "C";
}
else
{
return "0";
}
}
public function gettableauAjustementCP()
{
$sql = 'call sp_tableau_ajustement();';
$tableauajustementcps = $this->executerRequete($sql);
return $tableauajustementcps->fetchAll(PDO::FETCH_ASSOC);
}
public function getClientsearchPol($numeroPolice)
{
$sql = 'select id as idPolice from police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function getClientsearchPolId($idPolice)
{
$sql = 'select id as idPolice from police WHERE (codeSociete=?) AND (id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$idPolice));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function recapituler_maj_limite_police()
{
$user = $_SESSION['login'];
$sql = 'call sp_recapituller_maj_limite_police(?)';
$this->executerRequete($sql, array($user));
}
public function enregistrerlimiteadditionnelle()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_limite_additionnelle(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function getContexteClientId($idPolice) {
$sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient, A.codeLangueClient
FROM clients A join police B on (B.idClient=A.id) WHERE (B.id=?)';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch();
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['nomClient_C'] = $context['nomClient'];
$_SESSION['idClientAjax'] = $context['idClient'];
$_SESSION['codeLangueClient'] = $context['codeLangueClient'];
}
// Polices non renouvellées
public function etatpolnonren()
{
$dj = date("Y-m-d");
$sql = 'call sp_polices_non_renouvellees(?);';
$resultat = $this->executerRequete($sql, array($dj));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function activergc($idPolice)
{
$user = $_SESSION['login'];
$sql = 'call sp_activergc(?, ?);';
$this->executerRequete($sql, array($idPolice, $user));
}
public function desactivergc($idPolice)
{
$user = $_SESSION['login'];
$sql = 'call sp_desactivergc(?, ?);';
$this->executerRequete($sql, array($idPolice, $user));
}
public function getRapportSpPoliceEntete($idPolice, $dateReference)
{
$sql = 'call sp_rapport_sp_police_entete(?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function getRapportSpPolicePol($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police_pol(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function getRapportSpPoliceCat($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police_cat(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetchAll(PDO::FETCH_ASSOC);
}
public function getRapportSpPoliceCol($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police_col(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetchAll(PDO::FETCH_ASSOC);
}
public function getsyntheseconsopolice()
{
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_synthese_consommation_police(?);';
$sppolice = $this->executerRequete($sql, array($idPolice));
return $sppolice->fetchAll(PDO::FETCH_ASSOC);
}
public function getderniereavenantincorporation($idPolice)
{
$sql = 'call sp_get_derniere_avenant_incorporation(?);';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['dernierIdAvenant'] = $context['dernierIdAvenant'];
$_SESSION['dernierDateAvenant'] = $context['dernierDateAvenant'];
}
public function getcollegefamiliale($idPolice)
{
$sql = 'call sp_get_college_familiale(?);';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['dernierIdCollege'] = $context['dernierIdCollege'];
return $context;
}
}

View File

@ -0,0 +1,348 @@
<?php
require_once 'Framework/Modele.php';
class Police_d extends Modele {
public function getPolices($numeroClient) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, numeroContrat,
D.libelle as etatPolice, A.codeFractionnement, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, TM.libelle as rachattm
FROM d_police A
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
return $polices;
}
public function getPolicesId($id) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete, numeroContrat,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement,
D.libelle as etatPolice, A.codeFractionnement, T.libelle As typeContrat, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, rachatTm, TM.libelle as rachattm, garantieArchive, collegeArchive
FROM d_police A
left join typecontrat T on (T.codeTypeContrat=A.codeTypeContrat)
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.idClient=?) order by A.id';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $polices;
}
public function getPolice($numeroPolice)
{
$sql = 'call sp_d_getPoliceNo(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucun devis ne correspond au numéo '$numeroPolice'");
}
public function getPoliceId($id)
{
$sql = 'call sp_d_getPoliceId(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucun devis ne correspond au ie '$id'");
}
public function getPoliceIdSimple($id) {
$sql = 'SELECT A.* FROM d_police A WHERE (A.codeSociete=?) AND (A.id=?)';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucun devis ne correspond au ie '$id'");
}
public function getNombrePolices($numeroClient)
{
$sql = 'select count(*) as nbPolices FROM d_polices A WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getNombrePolicesId($id)
{
$sql = 'select count(*) as nbPolices FROM d_police A WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getContextePoliceId($id) {
$sql = 'SELECT A.idClient, A.numeroClient, A.id AS idPolice, A.numeroPolice, A.transforme, A.numeroContrat,
IFNULL(B.tauxTaxe,"0") AS tauxTaxe, A.codeEtape, IFNULL(A.tauxCommission,"0") AS tauxCommission,
IFNULL(A.primeFamille,"0") as primeFamille, IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm,
TM.libelle as rachattm, garantieArchive, collegeArchive, A.codeTypeAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement,
A.dateEffet, A.dateFin, A.dateEcheance, dateAvenant, A.deduireComm, A.codeEtatPolice
FROM d_police A
LEFT JOIN typecontrat B ON (B.codeTypeContrat=A.codeTypeContrat)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$context = $resultat->fetch();
$_SESSION['idClient_d_C'] = $context['idClient'];
$_SESSION['numeroClient_d_C'] = $context['numeroClient'];
$_SESSION['idPolice_d_C'] = $context['idPolice'];
$_SESSION['numeroPolice_d_C'] = $context['numeroPolice'];
$_SESSION['codeEtape_d_C'] = $context['codeEtape'];
$_SESSION['tauxTaxe_d_C'] = $context['tauxTaxe'];
$_SESSION['tauxCommission_d_C'] = $context['tauxCommission'];
$_SESSION['deduireComm_d_C'] = $context['deduireComm'];
$_SESSION['dateEffet_d_C'] = $context['dateEffet'];
$_SESSION['dateFin_d_C'] = $context['dateFin'];
$_SESSION['dateEcheance_d_C'] = $context['dateEcheance'];
$_SESSION['dateAvenant_d_C'] = $context['dateAvenant'];
$_SESSION['idPolice_d_Ajax'] = $_SESSION['idPolice_d_C'];
$_SESSION['rachatTm_d_C'] = $context['rachatTm'];
$_SESSION['collegeArchive_d_C'] = $context['collegeArchive'];
}
public function getDenierNumeroPolice($annee)
{
$sql = 'select dernierNumeroPolice from d_numerotationpolice WHERE (codeSociete=? AND annee=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee));
if ($resultat->rowCount() == 0)
{
$sql = 'insert into d_numerotationpolice (codeSociete, annee, dernierNumeroPolice) values (?,?,?)';
$this->executerRequete($sql, array($_SESSION['codeSociete'],$annee,"0"));
return "1";
} else
{
$ligne = $resultat->fetch();
return $ligne['dernierNumeroPolice']+1;
}
}
public function setDenierNumeroPolice($annee,$dernierNumeroPolice)
{
$sql = 'update d_numerotationpolice set dernierNumeroPolice=? WHERE (codeSociete=? AND annee=?)';
$this->executerRequete($sql, array($dernierNumeroPolice, $_SESSION['codeSociete'], $annee));
}
public function ajouter($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, $codeCommercial, $codeGestionnaire,
$dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, $tauxCommissionAutre, $primeFamille, $primeBeneficiaire,
$rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $tauxRistourne)
{
$sql = 'INSERT INTO d_police (codeSociete, idClient, numeroClient, numeroPolice, numeroPoliceSociete,
codeTypeContrat, dateEffet, dateFin, dateEcheance, numeroAvenant, codeTypeAvenant, dateAvenant,
codeApporteur, codeCommercial, codeGestionnaire, dateCre, userCre, codeEtatPolice, codeFractionnement, codePeriodicite, tauxCommission, tauxCommissionAutre,
primeFamille, primeBeneficiaire, rachatTm, deduireComm, taciteReconduction, tauxRachatTm, tauxRistourne)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, $codeCommercial, $codeGestionnaire,
$dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, $tauxCommissionAutre, $primeFamille, $primeBeneficiaire,
$rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $tauxRistourne));
$dernierId=$this->dernierId();
$sql = 'insert into d_optionstarif (idPolice, numeroOptionTarif, libelleOptionTarif, user)
select id as idPolice, "1" numeroOptionTarif, "Option 1" libelleOptionTarif, userCre from d_police where (id=?)';
$this->executerRequete($sql, array($dernierId));
return $dernierId;
}
public function modifier($id, $codeTypeContrat, $codeApporteur, $tauxCommission, $codePeriodicite,
$rachatTm, $tauxRachatTm, $dateEffet, $dateEcheance, $codeCommercial, $tauxCommissionAutre, $tauxRistourne)
{
$sql = 'UPDATE d_police SET
codeTypeContrat =?,
codeApporteur =?,
tauxCommission =?,
codePeriodicite =?,
rachatTm =?,
tauxRachatTm =?,
dateEffet =?,
dateEcheance =?,
codeCommercial =?,
tauxCommissionAutre =?,
tauxRistourne =?
where (id=?)';
$this->executerRequete($sql, array($codeTypeContrat, $codeApporteur, $tauxCommission, $codePeriodicite,
$rachatTm, $tauxRachatTm, $dateEffet, $dateEcheance, $codeCommercial, $tauxCommissionAutre, $tauxRistourne, $id));
}
public function getIdPolice($numeroPolice) {
$sql = 'SELECT id FROM d_police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
$ligne = $resultat->fetch();
return $ligne['id'];
}
public function existeligne($numeroPolice) {
$sql = 'select id FROM d_police WHERE (codeSociete=?) and (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
return ($resultat->rowCount() > 0);
}
public function formaterNumeroPolice($annee,$numeroPolice) {
$numeroPolice = "00000".$numeroPolice;
$numeroPolice = substr($numeroPolice, -6);
$numeroPolice = "D".$annee.$numeroPolice;
return $numeroPolice;
}
public function supprimer($idPolice) {
$sql = 'select id from d_college where (idPolice=?) limit 1';
$resultat = $this->executerRequete($sql, array($idPolice));
if($resultat->rowCount() == 0)
{
$sql = 'DELETE FROM d_police WHERE (id=?)';
$this->executerRequete($sql, array($idPolice));
return true;
}
else
{
return false;
}
}
public function archivergarantie($id) {
$sql = 'UPDATE d_police SET garantieArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function archivercollege($id) {
$sql = 'UPDATE d_police SET collegeArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function getContexteAjaxPolice($id)
{
$sql = 'SELECT A.id as idPolice FROM d_police A WHERE (A.id=?)';
$resultat = $this->executerRequete($sql, array($id));
$context = $resultat->fetch();
$_SESSION['idPolice_d_Ajax'] = $context['idPolice'];
}
public function getCollegesCP($idPolice)
{
$sql = 'call sp_collesges_d_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarantiesCollegesCP($idPolice)
{
$sql = 'call sp_garanties_colleges_d_police(?);';
$garantiescolleges = $this->executerRequete($sql, array($idPolice));
return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC);
}
public function gettableauPrestationsCP($idPolice)
{
$sql = 'call sp_tableau_prestation_d_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getClientsearchPol($numeroPolice)
{
$sql = 'select id as idPolice FROM d_police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function transformer($idDevis, $numeroOptionTarif)
{
$user = $_SESSION['login'];
$sql = 'call sp_transformer_devis(?, ?, ?);';
$resultat = $this->executerRequete($sql, array($idDevis, $user, $numeroOptionTarif));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function getContexteClientId($idPolice) {
$sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient
FROM d_clients A join d_police B on (B.idClient=A.id) WHERE (B.id=?)';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch();
$_SESSION['idClient_d_C'] = $context['idClient'];
$_SESSION['numeroClient_d_C'] = $context['numeroClient'];
$_SESSION['nomClient_d_C'] = $context['nomClient'];
$_SESSION['idClient_d_Ajax'] = $context['idClient'];
}
public function getEnteteCP($idPolice)
{
$sql = 'call sp_entete_devis(?);';
$entete = $this->executerRequete($sql, array($idPolice));
return $entete->fetch(PDO::FETCH_ASSOC);
}
public function nouvelleoptiontarif($idPolice)
{
$sql = 'insert into d_optionstarif (idPolice, numeroOptionTarif, libelleOptionTarif, user)
select id as idPolice, "1" numeroOptionTarif, "Option 1" libelleOptionTarif, userCre from d_police where (id=?)';
$this->executerRequete($sql, array($dernierId));
return $dernierId;
}
public function getTextecp($id) {
$sql = 'select texteCp from d_police where (id=?)';
$textecp = $this->executerRequete($sql, array($id));
return $textecp->fetch();
}
public function enregistrertexteCp($texteCp, $idPolice) {
$sql = 'update d_police set texteCp=? where (id=?)';
$this->executerRequete($sql, array($texteCp, $idPolice));
}
}

View File

@ -0,0 +1,158 @@
<?php
require_once '././Framework/Modele.php';
class Tarif extends Modele
{
public function recapitulerprimeimposee($primeNette, $fraisCarte)
{
$tauxCommission = $_SESSION['tauxCommission_C'];
$tauxCommissionAutre = $_SESSION['tauxCommissionAutre_C'];
$tauxTaxe = $_SESSION['tauxTaxe_C'];
$sql = 'call sp_recapitulerprimeimposee(?, ?, ?, ?, ?, ?);';
$prime = $this->executerRequete($sql, array($_SESSION['codeSociete'], $primeNette, $fraisCarte, $tauxCommission, $tauxCommissionAutre, $tauxTaxe));
return $prime->fetch(PDO::FETCH_ASSOC);
}
/*
public function calculerPrimeBen()
{
// dateSortie, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc
$idAdherent = $_SESSION['idAdherent_C'];
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
$sql = 'SELECT codeProduit, codeLienParente, sexe, dateNaissance, dateEntree, IFNULL(primeFamille,"0") as primeFamille,
IFNULL(primeBeneficiaire,"0") as primeBeneficiaire FROM beneficiaire WHERE id=?';
$resultat = $this->executerRequete($sql, array($idBeneficiaire));
$beneficiaire = $resultat->fetch();
$codeLienParente = $beneficiaire['codeLienParente'];
$sexe = $beneficiaire['sexe'];
$dateNaissance = $beneficiaire['dateNaissance'];
$dateEntree = $beneficiaire['dateEntree'];
$primeFamille = $beneficiaire['primeFamille'];
$primeBeneficiaire = $beneficiaire['primeBeneficiaire'];
$age = age($dateNaissance , $dateEntree);
// Pour Rdaiant
$codeEtape = $_SESSION['codeEtape_C'];
if($codeEtape=='1')
{
$accessoire = 15000;
}
else
{
$accessoire = 12000;
}
if($codeLienParente=='A')
{
$primeBase = $primeFamille;
}
else
{
$primeBase = $primeBeneficiaire;
}
$surprimeMaladie = 0;
$surprimeAge = 0;
$primeNette = $primeBase + $surprimeMaladie + $surprimeAge;
$commission = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$commissionAutre = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$primeHt = $primeNette + $commission;
$taxe = round(($primeHt*$_SESSION['tauxTaxe_C'])/100);
$fraisCarte = $accessoire;
$primeTtc = $primeHt+$taxe+$fraisCarte;
$sql = 'update beneficiaire set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeNette, $commission, $primeHt, $taxe, $fraisCarte, $primeTtc, $idBeneficiaire));
$sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission,
IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe,
IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc
from beneficiaire WHERE (idAdherent=?)';
$resultat = $this->executerRequete($sql, array($idAdherent));
$primeAdherent = $resultat->fetch();
$sql = 'update adherent set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeAdherent['primeNette'], $primeAdherent['commission'],$primeAdherent['primeHt'],
$primeAdherent['taxe'], $primeAdherent['fraisCarte'] , $primeAdherent['primeTtc'], $idAdherent));
}
*/
/*
public function calculerPrimeCol()
{
// dateSortie, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc
$idAdherent = $_SESSION['idAdherent_C'];
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
$sql = 'SELECT codeProduit, codeLienParente, sexe, dateNaissance, dateEntree, IFNULL(primeFamille,"0") as primeFamille,
IFNULL(primeBeneficiaire,"0") as primeBeneficiaire FROM beneficiaire WHERE id=?';
$resultat = $this->executerRequete($sql, array($idBeneficiaire));
$beneficiaire = $resultat->fetch();
$codeLienParente = $beneficiaire['codeLienParente'];
$sexe = $beneficiaire['sexe'];
$dateNaissance = $beneficiaire['dateNaissance'];
$dateEntree = $beneficiaire['dateEntree'];
$primeFamille = $beneficiaire['primeFamille'];
$primeBeneficiaire = $beneficiaire['primeBeneficiaire'];
$age = age($dateNaissance , $dateEntree);
// Pour Rdaiant
$codeEtape = $_SESSION['codeEtape_C'];
if($codeEtape=='1')
{
$accessoire = 15000;
}
else
{
$accessoire = 12000;
}
if($codeLienParente=='A')
{
$primeBase = $primeFamille;
}
else
{
$primeBase = $primeBeneficiaire;
}
$surprimeMaladie = 0;
$surprimeAge = 0;
$primeNette = $primeBase + $surprimeMaladie + $surprimeAge;
$commission = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$commissionAutre = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$primeHt = $primeNette + $commission;
$taxe = round(($primeHt*$_SESSION['tauxTaxe_C'])/100);
$fraisCarte = $accessoire;
$primeTtc = $primeHt+$taxe+$fraisCarte;
$sql = 'update beneficiaire set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeNette, $commission, $primeHt, $taxe, $fraisCarte, $primeTtc, $idBeneficiaire));
$sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission,
IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe,
IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc
from beneficiaire WHERE (idAdherent=?)';
$resultat = $this->executerRequete($sql, array($idAdherent));
$primeAdherent = $resultat->fetch();
$sql = 'update adherent set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeAdherent['primeNette'], $primeAdherent['commission'],$primeAdherent['primeHt'],
$primeAdherent['taxe'], $primeAdherent['fraisCarte'] , $primeAdherent['primeTtc'], $idAdherent));
}
*/
}

View File

@ -0,0 +1,415 @@
<?php
$this->titre = "INTER-SANTE - Consultation collège";
?>
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<INPUT class="sr-only" TYPE="text" id="idCollege" name="idCollege" value="<?= $this->nettoyer($collegeTemp['idCollege']) ?>">
<INPUT class="sr-only" TYPE="text" id="rachatTm" name="rachatTm" value="<?= $this->nettoyer($collegeTemp['rachatTm']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<button id="btn_pop_lib_college" NAME="btn_pop_lib_college" type="button" class="sr-only" data-toggle="modal" data-target="#popmajlibellecollege"> <?= _("Modifier Libellé Collège") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%"> <?= _("Catégorie") ?> </td>
<td colspan="3">
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" disabled >
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit'])); ?>
</SELECT>
</td>
<td width="8%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" disabled></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" disabled>
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" disabled>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" disabled>
</td>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?= format_N($this->nettoyer($collegeTemp['nbAdherent'])) ?>" disabled></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?= format_N($this->nettoyer($collegeTemp['nbAyantdroit'])) ?>" disabled></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?= format_N($this->nettoyer($collegeTemp['primeFamille'])) ?>" disabled></td>
<td align="right">Surpr. Div.</td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?= format_N($this->nettoyer($collegeTemp['surprimeAnt'])) ?>" disabled></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" disabled ></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?= format_N($this->nettoyer($collegeTemp['cplFuneraire'])) ?>" disabled></td>
<td colspan="4"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_consulter_tableau_prestation();" > <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties" disabled>
<div class="row">
<div id="div_garbase" class="col-xs-5" >
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" disabled ></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" disabled ></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" >
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" disabled ></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" disabled ></td>
<?php endif; ?>
<td align='center'> <?= $garantie ?> </td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
</div>
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th style='text-align:center'> <?= _("Récapitultaif") ?> </th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popmajlibellecollege" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Modifier Libellé Collège") ?> </h4>
</div>
<div class="modal-body">
<div id="div_maj_libelle_college">
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="20%" align='center' > <?= _("Ancien Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="ancLibelleCollege" NAME="ancLibelleCollege" value="<?=$collegeTemp['libelleCollege']?>" readonly ></td>
</tr>
<tr>
<td align='center' > <?= _("Nouveau Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="nouvLibelleCollege" NAME="nouvLibelleCollege" value="<?=$collegeTemp['libelleCollege']?>" ></td>
</tr>
<tr>
<td> </td>
<td > <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:enregistrer_maj_libelle_college();" > <?= _("Enregistrer...") ?> </button> </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="btn_close_pop_maj_libelle" name="btn_close_pop_maj_libelle" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,603 @@
<?php $this->titre = "INTER-SANTE - Ajout Collège";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
?>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Creercollege/enregistrer">
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%"> <?= _("Catégorie") ?> </td>
<td colspan="3">
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required autofocus
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="javascript:maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="javascript:maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="javascript:maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" > <INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" onBlur="controle_numerique(this);"></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT style='text-align:center' class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="javascript:maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td colspan="2" align='center'><?= $garantie ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
<?php endforeach; ?>
</tr>
</tbody>
</table>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<?php endif; ?>
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> Prime Nette Statisque </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
div_tableau_prestation
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,631 @@
<?php
$this->titre = "INTER-SANTE - Ajout Collège au Devis";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
$controlPlafondAdherent = $_SESSION['controlPlafondAdherent'];
$controlPlafondBeneficiaire = $_SESSION['controlPlafondBeneficiaire'];
// var_dump($optionstarif);
// exit();
?>
<div id="div_listeprospects" style="height:100%; background-color: rgb(255,0,255);">
<?= _("GESTION DES DEVIS") ?>
</div>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Creercolleged/enregistrer" >
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%">Option</td>
<td>
<SELECT class="form-control" id="numeroOptionTarif" NAME="numeroOptionTarif" required autofocus >
<?php liste_options($optionstarif, $this->nettoyer($collegeTemp['numeroOptionTarif']), true); ?>
</SELECT>
</td>
<td> <?= _("Cat") ?> </td>
<td>
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" > <INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td colspan="2" align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php endif; ?>
</div>
<fieldset >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,671 @@
<?php
$this->titre = "INTER-SANTE - Modification collège";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
?>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Modifiercollege/enregistrer">
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<button id="btn_pop_lib_college" NAME="btn_pop_lib_college" type="button" class="sr-only" data-toggle="modal" data-target="#popmajlibellecollege"> <?= _("Modifier Libellé Collège") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%"> <?= _("Catégorie") ?> </td>
<td colspan="3">
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required autofocus
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" onBlur="controle_numerique(this);"></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td colspan="2" align='center'><?= $garantie ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php endif; ?>
</div>
<fieldset >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popmajlibellecollege" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Modifier Libellé Collège") ?> </h4>
</div>
<div class="modal-body">
<div id="div_maj_libelle_college">
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="20%" align='center' > <?= _("Ancien Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="ancLibelleCollege" NAME="ancLibelleCollege" value="<?=$collegeTemp['libelleCollege']?>" readonly ></td>
</tr>
<tr>
<td align='center' > <?= _("Nouveau Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="nouvLibelleCollege" NAME="nouvLibelleCollege" value="<?=$collegeTemp['libelleCollege']?>" ></td>
</tr>
<tr>
<td> </td>
<td > <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:enregistrer_maj_libelle_college();" > <?= _("Enregistrer...") ?> </button> </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="btn_close_pop_maj_libelle" name="btn_close_pop_maj_libelle" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,641 @@
<?php
$this->titre = "INTER-SANTE - Modification collège du devis";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
$_SESSION['numeroOptionTarif'] = $this->nettoyer($collegeTemp['numeroOptionTarif']);
?>
<div id="div_listeprospects" style="height:100%; background-color: rgb(255,0,255);">
<?= _("GESTION DES DEVIS") ?>
</div>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Modifiercolleged/enregistrer">
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%">Option</td>
<td>
<SELECT class="form-control" id="numeroOptionTarif" NAME="numeroOptionTarif" required autofocus
onChange="javascript:maj_college();">
<?php liste_options($optionstarif, $this->nettoyer($collegeTemp['numeroOptionTarif']), true); ?>
</SELECT>
</td>
<td> <?= _("Cat") ?> </td>
<td>
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required autofocus
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<INPUT class="sr-only" TYPE="text" id="ageMoyen" NAME="ageMoyen" value="<?=$this->nettoyer($collegeTemp['ageMoyen'])?>">
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" onBlur="controle_numerique(this);"></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td colspan="2" align='center'><?= $garantie ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php endif; ?>
</div>
<fieldset >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,93 @@
<div id="div_prime" class="card border-0 shadow-sm mt-4 animate__animated animate__fadeInUp">
<div class="card-header bg-office-dark text-white py-3 d-flex justify-content-between align-items-center">
<h6 class="mb-0 fw-bold">
<i class="fas fa-file-invoice-dollar me-2 text-info"></i>
<?= _("DÉCOMPTE DÉTAILLÉ DES PRIMES") ?>
</h6>
<span class="badge bg-primary px-3"><?= _("Calcul au Prorata") ?></span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0" style="font-size: 0.85rem;">
<thead class="table-light">
<tr>
<th class="ps-4 py-3" width="40%"><?= _("Libellé du composant") ?></th>
<th class="text-center py-3"><?= _("Base Annuelle") ?></th>
<th class="text-center py-3 bg-primary-subtle text-primary border-start border-primary"><?= _("Montant Proraté") ?></th>
</tr>
</thead>
<tbody>
<tr class="table-group-divider"><td colspan="3" class="bg-light ps-4 small fw-bold text-uppercase text-muted"><?= _("Garanties & Surprimes") ?></td></tr>
<tr>
<td class="ps-4"><?= _("Prime de Base") ?></td>
<td class="text-center text-muted"><?= format_N($this->nettoyer($adherent_temp['primeFamille_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['primeFamille'])) ?></td>
</tr>
<tr>
<td class="ps-4"><?= _("Complément Frais Funéraires") ?></td>
<td class="text-center text-muted"><?= format_N($this->nettoyer($adherent_temp['primeCplFuneraire_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['primeCplFuneraire'])) ?></td>
</tr>
<tr>
<td class="ps-4"><?= _("Garanties Optionnelles") ?></td>
<td class="text-center text-muted"><?= format_N($this->nettoyer($adherent_temp['surprimeOption_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['surprimeOption'])) ?></td>
</tr>
<tr>
<td class="ps-4"><?= _("Rachat Ticket Modérateur") ?></td>
<td class="text-center text-muted"><?= format_N($this->nettoyer($adherent_temp['surprimeTm_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['surprimeTm'])) ?></td>
</tr>
<tr>
<td class="ps-4"><?= _("Surprimes Diverses") ?></td>
<td class="text-center text-muted"><?= format_N($this->nettoyer($adherent_temp['surprimeAnt_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['surprimeAnt'])) ?></td>
</tr>
<tr class="bg-light"><td colspan="3" class="ps-4 small fw-bold text-uppercase text-muted"><?= _("Frais & Commissions") ?></td></tr>
<tr class="fst-italic text-secondary">
<td class="ps-4"><?= _("Commission Courtage") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['commission_an'])) ?></td>
<td class="text-center border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['commission'])) ?></td>
</tr>
<tr class="fst-italic text-secondary">
<td class="ps-4"><?= _("Commission Commerciaux") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['commissionAutre_an'])) ?></td>
<td class="text-center border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['commissionAutre'])) ?></td>
</tr>
<tr>
<td class="ps-4 fw-bold text-dark"><?= _("Accessoires") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['accessoire_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['accessoire'])) ?></td>
</tr>
<tr class="bg-light"><td colspan="3" class="ps-4 small fw-bold text-uppercase text-muted"><?= _("Taxes & Frais de gestion") ?></td></tr>
<tr>
<td class="ps-4"><?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['taxe_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['taxe'])) ?></td>
</tr>
<tr>
<td class="ps-4"><?= (isset($_SESSION['composanteprime']['Cartes'])) ? _($_SESSION['composanteprime']['Cartes']) : _("Cartes") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['fraisCarte_an'])) ?></td>
<td class="text-center fw-bold border-start border-primary-subtle"><?= format_N($this->nettoyer($adherent_temp['fraisCarte'])) ?></td>
</tr>
</tbody>
<tfoot class="table-dark">
<tr>
<td class="ps-4 text-uppercase"><?= _("Prime TTC") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['primeTtc_an'])) ?></td>
<td class="text-center text-warning fw-black h5 mb-0 border-start border-warning"><?= format_N($this->nettoyer($adherent_temp['primeTtc'])) ?></td>
</tr>
<tr class="small text-info opacity-75">
<td class="ps-4"><?= _("Prime Nette Statistique") ?></td>
<td class="text-center"><?= format_N($this->nettoyer($adherent_temp['primeNetteStat_an'])) ?></td>
<td class="text-center border-start border-info"><?= format_N($this->nettoyer($adherent_temp['primeNetteStat'])) ?></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>

211
Vue/Creeradherent/index.php Normal file
View File

@ -0,0 +1,211 @@
<?php
$this->titre = "INTER-SANTE - Ajout Adhérent";
$dateAvenant = $_SESSION['dateAvenant_C'];
?>
<div id="div_ajout_adherent" class="container-fluid py-4 animate__animated animate__fadeIn">
<div class="d-flex align-items-center mb-4">
<div class="bg-office-secondary p-3 rounded-circle text-white shadow-sm me-3">
<i class="fas fa-user-plus fa-lg"></i>
</div>
<div>
<h4 class="fw-bold mb-0 text-dark"><?= _("Nouvel Adhérent") ?></h4>
<span class="text-muted small">
<i class="fas fa-file-contract me-1"></i> <?= _("Police No") ?>: <strong><?= $_SESSION['numeroPolice_C'] ?></strong>
</span>
</div>
</div>
<form method="post" action="Creeradherent/ajouteradherent">
<input class="sr-only" type="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<input class="sr-only" type="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<div class="card shadow-sm border-0 mb-4">
<div class="card-header bg-light py-3 border-bottom-0">
<h6 class="mb-0 fw-bold text-secondary text-uppercase small">
<i class="fas fa-id-card me-2"></i><?= _("Informations Générales & Contrat") ?>
</h6>
</div>
<div class="card-body p-4">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Collège") ?></label>
<select class="form-select border-primary-subtle" id="idCollege" name="idCollege" required autofocus onChange="prorater_prime_adherent();">
<?php liste_options($college,""); ?>
</select>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Avenant") ?></label>
<select class="form-select" id="idAvenant" name="idAvenant" required onChange="changer_avenant_incorporation();">
<?php liste_options($avenant,""); ?>
</select>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Nom de l'adhérent") ?></label>
<input type="text" class="form-control text-uppercase fw-bold" id="nom" name="nom" required>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Prénoms") ?></label>
<input type="text" class="form-control" id="prenoms" name="prenoms" required>
</div>
<div class="col-md-4">
<label class="form-label fw-bold small text-primary"><?= _("Nature Pièce") ?></label>
<select class="form-select" id="codeNaturePiece" name="codeNaturePiece" required onChange="controler_piece_beneficiaire();">
<?php liste_options($naturepiece,""); ?>
</select>
</div>
<div class="col-md-4">
<label class="form-label fw-bold small text-primary"><?= _("N° de Pièce") ?></label>
<input type="text" class="form-control" id="numeroPiece" name="numeroPiece" onblur="controler_piece_beneficiaire();" required autocomplete="off">
</div>
<div class="col-md-4 d-flex align-items-end">
<div id="div_controle_piece" class="w-100"></div>
</div>
<div class="col-md-2">
<label class="form-label fw-bold small text-primary"><?= _("Sexe") ?></label>
<select class="form-select" id="sexe" name="sexe" required>
<?php liste_options($sexe,""); ?>
</select>
</div>
<div class="col-md-3">
<label class="form-label fw-bold small text-primary"><?= _("Date de Naissance") ?></label>
<div class="input-group">
<span class="input-group-text bg-white text-muted"><i class="fas fa-calendar-alt"></i></span>
<input type="text" class="form-control datepicker" id="dateNaissance" name="dateNaissance" required
onchange="controle_age($('#dateNaissance').datepicker('getDate'), 'A')">
</div>
</div>
<div class="col-md-2 text-center d-flex align-items-end justify-content-center pb-1">
<input type="text" id="agepersonne" name="agepersonne" class="form-control-plaintext text-danger fw-bold text-center border-bottom" value="Age : 0" readonly>
</div>
<div class="col-md-2">
<label class="form-label fw-bold small text-primary"><?= _("Groupe Sanguin") ?></label>
<select class="form-select" id="codeGroupeSanguin" name="codeGroupeSanguin" required>
<?php liste_options($groupesanguin,""); ?>
</select>
</div>
<div class="col-md-3">
<label class="form-label fw-bold small text-primary"><?= _("Situation Familiale") ?></label>
<select class="form-select" id="codeSituationFamille" name="codeSituationFamille" required>
<?php liste_options($situationfamille,""); ?>
</select>
</div>
</div>
</div>
</div>
<div class="row g-4">
<div class="col-lg-8">
<div class="card shadow-sm border-0 h-100">
<div class="card-header bg-light py-3 border-bottom-0">
<h6 class="mb-0 fw-bold text-secondary text-uppercase small"><i class="fas fa-map-marker-alt me-2"></i><?= _("Localisation & Contact") ?></h6>
</div>
<div class="card-body p-4">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label fw-bold small text-primary"><?= _("Pays") ?></label>
<select class="form-select" id="codePays" name="codePays" required onChange="ajaxListerVille();">
<?php liste_options($pays, $codePays); ?>
</select>
</div>
<div class="col-md-4">
<label class="form-label fw-bold small text-primary"><?= (isset($_SESSION['affichagedynamique']['Province'])) ? _($_SESSION['affichagedynamique']['Province']) : _("Province") ?></label>
<div id="listeville">
<select class="form-select" id="codeVille" name="codeVille" required onChange="ajaxListerLocalite();">
<?php liste_options($ville, $codeVille); ?>
</select>
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold small text-primary"><?= (isset($_SESSION['affichagedynamique']['Commune'])) ? _($_SESSION['affichagedynamique']['Commune']) : _("Commune") ?></label>
<div id="listelocalite">
<select class="form-select" id="codeLocalite" name="codeLocalite" required>
<?php liste_options($localite, $codeLocalite); ?>
</select>
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Adresse Géo") ?></label>
<input type="text" class="form-control" id="adresseGeo" name="adresseGeo">
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("E-mail") ?></label>
<div class="input-group">
<span class="input-group-text bg-white text-muted"><i class="fas fa-envelope"></i></span>
<input type="email" class="form-control" id="email" name="email" placeholder="exemple@mail.com">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Tél Portable") ?></label>
<div class="input-group">
<span class="input-group-text bg-white text-muted"><i class="fas fa-mobile-alt"></i></span>
<input type="tel" class="form-control" id="telephonePortable" name="telephonePortable" required minlength="12">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-primary"><?= _("Tél Fixe") ?></label>
<input type="tel" class="form-control" id="telephonFixe" name="telephonFixe">
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card border-primary-subtle shadow-sm h-100">
<div class="card-header bg-office-primary-lighter py-3">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-check-double me-2"></i><?= _("Validation de l'adhésion") ?></h6>
</div>
<div class="card-body p-4 d-flex flex-column justify-content-between">
<div>
<div class="mb-3">
<label class="form-label fw-bold small text-primary text-uppercase"><?= _("Date d'Entrée") ?></label>
<div id="div_date_avenant">
<input type="text" class="form-control datepicker fw-bold text-primary" id="dateEntree" name="dateEntree"
value="<?= dateLang($_SESSION['dateAvenant_C']) ?>" required onChange="prorater_prime_adherent();">
</div>
</div>
<div class="row g-2 mb-4">
<div class="col-7">
<label class="form-label fw-bold small text-muted text-uppercase"><?= _("Prorata?") ?></label>
<select class="form-select form-select-sm" id="prorata" name="prorata" required onChange="prorater_prime_adherent();">
<?php liste_options($ouinonprorata,"1",true); ?>
</select>
</div>
<div class="col-5">
<label class="form-label fw-bold small text-muted text-uppercase"><?= _("Enfants") ?></label>
<input class="form-control form-control-sm text-center fw-bold" type="number" id="nombreEnfants" name="nombreEnfants" min="0" max="10" value="0">
</div>
</div>
</div>
<div class="pt-3 border-top">
<button type="submit" class="btn btn-primary w-100 py-3 fw-bold shadow">
<i class="fas fa-save me-2"></i> <?= _("ENREGISTRER L'ADHÉRENT") ?>
</button>
</div>
</div>
</div>
</div>
</div>
<div id="div_prime" class="mt-4 animate__animated animate__fadeInUp">
</div>
</form>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger shadow-sm border-start border-4 border-danger mt-4 d-flex align-items-center animate__animated animate__shakeX" role="alert">
<i class="fas fa-exclamation-circle me-3 fa-2x"></i>
<div>
<strong class="d-block"><?= _("Erreur de saisie") ?></strong>
<?= $msgErreur ?>
</div>
</div>
<?php endif; ?>
</div>

View File

@ -20,7 +20,11 @@
<input type="hidden" id="gestionConfiee" value="<?= $this->nettoyer($police['gestionConfiee']) ?>">
<input type="hidden" id="prestationPossible" value="<?= $prestationPossible ?>">
<input type="hidden" id="idPolice_C" value="<?= $_SESSION['idPolice_C'] ?>">
<input type="hidden" id="codeTypeContrat_C" value="<?= $this->nettoyer($police['codeTypeContrat']) ?>">
<input type="hidden" id="codeTypeContrat_C" value="<?= $_SESSION['codeTypeContrat_C'] ?>">
<input type="hidden" id="nbAdh_C" value="<?= $_SESSION['ndAdh_C'] ?>">
<input type="hidden" id="nbAdh_C" value="<?= $_SESSION['codeEtatPolice_C'] ?>">
<h1 class="text-primary"><i class="fas fa-shield-alt me-2"></i></i> <?= _('Fiche Police') ?></h1>

View File

@ -600,7 +600,7 @@ $activeChildId = $menuData['child'];
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Application Scripts -->
<script src="/Js/fonctions.js?ver=2025.12.30.00"></script>
<script src="/Js/fonctions.js?ver=2025.12.30.01"></script>
<?php if (est_anglophone()): ?>
<script src="/Js/datepicker-eng.js"></script>