diff --git a/Vue/Ajaxlisteadherent/index.php b/Vue/Ajaxlisteadherent/index.php index 7420f7e..6ed6182 100644 --- a/Vue/Ajaxlisteadherent/index.php +++ b/Vue/Ajaxlisteadherent/index.php @@ -1,145 +1,131 @@ -nettoyer($_SESSION['numeroPolice_C']); +nettoyer($_SESSION['numeroPolice_C']); - // On extrait la liste unique des collèges pour le filtre - $colleges = array_unique(array_column($adherents, 'libelleCollege')); - sort($colleges); -?> + // On extrait la liste unique des collèges pour le filtre + $colleges = array_unique(array_column($adherents, 'libelleCollege')); + sort($colleges); +?> - + /* Vos styles existants */ + .cursor-pointer { cursor: pointer; transition: all 0.2s; } + .cursor-pointer:hover { background-color: #f8f9fa !important; } + .status-actif { border-left: 4px solid #0dcaf0 !important; } + .status-archive { border-left: 4px solid #ffc107 !important; background-color: #fffdf5; } + .x-small { font-size: 0.72rem; } + .btn-white { background: #fff; } + -
+
-

+

-
-

- : nettoyer($_SESSION['numeroPolice_C']) ?> -

-
+
+

+ : nettoyer($_SESSION['numeroPolice_C']) ?> +

+
-
-
-
- - -
-
-
- -
-
- -
-
- -
-
+
+
+
+ + +
+
+
+ +
+
+ +
+
-
- - - - - - - - - - - - nettoyer($adherent['numeroAdherent']); - $libelleColl = $this->nettoyer($adherent['libelleCollege']); - $estsupprimable = ($this->nettoyer($adherent['primeArchive']) == "0"); - $statusClass = $estsupprimable ? 'status-actif' : 'status-archive'; - ?> - - - - - - - - - - -
StatusClass
- - -
nettoyer($adherent['nom']) ?>
-
nettoyer($adherent['prenoms']) ?>
-
- nettoyer($adherent['codeProduit']) ?> -
-
-
- nettoyer($adherent['dateEntree'])) ?> - - nettoyer($adherent['dateSortie'])) : '--' ?> -
-
- -
-
-
+
+ + + + + + + + + + + + nettoyer($adherent['numeroAdherent']); + $libelleColl = $this->nettoyer($adherent['libelleCollege']); + $estsupprimable = ($this->nettoyer($adherent['primeArchive']) == "0"); + $statusClass = $estsupprimable ? 'status-actif' : 'status-archive'; + ?> + + + + + + + + + +
+ + +
nettoyer($adherent['nom']) ?>
+
nettoyer($adherent['prenoms']) ?>
+
+ nettoyer($adherent['codeProduit']) ?> +
+
+
+ nettoyer($adherent['dateEntree'])) ?> + + nettoyer($adherent['dateSortie'])) : '--' ?> +
+
+ +
+
+
- + // Recherche personnalisée + $('#customSearch').on('keyup', function() { + table.search(this.value).draw(); + }); + // Filtre par Collège (Colonne 2 - index base 0) + $('#collegeFilter').on('change', function() { + table.column(2).search(this.value).draw(); + }); + }); + \ No newline at end of file