a
This commit is contained in:
parent
72acc13be3
commit
bf33c45369
|
|
@ -1,3 +1,9 @@
|
|||
<?php
|
||||
$plafondGlobalFamille = $limite_adherent['plafond'];
|
||||
$consommationGlobaleFamille = $limite_adherent['consommation'];
|
||||
$niveauGlobalConsoFamille = ($consommationGlobaleFamille*100)/$plafondGlobalFamille;
|
||||
?>
|
||||
|
||||
<style>
|
||||
/* === Correctifs affichage textes et tables === */
|
||||
body, h1, h2, h3, h4, h5, h6, p, span, a, label, td, th, strong, em, button, input {
|
||||
|
|
@ -242,6 +248,14 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress mb-3" >
|
||||
<div class="progress-bar <?= $niveauGlobalConsoFamille >= 80 ? 'bg-danger' : ($niveauGlobalConsoFamille >= 50 ? 'bg-warning' : 'bg-success') ?>"
|
||||
style="width: <?= min($niveauGlobalConsoFamille, 100) ?>%">
|
||||
<?= number_format($niveauGlobalConsoFamille, 1) ?>%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user