From 453f58714e3bdc2712990c12d7adbc2c95e186f9 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 31 Mar 2026 17:45:13 +0000 Subject: [PATCH] sed --- Vue/Fichebeneficiaire/index.php | 284 ++++++++++++-------------------- 1 file changed, 105 insertions(+), 179 deletions(-) diff --git a/Vue/Fichebeneficiaire/index.php b/Vue/Fichebeneficiaire/index.php index 9e1806f..6acf743 100755 --- a/Vue/Fichebeneficiaire/index.php +++ b/Vue/Fichebeneficiaire/index.php @@ -332,198 +332,124 @@ - -
- -
-
-
-
-
- - -
-
-
- -
-
-
- - + +
+
+
+
+
+
+ +
+
-
- nettoyer($police['plafondOut']); - $consommationGlobaleFamilleOut = $this->nettoyer($police['consommationOut']); - $niveauGlobalConsoFamilleOut = ($consommationGlobaleFamilleOut*100)/$plafondGlobalFamilleOut; - $soldeConsommationOut = $this->nettoyer($police['soldeConsommationOut']); +
+ [ + 'label' => _("Soins Ambulatoires (OUTPATIENT)"), + 'conso' => $this->nettoyer($police['consommationOut']), + 'plafond' => $this->nettoyer($police['plafondOut']), + 'solde' => $this->nettoyer($police['soldeConsommationOut']), + 'percent' => ($police['plafondOut'] > 0) ? ($police['consommationOut'] * 100) / $police['plafondOut'] : 0 + ], + 'INP' => [ + 'label' => _("Hospitalisation (INPATIENT)"), + 'conso' => $this->nettoyer($police['consommationInp']), + 'plafond' => $this->nettoyer($police['plafondInp']), + 'solde' => $this->nettoyer($police['soldeConsommationInp']), + 'percent' => ($police['plafondInp'] > 0) ? ($police['consommationInp'] * 100) / $police['plafondInp'] : 0 + ] + ]; - $consommationGlobaleBenefOut = $this->nettoyer($college['consommation_individuOut']); - $niveauGlobalConsoBenefOut = ($consommationGlobaleBenefOut*100)/$plafondGlobalFamilleOut; + foreach ($types as $key => $data): + $colorClass = ($data['percent'] >= 90) ? 'danger' : (($data['percent'] >= 70) ? 'warning' : 'success'); + ?> +
+
+
+ % +
+ +
+
+
- $plafondGlobalFamilleInp = $this->nettoyer($police['plafondInp']); - $consommationGlobaleFamilleInp = $this->nettoyer($police['consommationInp']); - $niveauGlobalConsoFamilleInp = ($consommationGlobaleFamilleInp*100)/$plafondGlobalFamilleInp; - $soldeConsommationInp = $this->nettoyer($police['soldeConsommationInp']); +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
- $consommationGlobaleBenefInp = $this->nettoyer($college['consommation_individuInp']); - $niveauGlobalConsoBenefInp = ($consommationGlobaleBenefInp*100)/$plafondGlobalFamilleInp; - - ?> - - -
-
-
- -

-
-
-
-
- -

-
-
- -
-
- -

-
-
-
- -
-
- % -
-
- - -
- - + +
+ +
+
- + +
+
+
- -
-
-
- -

-
-
-
-
- -

-
-
- -
-
- -

-
-
-
- -
-
- % -
-
- - -
- - +
+
+
+
+ +
+
+
+ 'OUTPATIENT', 'val' => $consommationGlobaleBenefOut, 'percent' => $niveauGlobalConsoBenefOut], + ['label' => 'INPATIENT', 'val' => $consommationGlobaleBenefInp, 'percent' => $niveauGlobalConsoBenefInp] + ]; + foreach($indiv as $item): + ?> +
+
+ +
- +
+
+
+
+ : % +
+
+ -
-
-
- - -
-
- -
-
-
- - -
+
+ +
- -
-
-
- - -
-
-
- -
- -
-
-
- -

-
-
-
- -
-
- % -
-
- - -
-
-
- -

-
-
-
- -
-
- % -
-
- -
-
-
-
+
+
+