From 9d8d9c287f13843b6dfd1ca3d5fb6bae548fdba5 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Fri, 26 Dec 2025 18:36:37 +0000 Subject: [PATCH] =?UTF-8?q?FichePolice=20am=C3=A9lior=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Vue/Fichepolice/index.php | 339 ++++++++++++++++---------------------- 1 file changed, 141 insertions(+), 198 deletions(-) diff --git a/Vue/Fichepolice/index.php b/Vue/Fichepolice/index.php index 53477f0..2632f2f 100644 --- a/Vue/Fichepolice/index.php +++ b/Vue/Fichepolice/index.php @@ -1,207 +1,150 @@ titre = "Fiche police"; - $gcactive = ($this->nettoyer($police['gestionConfiee'])=="1"); - $remplacementAdherent = ($this->nettoyer($police['remplacementAdherent'])=="1"); - - if (est_anglophone()) - { - $typeContrat = $police['typeContratEng']; - $typeAvenant = $police['typeAvenantEng']; - $etatPolice = $police['etatPoliceEng']; - } - else - { - $typeContrat = $police['typeContrat']; - $typeAvenant = $police['typeAvenant']; - $etatPolice = $police['etatPolice']; - } - - $codeEtatPolice = $this->nettoyer($police['codeEtatPolice']); - - if($codeEtatPolice == "EC"){ - $styleEtat = "background-color: green !important; color: white !important;"; - }elseif($codeEtatPolice == "RE" || $codeEtatPolice == "AN"){ - $styleEtat = "background-color: red !important; color: white !important;"; - }else{ - $styleEtat = "background-color: orange !important; color: white !important;"; - } - + $this->titre = "Fiche police"; + $gcactive = ($this->nettoyer($police['gestionConfiee']) == "1"); + $remplacementAdherent = ($this->nettoyer($police['remplacementAdherent']) == "1"); + + // Gestion de la langue + $isEng = est_anglophone(); + $typeContrat = $isEng ? $police['typeContratEng'] : $police['typeContrat']; + $typeAvenant = $isEng ? $police['typeAvenantEng'] : $police['typeAvenant']; + $etatPolice = $isEng ? $police['etatPoliceEng'] : $police['etatPolice']; + + $codeEtatPolice = $this->nettoyer($police['codeEtatPolice']); + + // Détermination du badge de statut Bootstrap + if($codeEtatPolice == "EC"){ + $badgeClass = "bg-success"; // En Cours + } elseif(in_array($codeEtatPolice, ["RE", "AN"])){ + $badgeClass = "bg-danger"; // Résilié / Annulé + } else { + $badgeClass = "bg-warning text-dark"; // Autre (Instance, etc.) + } ?> -
-
- nettoyer($police['numeroPolice']) . " => ID Police : " . $this->nettoyer($police['idPolice']) . " => " . _("Primes non facturées") . " : " . format_N($nb_non_facturees) ?> +
+
+
+
+ + : nettoyer($police['numeroPolice']) ?> + (ID: nettoyer($police['idPolice']) ?>) +
+ + + +
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
- +
+
+ + +
+
+ + +
+
+ +
+
- - +
- - - +
+
+
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
-
- +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + "> +
+
+ + +
+
+ + nettoyer($police['delaiCarencePolice']) ?> Jours +
+
+
+ + + + - - - - - - - +
- - - - - - - -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Type
- - " readonly style='text-align:center; background-color:gray !important;color:white;'> - - " readonly style='text-align:center; background-color:gray !important;color:white;'> - -
(%)
- - " readonly style='text-align:center; background-color:gray !important;color:white;'> - - " readonly style='text-align:center; background-color:gray !important;color:white;'> - -
- -
- - " readonly>" readonly> " readonly>" readonly>
-
- -
- -
-
+ \ No newline at end of file