This commit is contained in:
KANE LAZENI 2025-12-10 11:10:22 +00:00
parent 0e98a003e9
commit d8b269ddc5
2 changed files with 20 additions and 343 deletions

View File

@ -121,11 +121,25 @@ class ControleurAccueilassure extends Controleur {
//var_dump($dataConsoParGaranties); die();
$this->genererVue(array(
'adherent' => $adherent,'beneficiaires' => $beneficiaires,'garantieadherents' => $garantieadherents,
'limite_adherent' => $limite_adherent,'prestation' => $prestation,'garanties' => $garanties,
'numeroBeneficiaire' => $numeroBeneficiaire, 'actes' => $actes, 'labels_mois' => $labels_mois,
'data_consos' => $data_consos, 'labels_liens' => $labels_liens, 'data_liens' => $data_liens,
'nbreLienParente' => $nbreLienParente, 'dataConsoParGaranties' => $dataConsoParGaranties));
$this->genererVue
(
array
(
'adherent' => $adherent,
'beneficiaires' => $beneficiaires,
'garantieadherents' => $garantieadherents,
'limite_adherent' => $limite_adherent,
'prestation' => $prestation,
'garanties' => $garanties,
'numeroBeneficiaire' => $numeroBeneficiaire,
// 'actes' => $actes,
'labels_mois' => $labels_mois,
'data_consos' => $data_consos,
'labels_liens' => $labels_liens,
'data_liens' => $data_liens,
'nbreLienParente' => $nbreLienParente,
'dataConsoParGaranties' => $dataConsoParGaranties
)
);
}
}

View File

@ -474,343 +474,6 @@
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
<!-- Section des actes médicaux plafonnés -->
<section class="accordion-section">
<h2 class="accordion-header">
<i class="fas fa-tachometer-alt text-danger"></i>
<span class="accordion-title"><?= _("Barème des actes plafonnés")?></span>
<i class="accordion-icon bi bi-chevron-down"></i>
</h2>
<div class="accordion-content">
<div class="tab-container">
<?php if (empty($actes)): ?>
<div class="alert alert-info text-center">
<small>
<i class="bi bi-info-circle me-2"></i>
<?= _("Aucun acte plafonné pour la famille!") ?>
</small>
</div>
<?php else: ?>
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
<div class="d-none d-md-block">
<div class="legend-container">
<table class="legend-table">
<tbody>
<tr>
<td class="text-cell"><?= _('Légende').':'?></td>
<td class="text-cell"><?= _('Consommation').' >= 50%'?></td>
<td class="spacer-cell"></td>
<td class="color-cell color-1"></td>
<td class="spacer-cell"></td>
<td class="text-cell"><?= _('Consommation').' >= 80%'?></td>
<td class="spacer-cell"></td>
<td class="color-cell color-2"></td>
<td class="spacer-cell"></td>
<td class="text-cell"><?= _('Consommation').' = 100% / '._('Transaction').' = 100%'?></td>
<td class="spacer-cell"></td>
<td class="color-cell color-3"></td>
</tr>
</tbody>
</table>
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt; white-space: nowrap;" >
<thead class="table-dark">
<tr>
<th rowspan="2" style='text-align:center' > <?= _("Actes "); ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Taux") ?> </th>
<th rowspan="2" style='border-right:1px solid #ddd !important; text-align:center' width="8%"> <?= _("Autorisé à"); ?> </th>
<th colspan="8" style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Pour toute la famille") ?> </th>
<th colspan="8" style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Pour chaque personne") ?> </th>
</tr>
<tr>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Plafond") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Période") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Dépenses") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Solde") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Transaction") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Période") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Prestation") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Solde") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Plafond") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Période") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Dépenses") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Solde") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Transaction") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Période") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Prestation") ?> </th>
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Solde") ?> </th>
</tr>
</thead>
<tbody style="overflow:auto;">
<?php foreach ($actes as $v):
$libelle = $this->nettoyer($v['libelle']);
$garantie = $this->nettoyer($v['garantie']);
$codeGarantie = $this->nettoyer($v['codeGarantie']);
$codePeriodicite = $this->nettoyer($v['codePeriodicite']);
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamille']);
$periodiciteFamille = $this->nettoyer($v['periodiciteFamille']);
$periodicitePlafond = $this->nettoyer($v['periodicitePlafond']);
$periodicite = $this->nettoyer($v['periodicite']);
$codeLienParente = $this->nettoyer($v['codeLienParente']);
$lienParente = $this->nettoyer($v['lienparente']);
if (est_anglophone())
{
$libelle = $this->nettoyer($v['libelleEng']);
$garantie = $this->nettoyer($v['garantieEng']);
$lienParente = $this->nettoyer($v['lienparenteEng']);
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamilleEng']);
$periodiciteFamille = $this->nettoyer($v['periodiciteFamilleEng']);
$periodicitePlafond = $this->nettoyer($v['periodicitePlafondEng']);
$periodicite = $this->nettoyer($v['periodiciteEng']);
}
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
$pourcentConso = $this->nettoyer($v['pourcentConso']);
$transactionFamille = $this->nettoyer($v['transactionFamille']);
$transactionBeneficiaire = $this->nettoyer($v['transactionBeneficiaire']);
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
$codeActe = $this->nettoyer($v['codeActe']);
$exercieReference = $this->nettoyer($v['exercieReference']);
$taux = $this->nettoyer($v['tauxPlafond']);
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
$plafond = format_N($this->nettoyer($v['forfaitPlafond']));
?>
<?php if($pourcentConso>='50' && $pourcentConso<'80'): ?>
<tr class="color-1" valign="top">
<?php elseif($pourcentConso>='80' && $pourcentConso <'100'): ?>
<tr class="color-2" valign="top">
<?php elseif($pourcentConso >='100' || $transactionBeneficiaire=="1"): ?>
<tr class="color-3" valign="top">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td ><?= $libelle ?></td>
<td align='center'><?= $taux ?></td>
<td align='center'><?= $lienParente ?></td>
<td align='center'><?= $plafondFamille ?></td>
<td align='center'><?= $periodicitePlafondFamille ?></td>
<td align='center'><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($v['soldeActeFamille'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($v['nbreTransactionFamille'])) ?></td>
<td align='center'><?= $periodiciteFamille ?></td>
<td align='center'><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></td>
<td align='center'><?= $plafond ?></td>
<td align='center'><?= $periodicitePlafond ?></td>
<td align='center'><?= format_N($this->nettoyer($v['consommation'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($v['soldeActe'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($v['nbreTransaction'])) ?></td>
<td align='center'><?= $periodiciteFamille ?></td>
<td align='center'><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($v['soldeTransaction'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<!-- Affichage mobile (cartes) -->
<div class="d-md-none">
<?php foreach ($actes as $v):
$libelle = substr($this->nettoyer($v['libelle']),0,25);
$garantie = $this->nettoyer($v['garantie']);
$codeGarantie = $this->nettoyer($v['codeGarantie']);
$codePeriodicite = $this->nettoyer($v['codePeriodicite']);
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamille']);
$periodiciteFamille = $this->nettoyer($v['periodiciteFamille']);
$periodicitePlafond = $this->nettoyer($v['periodicitePlafond']);
$periodicite = $this->nettoyer($v['periodicite']);
$codeLienParente = $this->nettoyer($v['codeLienParente']);
$lienParente = $this->nettoyer($v['lienparente']);
if (est_anglophone())
{
$libelle = substr($this->nettoyer($v['libelleEng']),0,25);
$garantie = $this->nettoyer($v['garantieEng']);
$lienParente = $this->nettoyer($v['lienparenteEng']);
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamilleEng']);
$periodiciteFamille = $this->nettoyer($v['periodiciteFamilleEng']);
$periodicitePlafond = $this->nettoyer($v['periodicitePlafondEng']);
$periodicite = $this->nettoyer($v['periodiciteEng']);
}
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
$pourcentConso = $this->nettoyer($v['pourcentConso']);
$transactionFamille = $this->nettoyer($v['transactionFamille']);
$transactionBeneficiaire = $this->nettoyer($v['transactionBeneficiaire']);
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
$codeActe = $this->nettoyer($v['codeActe']);
$exercieReference = $this->nettoyer($v['exercieReference']);
$taux = $this->nettoyer($v['tauxPlafond']);
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
$plafond = format_N($this->nettoyer($v['forfaitPlafond']));
?>
<div class="container mt-2">
<div class="card mb-1 shadow-sm">
<div class="card-header bg-light py-2">
<div class="align-same-line">
<div class="left-content">
<?php if($pourcentConsoFamille>='50' && $pourcentConsoFamille<'80'): ?>
<span class="badge me-2 color-1"><?= $libelle ?></span>
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
<span class="badge me-2 color-2"><?= $libelle ?></span>
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
<a title="<?= _("Plafond ou nombre de transaction atteint pour cet acte.")?>" href="javascript:alert_limite('A');">
<span class="badge me-2 color-3"><?= $libelle ?></span>
</a>
<?php else: ?>
<span class="badge bg-primary me-2" ><?= $libelle ?></span>
<?php endif; ?>
<strong style="font-size:1.8rem !important;"><?= $taux ?></strong>
</div>
<small class="text-muted exercice"><?= $lienParente ?></small>
</div>
</div>
</div>
<h3 class="text-center mb-1 bg-dark text-light"><?= _("Pour toute la famille")?></h3>
<div class="row mb-2">
<div class="col-6">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Plafond") ?></span>
<span class="fw-bold"><?= $plafondFamille ?></span>
</div>
</div>
<div class="col-6">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Période") ?></span>
<span class="fw-bold text-success"><?= $periodicitePlafondFamille ?></span>
</div>
</div>
<div class="col-6">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Dépenses") ?></span>
<span class="fw-bold"><?= format_N($this->nettoyer($v['consommationFamille'])) ?></span>
</div>
</div>
<div class="col-6">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Solde") ?></span>
<span class="fw-bold text-danger"><?= format_N($this->nettoyer($v['soldeActeFamille'])) ?></span>
</div>
</div>
</div>
<div class="row mb-2">
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Transaction") ?></span>
<span><?= format_N($this->nettoyer($v['nbreTransactionFamille'])) ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Période") ?></span>
<span><?= $periodiciteFamille ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Prestation") ?></span>
<span><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Solde") ?></span>
<span><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></span>
</div>
</div>
</div>
<h3 class="text-center mb-1 bg-dark text-light"><?= _("Pour chaque personne")?></h3>
<div class="row mb-2">
<div class="col-6 mb-1">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Plafond") ?></span>
<span class="fw-bold"><?= $plafond ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Période") ?></span>
<span class="fw-bold text-success"><?= $periodicitePlafond ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Dépenses") ?></span>
<span class="fw-bold"><?= format_N($this->nettoyer($v['consommation'])) ?></span>
</div>
</div>
<div class="col-6">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small"><?= _("Solde") ?></span>
<span class="fw-bold text-danger"><?= format_N($this->nettoyer($v['soldeActe'])) ?></span>
</div>
</div>
</div>
<div class="row mb-2">
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Transaction") ?></span>
<span><?= $this->nettoyer($v['nbreTransaction']) ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Période") ?></span>
<span><?= $v['periodicite'] ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Prestation") ?></span>
<span><?= $this->nettoyer($v['comptePrestation']) ?></span>
</div>
</div>
<div class="col-6 mb-1">
<div class="d-flex justify-content-between">
<span class="text-muted small"><?= _("Solde") ?></span>
<span><?= $this->nettoyer($v['soldeTransaction']) ?></span>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
</div>
</section>
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
<!-- Section historique des prestations -->
<section class="accordion-section">
<h2 class="accordion-header">