This commit is contained in:
KANE LAZENI 2026-04-10 08:01:46 +00:00
parent c87561efb5
commit 73303e741a

View File

@ -97,385 +97,363 @@
<INPUT class="sr-only" TYPE="text" id="faceRegistered" name="faceRegistered" value="<?= $faceRegistered ?>">
<div id="div_patienter" ></div>
<legend ><?= ("Informations du Bénéficiaire (") . "" . $beneficiaire['numeroBeneficiaire'] . ") => " . _("Couverture") . " : " . dateLang($_SESSION['dateEntreeBeneficiaire_C'], $_SESSION['lang']).' - '.dateLang($_SESSION['dateEcheancePolice_C'], $_SESSION['lang']) . " => " . _("Taux") . " : " . taux_couverture(intval($this->nettoyer($beneficiaire['ticketModerateur'])))?> </legend>
<style>
#container {
margin-top:5px;
display: flex;
justify-content: center; /* centre horizontalement */
align-items: center; /* centre verticalement */
height: 100%; /* à ajuster selon ton besoin */
}
#container {
margin-top:5px;
display: flex;
justify-content: center; /* centre horizontalement */
align-items: center; /* centre verticalement */
height: 100%; /* à ajuster selon ton besoin */
}
</style>
<!-- DEBUT TAG -->
<?php if ($carteAvecDonnees=="1") : ?>
<div class="mb-3">
<!-- <div class="input-group input-group-lg"> -->
<!-- <div class="input-group input-group-lg" style="max-width: 600px;"> -->
<div class="input-group input-group-lg" style="max-width: 90%;">
<span class="input-group-text" style="font-size: 13pt;">Tag NFC</span>
<input type="text"
id="tagCarteNfc"
value="<?= htmlspecialchars($beneficiaire['tagCarteNfc']) ?>"
readonly
class="form-control text-center"
style="letter-spacing: -1px; font-size:13pt;"
>
<button type="button"
<div class="input-group input-group-lg" style="max-width: 90%;">
<span class="input-group-text" style="font-size: 13pt;">Tag NFC</span>
<input type="text"
id="tagCarteNfc"
value="<?= htmlspecialchars($beneficiaire['tagCarteNfc']) ?>"
readonly
class="form-control text-center"
style="letter-spacing: -1px; font-size:13pt;"
>
<button type="button"
class="btn btn-primary"
onclick="copierTag()"
title="Copier le tag NFC"
style="font-size:13pt;">
<i class="fas fa-copy"></i> Copier le tag NFC
</button>
</div>
<i class="fas fa-copy"></i>
Copier le tag NFC
</button>
</div>
</div>
<script>
function copierTag() {
const valeur = document.getElementById('tagCarteNfc').value;
navigator.clipboard.writeText(valeur).then(() => {
// Feedback visuel
const btn = event.currentTarget;
const iconeOriginale = btn.innerHTML;
btn.innerHTML = '<i class="fas fa-check"></i>';
btn.classList.replace('btn-secondary', 'btn-success');
setTimeout(() => {
btn.innerHTML = iconeOriginale;
btn.classList.replace('btn-success', 'btn-secondary');
}, 2000);
}).catch(() => {
// Fallback pour anciens navigateurs
const input = document.getElementById('tagCarteNfc');
input.select();
document.execCommand('copy');
alert('Tag copié !');
});
}
function copierTag() {
const valeur = document.getElementById('tagCarteNfc').value;
navigator.clipboard.writeText(valeur).then(() => {
// Feedback visuel
const btn = event.currentTarget;
const iconeOriginale = btn.innerHTML;
btn.innerHTML = '<i class="fas fa-check"></i>';
btn.classList.replace('btn-secondary', 'btn-success');
setTimeout(() => {
btn.innerHTML = iconeOriginale;
btn.classList.replace('btn-success', 'btn-secondary');
}, 2000);
}).catch(() => {
// Fallback pour anciens navigateurs
const input = document.getElementById('tagCarteNfc');
input.select();
document.execCommand('copy');
alert('Tag copié !');
});
}
</script>
<?php endif; ?>
<!-- FIN TAG -->
<FORM name= "formfichebeneficiaire" id ="formfichebeneficiaire" method="POST">
<fieldset>
<div class="tab-container">
<legend ><?= ("Informations du Bénéficiaire (") . "" . $beneficiaire['numeroBeneficiaire'] . ") => " . _("Couverture") . " : " . dateLang($_SESSION['dateEntreeBeneficiaire_C'], $_SESSION['lang']).' - '.dateLang($_SESSION['dateEcheancePolice_C'], $_SESSION['lang']) . " => " . _("Taux") . " : " . taux_couverture(intval($this->nettoyer($beneficiaire['ticketModerateur'])))?> </legend>
<div class="tab-container">
<button class="sr-only" id="btn_pop_save_face" name="btn_pop_save_face" type="button" data-bs-toggle="modal" data-bs-target="#pop_rec_faciale" > </button>
<div id="div_urlFace">
<input class="sr-only" type="text" id="urlFace" name="urlFace" value="">
</div>
<div id="div_wait_face">
</div>
<button class="sr-only" id="btn_pop_save_face" name="btn_pop_save_face" type="button" data-bs-toggle="modal" data-bs-target="#pop_rec_faciale" > </button>
<?php if ($faceActif=='1') : ?>
<table class="table table-responsive table-condensed">
<tbody>
<?php if ($faceRegistered=="1") : ?>
<tr>
<td>
<button style='font-size:15pt; width:100%' type="button" class="btn btn-primary" onClick="javascript:ebene_init_confirm_photo_face();">
<i class="fa fa-camera" aria-hidden="true"></i> <?= _("CONFIRMER LA FACE") ?>
</button>
</td>
</tr>
<?php else: ?>
<tr>
<td >
<button style='font-size:15pt; width:100%' type="button" class="btn btn-primary" onClick="javascript:ebene_init_photo_face();">
<i class="fa fa-camera" aria-hidden="true"></i> <?= _("ENREGISTRER LA FACE") ?>
</button>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
<div id="div_urlFace">
<input class="sr-only" type="text" id="urlFace" name="urlFace" value="">
</div>
<table class="table table-responsive table-condensed" style="white-space: nowrap;">
<tbody>
<tr>
<td rowspan="14">
<div class="photo-container">
<?php if ($beneficiaire['faceRegistered']=="1" ): ?>
<img src="data:image/jpg;base64,<?=$imgData?>"
style="width: 100px; cursor:pointer;" data-bs-toggle="modal" data-bs-target="#pop_photo">
<?php endif; ?>
</div>
<div id="div_wait_face">
</div>
<?php if ($faceActif=='1') : ?>
<table class="table table-responsive table-condensed">
<tbody>
<?php if ($faceRegistered=="1") : ?>
<tr>
</div>
<div id="container">
<?php if ($carteEditee=="1" ): ?>
<i class="fa fa-check-circle text-success" title="<?= _('Carte éditée')?>"></i>
<?php else: ?>
<i class="fa fa-times-circle text-danger" title="<?= _('Carte non éditée')?>"></i>
<?php endif; ?>
</div>
</td>
</tr>
<td>
<button style='font-size:15pt; width:100%' type="button" class="btn btn-primary" onClick="javascript:ebene_init_confirm_photo_face();">
<i class="fa fa-camera" aria-hidden="true"></i> <?= _("CONFIRMER LA FACE") ?>
</button>
</td>
<tr>
<td colspan="9">
<?php if($vip=="1"): ?>
<INPUT class="form-control vip" TYPE="text" id="vip" name="vip" value="<?= _("ASSURE VIP") ?>">
<?php endif; ?>
</td >
</tr>
<?php else: ?>
<tr>
<td >
<button style='font-size:15pt; width:100%' type="button" class="btn btn-primary" onClick="javascript:ebene_init_photo_face();">
<i class="fa fa-camera" aria-hidden="true"></i> <?= _("ENREGISTRER LA FACE") ?>
</button>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
<table class="table table-responsive table-condensed" style="white-space: nowrap;">
<tbody>
<tr>
<td rowspan="14">
<div class="photo-container">
<?php if ($beneficiaire['faceRegistered']=="1" ): ?>
<img src="data:image/jpg;base64,<?=$imgData?>"
style="width: 100px; cursor:pointer;" data-bs-toggle="modal" data-bs-target="#pop_photo">
<?php endif; ?>
</div>
<tr>
<td width="10%" > <?= _("Collège") ?> </td>
<td colspan="4"><INPUT class="form-control gras" TYPE="text" id="produit" name="produit" value="<?= $beneficiaire['libelleCollege'] ?>" readonly style="white-space:nowrap; overflow: auto;"></td>
</div>
<div id="container">
<?php if ($carteEditee=="1" ): ?>
<i class="fa fa-check-circle text-success" title="<?= _('Carte éditée')?>"></i>
<?php else: ?>
<i class="fa fa-times-circle text-danger" title="<?= _('Carte non éditée')?>"></i>
<?php endif; ?>
</div>
</td>
</tr>
<tr>
<td colspan="9">
<?php if($vip=="1"): ?>
<INPUT class="form-control vip" TYPE="text" id="vip" name="vip" value="<?= _("ASSURE VIP") ?>">
<?php endif; ?>
</td >
</tr>
<tr>
<td width="10%" > <?= _("Collège") ?> </td>
<td colspan="4"><INPUT class="form-control gras" TYPE="text" id="produit" name="produit" value="<?= $beneficiaire['libelleCollege'] ?>" readonly style="white-space:nowrap; overflow: auto;"></td>
<td colspan="4">
<button class="form-control gras btn btn-info" TYPE="button" id="produit" name="produit" onclick="javascript:consulter_detail_bareme_college(<?=$idBaremePriseEnCharge?>);" title="<?= _("Afficher le barème de prise en charge")?>">
<?= _("Consulter Barème prise en charge") ?>
</button>
</td>
</tr>
<td colspan="4">
<button class="form-control gras btn btn-info" TYPE="button" id="produit" name="produit" onclick="javascript:consulter_detail_bareme_college(<?=$idBaremePriseEnCharge?>);" title="<?= _("Afficher le barème de prise en charge")?>">
<?= _("Consulter Barème prise en charge") ?>
</button>
</td>
</tr>
<tr>
<td width="10%"> <?= _("No Adhérent") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" value="<?= $beneficiaire['numeroAdherent'] ?>" readonly ></td>
<tr>
<td width="10%"> <?= _("No Adhérent") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" value="<?= $beneficiaire['numeroAdherent'] ?>" readonly ></td>
<td width="10%" align="center"> <?= _("Nom") ?> </td>
<td width="20%" ><INPUT class="form-control majuscule gras" TYPE="text" id="nomBeneficiaire" NAME="nomBeneficiaire" value="<?= $beneficiaire['nomBeneficiaire'] ?>" readonly ></td>
<td width="10%" align="center"> <?= _("Prénoms") ?> </td>
<td colspan="3"><INPUT class="form-control majuscule gras" TYPE="text" id="prenomsBeneficiaire" NAME="prenomsBeneficiaire" value="<?= $beneficiaire['prenomsBeneficiaire'] ?>" readonly ></td>
</tr>
<td width="10%" align="center"> <?= _("Nom") ?> </td>
<td width="20%" ><INPUT class="form-control majuscule gras" TYPE="text" id="nomBeneficiaire" NAME="nomBeneficiaire" value="<?= $beneficiaire['nomBeneficiaire'] ?>" readonly ></td>
<tr>
<td width="10%" > <?= _("Entrée") ?> </td>
<td width="22%" ><INPUT class="form-control gras" TYPE="text" id="dateEntree" NAME="dateEntree" value="<?= dateLang($this->nettoyer($beneficiaire['dateEntree'])) ?>" readonly ></td>
<td width="10%" align="center"> <?= _("Prénoms") ?> </td>
<td colspan="3"><INPUT class="form-control majuscule gras" TYPE="text" id="prenomsBeneficiaire" NAME="prenomsBeneficiaire" value="<?= $beneficiaire['prenomsBeneficiaire'] ?>" readonly ></td>
</tr>
<tr>
<td width="10%" > <?= _("Entrée") ?> </td>
<td width="22%" ><INPUT class="form-control gras" TYPE="text" id="dateEntree" NAME="dateEntree" value="<?= dateLang($this->nettoyer($beneficiaire['dateEntree'])) ?>" readonly ></td>
<td align="center"> <?= _("Lien Parenté") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="lienparente" name="lienparente" value="<?= $lienparente ?>" readonly ></td>
<td align="center"> <?= _("Lien Parenté") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="lienparente" name="lienparente" value="<?= $lienparente ?>" readonly ></td>
<td align="center"> <?= _("Naissance") ?> </td>
<td colspan="3"><INPUT class="form-control gras" TYPE="text" id="dateNaissance" NAME="dateNaissance" value="<?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])).' => '.$beneficiaire['age'].' ans' ?>" readonly ></td>
</tr>
<td align="center"> <?= _("Naissance") ?> </td>
<td colspan="3"><INPUT class="form-control gras" TYPE="text" id="dateNaissance" NAME="dateNaissance" value="<?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])).' => '.$beneficiaire['age'].' ans' ?>" readonly ></td>
</tr>
<tr>
<td><?= _("Genre") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="sexe" name="sexe" value="<?= $sexe ?>" readonly ></td>
<tr>
<td><?= _("Genre") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="sexe" name="sexe" value="<?= $sexe ?>" readonly ></td>
<td align="center"> <?= _("Groupe Sanguin") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="codeGroupeSanguin" name="codeGroupeSanguin" value="<?= $beneficiaire['codeGroupeSanguin'] ?>" readonly ></td>
<td align="center"> <?= _("Nature Pièce") ?></td>
<td colspan="3"><INPUT class="form-control gras" TYPE="text" id="naturepiece" name="naturepiece" value="<?= $naturepiece ?>" readonly ></td>
</tr>
<td align="center"> <?= _("Groupe Sanguin") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="codeGroupeSanguin" name="codeGroupeSanguin" value="<?= $beneficiaire['codeGroupeSanguin'] ?>" readonly ></td>
<tr>
<td><?= _("N° Pièce / CMU") ?></td>
<td><INPUT class="form-control gras" TYPE="text" id="numeroPiece" NAME="numeroPiece" value="<?= $beneficiaire['numeroPiece'].' / '.$beneficiaire['numeroCmu'] ?>" readonly ></td>
<td align="center"> <?= _("Nature Pièce") ?></td>
<td colspan="3"><INPUT class="form-control gras" TYPE="text" id="naturepiece" name="naturepiece" value="<?= $naturepiece ?>" readonly ></td>
</tr>
<tr>
<td><?= _("N° Pièce / CMU") ?></td>
<td><INPUT class="form-control gras" TYPE="text" id="numeroPiece" NAME="numeroPiece" value="<?= $beneficiaire['numeroPiece'].' / '.$beneficiaire['numeroCmu'] ?>" readonly ></td>
<td align="center"> <?= _("Tél Portable") ?> </td>
<td><INPUT class="form-control gras" TYPE="tel" id="telephonePortable" NAME="telephonePortable" value="<?= $beneficiaire['telephonePortable'] ?>" readonly ></td>
<td align="center"> <?= _("Etat") ?> </td>
<td align="center"> <?= _("Tél Portable") ?> </td>
<td><INPUT class="form-control gras" TYPE="tel" id="telephonePortable" NAME="telephonePortable" value="<?= $beneficiaire['telephonePortable'] ?>" readonly ></td>
<td align="center"> <?= _("Etat") ?> </td>
<?php if ($dateEffetCouvert=="0") : ?>
<td align="center" style='font-size:10pt; background-color:red;color:white;'> <?= _("Non renouvelé") ?> </td>
<?php else: ?>
<?php if ($estcouvert) : ?>
<?php if ($beneficiaire['codeEtatBeneficiaire']=="V"): ?>
<?php if($prestationPossible=="1" && $carteEditee!="1"): ?>
<td >
<button style='font-size:10pt;' class="form-control gras btn btn-success" TYPE="button" onclick="javascript:imprimer_carte_assure();">
<?= _("Imprimer carte") ?>
</button>
</td>
<?php if ($dateEffetCouvert=="0") : ?>
<td align="center" style='font-size:10pt; background-color:red;color:white;'> <?= _("Non renouvelé") ?> </td>
<?php else: ?>
<?php if ($estcouvert) : ?>
<?php if ($beneficiaire['codeEtatBeneficiaire']=="V"): ?>
<?php if($prestationPossible=="1" && $carteEditee!="1"): ?>
<td >
<button style='font-size:10pt;' class="form-control gras btn btn-success" TYPE="button" onclick="javascript:imprimer_carte_assure();">
<?= _("Imprimer carte") ?>
</button>
</td>
<td align="center" colspan="2" style='font-size:10pt; background-color:#027BE3;color:white;'> <?= $etatbeneficiaire ?> </td>
<?php else : ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:#027BE3;color:white;'> <?= $etatbeneficiaire ?> </td>
<td align="center" colspan="2" style='font-size:10pt; background-color:#027BE3;color:white;'> <?= $etatbeneficiaire ?> </td>
<?php else : ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:#027BE3;color:white;'> <?= $etatbeneficiaire ?> </td>
<?php endif; ?>
<?php else: ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:red;color:white;'> <?= $etatbeneficiaire ?> </td>
<?php endif; ?>
<?php else: ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:red;color:white;'> <?= $etatbeneficiaire ?> </td>
<?php endif; ?>
<?php else: ?>
<?php if ($estsorti): ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:red;color:white;'> <?= _("Retiré") ?> </td>
<?php else: ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:red;color:white;'> <?= _("Expiré") ?> </td>
<?php if ($estsorti): ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:red;color:white;'> <?= _("Retiré") ?> </td>
<?php else: ?>
<td align="center" colspan="3" style='font-size:10pt; background-color:red;color:white;'> <?= _("Expiré") ?> </td>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</tr>
<tr>
<td ><?= _("Tarif Actes") ?></td>
<td >
<select class="form-control gras" name="codeTarifActe" id="codeTarifActe" disabled >
<?= liste_options($tarifActe, $beneficiaire['codeTarifActe'], false) ?>
</select>
</td>
<td align="center"><?= _("Date Souscription") ?></td>
<td >
<INPUT class="form-control gras" TYPE="text" value="<?= datefr($beneficiaire['dateSouscription']); ?>" readonly >
</td>
<td align="center"><?= _("Seuil RD (%)") ?></td>
<td colspan="3">
<INPUT class="form-control gras" TYPE="text" value="<?= $beneficiaire['seuilRdBeneficiaire']; ?>" readonly >
</td>
</tr>
<tr>
<td> <?= _("Type Remboursement") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" value="<?= $this->nettoyer($beneficiaire['codeTypeRemboursement']) ?>" readonly ></td>
<td align="center"> <?= _("Sortie") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="dateSortie" NAME="dateSortie" value="<?= dateLang($this->nettoyer($beneficiaire['dateSortie'])) ?>" readonly ></td>
<td align="center"> <?= _("Motif Sortie") ?> </td>
<td colspan="3"><INPUT class="form-control gras" TYPE="text" id="motifSortie" NAME="motifSortie" value="<?= $motifsortie ?>" readonly ></td>
</tr>
<tr style='background-color:white'>
<td colspan="8" height="8"></td>
</tr>
<?php
$plafondGlobalFamille = $this->nettoyer($police['plafond']);
$consommationGlobaleFamille = $this->nettoyer($police['consommation']);
$niveauGlobalConsoFamille = ($consommationGlobaleFamille/$plafondGlobalFamille)*100;
$niveauGlobalConsoFamille = number_format($niveauGlobalConsoFamille, 2, ',', ' ');
$plafondGlobalBeneficiaire = $this->nettoyer($college['plafond']);
$consommationGlobaleBenef = $this->nettoyer($college['consommation']);
$niveauGlobalConsoBenef = ($consommationGlobaleBenef/$plafondGlobalBeneficiaire)*100;
$niveauGlobalConsoBenef = number_format($niveauGlobalConsoBenef, 2, ',', ' ');
?>
<tr>
<td> <?= _("Plafond Famille") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:limiteadherent();" title="Cliquez pour modifier le plafond famille...">
<?= format_N($this->nettoyer($police['plafond'])) ?>
</button>
</td>
<td align="center"> <?= _("Conso. Famille") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:consosadherent();" title="Cliquez pour voir le détail des consommations de l'adhérent...">
<?= format_N($this->nettoyer($police['consommation'])) ?>
</button>
</td>
<td align="center"> <?= _("Solde Famille") ?> </td>
<td>
<INPUT style='text-align:center; color:red !important; font-weight:bold; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($police['soldeConsommation'])) ?>" readonly >
</td>
<td width="2%"></td>
<td width="8%">
<INPUT style="font-size:10pt; text-align:center; font-weight:bold; color:red;" class="form-control" TYPE="text" value="<?= $niveauGlobalConsoFamille." %"; ?>" readonly >
</td>
</tr>
<?php if($police['soldeConsommation']<="0") :?>
<tr >
<td colspan="8">
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:white; background-color:red; font-size:14pt; font-weight:bold;">
<?= _("Le plafond contractuel de l'adhérent est atteint!") ?>
</marquee>
</td>
</tr>
<?php endif; ?>
<tr>
<td> <?= _("Plafond Bénéficiaire") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:limitebeneficiaire();" title="Cliquez pour modifier le plafond bénéficiaire...">
<?= format_N($this->nettoyer($college['plafond'])) ?>
</button>
</td>
</tr>
<tr>
<td ><?= _("Tarif Actes") ?></td>
<td >
<select class="form-control gras" name="codeTarifActe" id="codeTarifActe" disabled >
<?= liste_options($tarifActe, $beneficiaire['codeTarifActe'], false) ?>
</select>
</td>
<td align="center"><?= _("Date Souscription") ?></td>
<td >
<INPUT class="form-control gras" TYPE="text" value="<?= datefr($beneficiaire['dateSouscription']); ?>" readonly >
</td>
<td align="center"><?= _("Seuil RD (%)") ?></td>
<td colspan="3">
<INPUT class="form-control gras" TYPE="text" value="<?= $beneficiaire['seuilRdBeneficiaire']; ?>" readonly >
</td>
</tr>
<tr>
<td> <?= _("Type Remboursement") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" value="<?= $this->nettoyer($beneficiaire['codeTypeRemboursement']) ?>" readonly ></td>
<td align="center"> <?= _("Conso. Bénéficiaire") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:consosbeneficiaire();" title="Cliquez pour afficher le détail des consommations du bénéficiaire...">
<?= format_N($this->nettoyer($college['consommation'])) ?>
</button>
</td>
<td align="center"> <?= _("Sortie") ?> </td>
<td><INPUT class="form-control gras" TYPE="text" id="dateSortie" NAME="dateSortie" value="<?= dateLang($this->nettoyer($beneficiaire['dateSortie'])) ?>" readonly ></td>
<td align="center"> <?= _("Motif Sortie") ?> </td>
<td colspan="3"><INPUT class="form-control gras" TYPE="text" id="motifSortie" NAME="motifSortie" value="<?= $motifsortie ?>" readonly ></td>
</tr>
<tr style='background-color:white'>
<td colspan="8" height="8"></td>
</tr>
<?php
$plafondGlobalFamille = $this->nettoyer($police['plafond']);
$consommationGlobaleFamille = $this->nettoyer($police['consommation']);
$niveauGlobalConsoFamille = ($consommationGlobaleFamille/$plafondGlobalFamille)*100;
$niveauGlobalConsoFamille = number_format($niveauGlobalConsoFamille, 2, ',', ' ');
<td align="center"> <?= _("Solde Bénéficiaire") ?> </td>
<td> <INPUT style='text-align:center; color:red; font-weight: bold; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($college['soldeConsommation'])) ?>" readonly ></td>
<td width="2%"></td>
<td width="8%">
<INPUT style="font-size:10pt; text-align:center; font-weight:bold; color:red;" class="form-control" TYPE="text" value="<?= $niveauGlobalConsoBenef." %"; ?>" readonly >
</td>
</tr>
$plafondGlobalBeneficiaire = $this->nettoyer($college['plafond']);
$consommationGlobaleBenef = $this->nettoyer($college['consommation']);
$niveauGlobalConsoBenef = ($consommationGlobaleBenef/$plafondGlobalBeneficiaire)*100;
$niveauGlobalConsoBenef = number_format($niveauGlobalConsoBenef, 2, ',', ' ');
<?php if($college['soldeConsommation']<="0") :?>
<tr >
<td colspan="8">
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:white; background-color:red; font-size:14pt; font-weight:bold;">
<?= _("Le plafond contractuel du bénéficiaire est atteint!") ?>
</marquee>
</td>
</tr>
<?php endif; ?>
/*
if($niveauGlobalConsoFamille>='50' && $niveauGlobalConsoFamille<'80'){
$styleFamille="background-color: yellow; font-size:10pt;";
}elseif($niveauGlobalConsoFamille>='80' && $niveauGlobalConsoFamille <'100'){
$styleFamille="background-color: orange; font-size:10pt;";
}elseif($niveauGlobalConsoFamille >='100'){
$styleFamille="background-color: red; color:white; font-size:10pt;";
}
*/
?>
<tr>
<td> <?= _("Plafond Famille") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:limiteadherent();" title="Cliquez pour modifier le plafond famille...">
<?= format_N($this->nettoyer($police['plafond'])) ?>
</button>
</td>
<td align="center"> <?= _("Conso. Famille") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:consosadherent();" title="Cliquez pour voir le détail des consommations de l'adhérent...">
<?= format_N($this->nettoyer($police['consommation'])) ?>
</button>
</td>
<td align="center"> <?= _("Solde Famille") ?> </td>
<td>
<INPUT style='text-align:center; color:red !important; font-weight:bold; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($police['soldeConsommation'])) ?>" readonly >
</td>
<td width="2%"></td>
<td width="8%">
<INPUT style="font-size:10pt; text-align:center; font-weight:bold; color:red;" class="form-control" TYPE="text" value="<?= $niveauGlobalConsoFamille." %"; ?>" readonly >
</td>
</tr>
<?php if($police['soldeConsommation']<="0") :?>
<tr >
<td colspan="8">
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:white; background-color:red; font-size:14pt; font-weight:bold;">
<?= _("Le plafond contractuel de l'adhérent est atteint!") ?>
</marquee>
</td>
</tr>
<?php endif; ?>
<tr>
<td> <?= _("Plafond Bénéficiaire") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:limitebeneficiaire();" title="Cliquez pour modifier le plafond bénéficiaire...">
<?= format_N($this->nettoyer($college['plafond'])) ?>
</button>
</td>
<td align="center"> <?= _("Conso. Bénéficiaire") ?> </td>
<td>
<button class="form-control gras btn btn-primary" TYPE="button" onclick="javascript:consosbeneficiaire();" title="Cliquez pour afficher le détail des consommations du bénéficiaire...">
<?= format_N($this->nettoyer($college['consommation'])) ?>
</button>
</td>
<td align="center"> <?= _("Solde Bénéficiaire") ?> </td>
<td> <INPUT style='text-align:center; color:red; font-weight: bold; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($college['soldeConsommation'])) ?>" readonly ></td>
<td width="2%"></td>
<td width="8%">
<INPUT style="font-size:10pt; text-align:center; font-weight:bold; color:red;" class="form-control" TYPE="text" value="<?= $niveauGlobalConsoBenef." %"; ?>" readonly >
</td>
</tr>
<?php if($college['soldeConsommation']<="0") :?>
<tr >
<td colspan="8">
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:white; background-color:red; font-size:14pt; font-weight:bold;">
<?= _("Le plafond contractuel du bénéficiaire est atteint!") ?>
</marquee>
</td>
</tr>
<?php endif; ?>
<tr style='background-color:white'>
<td colspan="8" height="8"></td>
</tr>
<tr>
<td></td>
<td align="center">
<button class="form-control gras btn btn-info" TYPE="button" onclick="javascript:affiche_actes_plafonnes_beneficiaire();">
<?= _("Actes plafonnés") ?>
</button>
</td>
<td></td>
<td >
<button class="form-control gras btn btn-success" TYPE="button" onclick="javascript:affiche_historique_prestations_beneficiaire();">
<?= _("Historique prestations") ?>
</button>
</td>
<td></td>
<td align="center" colspan="3">
<button class="form-control gras btn btn-info" TYPE="button" onclick="javascript:affiche_reseau_prestatairessoins_beneficiaire();">
<?= _("Prestataires de soins") ?>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<tr style='background-color:white'>
<td colspan="8" height="8"></td>
</tr>
<tr>
<td></td>
<td align="center">
<button class="form-control gras btn btn-info" TYPE="button" onclick="javascript:affiche_actes_plafonnes_beneficiaire();">
<?= _("Actes plafonnés") ?>
</button>
</td>
<td></td>
<td >
<button class="form-control gras btn btn-success" TYPE="button" onclick="javascript:affiche_historique_prestations_beneficiaire();">
<?= _("Historique prestations") ?>
</button>
</td>
<td></td>
<td align="center" colspan="3">
<button class="form-control gras btn btn-info" TYPE="button" onclick="javascript:affiche_reseau_prestatairessoins_beneficiaire();">
<?= _("Prestataires de soins") ?>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</fieldset>
<?php if ($estsorti): ?>