production/Vue/Ajaxfiltreadherentparcollegedevis/index.php
2025-12-01 16:12:12 +00:00

65 lines
2.4 KiB
PHP
Executable File

<?php
$superUser = $_SESSION['superUser'];
$cnt = 0;
$nbLigne = count($adherents);
$idCollegePolice = isset($_SESSION["idCollegePolice_d"]) ? $_SESSION["idCollegePolice_d"]:"0";
?>
<div id="div_liste_adherent">
<table style="margin: auto" class="table-responsive">
<tbody>
<tr>
<td width="13%" style='font-weight:bold'> <?= _("Filtre par Collège")." : &nbsp;&nbsp;" ?> </td>
<td >
<select name="idCollegePolice" id="idCollegePolice" class="form-control selectpicker" data-live-search="true" onchange="filtreadherentparcollege_d();" style="font-size:12pt; height:30px;">
<?php liste_options_consultation($colleges, $idCollegePolice); ?>
</select>
</td>
</tr>
<tr>
<td colspan="2" height="8"></td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th colspan="8" style='text-align:center'> <?= format_N($nbLigne) ?> <?= _("Lignes au total") ?> </th>
</tr>
<tr>
<th colspan="2" style='text-align:center' width="8%"> <?= _("Numéro") ?> </th>
<th> <?= _("Nom") ?> </th>
<th> <?= _("Prénoms") ?> </th>
<th style='text-align:center' > <?= _("Genre") ?> </th>
<th style='text-align:center'> <?= _("Produit") ?> </th>
<th style='text-align:center' > <?= _("Collège") ?> </th>
<th style='text-align:center' width="8%"> <?= _("Nbre Personne") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($adherents as $adherent):
$idAdherent=$adherent['id'];
$noFamille=$adherent['noFamille'];
$numeroAdherent=$adherent['numeroAdherent'];
$cnt ++;
?>
<tr ondblclick="javascript:pop_adherent_devis('<?= $idAdherent ?>');" valign="top">
<td align="center"> <?= format_N($cnt) ?> </td>
<td align="center"> <input type="button" value="<?= $noFamille ?>" onClick="javascript:pop_adherent_devis('<?= $idAdherent ?>');"> </td>
<td><?= $this->nettoyer($adherent['nom']) ?></td>
<td><?= $this->nettoyer($adherent['prenoms']) ?></td>
<td align="center"> <?= $this->nettoyer($adherent['sexe']) ?></td>
<td align='center'><?= $this->nettoyer($adherent['codeProduit']) ?></td>
<td><?= $this->nettoyer($adherent['libelleCollege']) ?></td>
<td align='center'><?= $this->nettoyer($adherent['nb_beneficiaire']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>