a
This commit is contained in:
parent
0c0e847b20
commit
08529741cb
|
|
@ -1,8 +1,18 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
$plafondGlobalFamille = $limite_adherent['plafond'];
|
$plafondGlobalFamille = $limite_adherent['plafond'];
|
||||||
$consommationGlobaleFamille = $limite_adherent['consommation'];
|
$consommationGlobaleFamille = $limite_adherent['consommation'];
|
||||||
$niveauGlobalConsoFamille = ($consommationGlobaleFamille*100)/$plafondGlobalFamille;
|
$niveauGlobalConsoFamille = ($consommationGlobaleFamille*100)/$plafondGlobalFamille;
|
||||||
|
*/
|
||||||
|
$plafondGlobalFamilleOut = $limite_adherent['plafondOut'];
|
||||||
|
$consommationGlobaleFamilleOut = $limite_adherent['consommationOut'];
|
||||||
|
$niveauGlobalConsoFamilleOut = ($consommationGlobaleFamilleOut*100)/$plafondGlobalFamilleOut;
|
||||||
|
|
||||||
|
$plafondGlobalFamilleInp = $limite_adherent['plafondInp'];
|
||||||
|
$consommationGlobaleFamilleInp = $limite_adherent['consommationInp'];
|
||||||
|
$niveauGlobalConsoFamilleInp = ($consommationGlobaleFamilleInp*100)/$plafondGlobalFamilleInp;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
@ -132,7 +142,8 @@
|
||||||
<?php
|
<?php
|
||||||
$this->titre = "Intersanté - Accueil";
|
$this->titre = "Intersanté - Accueil";
|
||||||
|
|
||||||
$pourcentage = round((100*$limite_adherent['consommation'])/$limite_adherent['plafond']);
|
$pourcentageOut = round((100*$limite_adherent['consommationOut'])/$limite_adherent['plafondOut']);
|
||||||
|
$pourcentageInp = round((100*$limite_adherent['consommationInp'])/$limite_adherent['plafondInp']);
|
||||||
|
|
||||||
// var_dump($garantieadherents);
|
// var_dump($garantieadherents);
|
||||||
?>
|
?>
|
||||||
|
|
@ -196,7 +207,7 @@
|
||||||
<?= _("Plafond") ?>
|
<?= _("Plafond") ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="h4 mb-0" style="font-weight:bold">
|
<div class="h4 mb-0" style="font-weight:bold">
|
||||||
<?= format_N($limite_adherent['plafond'])." ".substr($_SESSION['devise_C'],0,1) ?>
|
<?= format_N($limite_adherent['plafondOut'])." ".substr($_SESSION['devise_C'],0,1) ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
|
|
@ -217,12 +228,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
<div class="h4 mb-0 mr-2 me-2" style="font-weight:bold">
|
<div class="h4 mb-0 mr-2 me-2" style="font-weight:bold">
|
||||||
<?= format_N($limite_adherent['consommation'])." ".substr($_SESSION['devise_C'],0,1) ?>
|
<?= format_N($limite_adherent['consommationOut'])." ".substr($_SESSION['devise_C'],0,1) ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress flex-grow-1" style="height: 6px;">
|
<div class="progress flex-grow-1" style="height: 6px;">
|
||||||
<div class="progress-bar bg-info border border-info" role="progressbar"
|
<div class="progress-bar bg-info border border-info" role="progressbar"
|
||||||
style="width: <?= $pourcentage; ?>%"
|
style="width: <?= $pourcentage; ?>%"
|
||||||
aria-valuenow="<?= $pourcentage; ?>"
|
aria-valuenow="<?= $pourcentageOut; ?>"
|
||||||
aria-valuemin="0"
|
aria-valuemin="0"
|
||||||
aria-valuemax="100">
|
aria-valuemax="100">
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -243,7 +254,7 @@
|
||||||
<?= _("Solde") ?>
|
<?= _("Solde") ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="h4 mb-0" style="font-weight:bold">
|
<div class="h4 mb-0" style="font-weight:bold">
|
||||||
<?= format_N($limite_adherent['soldeConsommation'])." ".substr($_SESSION['devise_C'],0,1) ?>
|
<?= format_N($limite_adherent['soldeConsommationOut'])." ".substr($_SESSION['devise_C'],0,1) ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
|
|
@ -258,9 +269,9 @@
|
||||||
|
|
||||||
<!-- progress-bar -->
|
<!-- progress-bar -->
|
||||||
<div class="progress mb-3" >
|
<div class="progress mb-3" >
|
||||||
<div class="progress-bar <?= $niveauGlobalConsoFamille >= 80 ? 'bg-danger' : ($niveauGlobalConsoFamille >= 50 ? 'bg-warning' : 'bg-success') ?>"
|
<div class="progress-bar <?= $niveauGlobalConsoFamilleOut >= 80 ? 'bg-danger' : ($niveauGlobalConsoFamilleOut >= 50 ? 'bg-warning' : 'bg-success') ?>"
|
||||||
style="width: <?= min($niveauGlobalConsoFamille, 100) ?>%">
|
style="width: <?= min($niveauGlobalConsoFamilleOut, 100) ?>%">
|
||||||
<?= number_format($niveauGlobalConsoFamille, 1) ?>%
|
<?= number_format($niveauGlobalConsoFamilleOut, 1) ?>%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user