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

51 lines
1.8 KiB
PHP
Executable File

<table class="table table-condensed table-responsive">
<tbody>
<tr>
<td >
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne1" name="nbligne1" value="Total :<?= format_N(count($adherents));?>" readonly>
</td>
</tr>
</tbody>
</table>
<table id="tab_adherents_dispo" class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:7pt;">
<thead>
<tr>
<th style='text-align:center' width="8%"> <?= _("Numéro") ?> </th>
<th> <?= _("Nom & Prénoms") ?> </th>
<th style='text-align:center'> <?= _("Produit") ?> </th>
<th style='text-align:center'> <?= _("Collège") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<td colspan="6">
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-primary"
onclick="javascript:ajouter_tous_adherents_basculer();" >
<?= "============================ "._("Basculer Tous")." ============================>" ?>
</button>
</td>
</tr>
</thead>
<tbody>
<?php foreach ($adherents as $adherent):
$idAdherent=$adherent['id'];
$noAdh=$this->nettoyer($adherent['numeroAdherent']);
$nomAdh= $this->nettoyer($adherent['nom'])." ".$this->nettoyer($adherent['prenoms']);
?>
<tr valign="top">
<td align="center"> <?= $noAdh ?> </td>
<td><?= $nomAdh ?></td>
<td align='center'><?= $this->nettoyer($adherent['codeProduit']) ?></td>
<td><?= $this->nettoyer($adherent['libelleCollege']) ?></td>
<td align='center'>
<input type="button" value="=>" onClick="javascript:ajouter_adherent_bascule('<?=$noAdh?>');"
style="font-size:10pt; width:30px;" >
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>