prestation/Vue/Ajaxlocaliseradherent/index.php
2025-12-01 18:54:33 +00:00

49 lines
1.9 KiB
PHP

<?php
$nb_in = count($adherents_in);
$nb_out = count($adherents_out);
?>
<div id="div_adherent">
<div id="div_out" class="col-7" style="padding-left:0px;padding-right:1px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th colspan="2" style='text-align:center'> <?= _("Hors de la localité").' => '.format_N($nb_out).' '._('familles') ?> </th>
<th width="10%" style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="=>>" onClick="javascript:ajouter_tous_adherents_localte();" > </th>
</tr>
</thead>
<tbody>
<?php foreach ($adherents_out as $adherent_out):
$idAherent=$this->nettoyer($adherent_out['idAherent']);
?>
<tr valign="top">
<td> <?= $this->nettoyer($adherent_out['nomAdherent']) ?></td>
<td width="10%" align='center'><?= $this->nettoyer($adherent_out['numeroAdherent']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_adherent_localte('<?=$idAherent?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_in" class="col-5" style="padding-left:0px;padding-right:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th colspan="2" style='text-align:center'> <?= _("Dans la localité").' => '.format_N($nb_in).' '._('familles') ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($adherents_in as $adherent_in):
$idAherent=$this->nettoyer($adherent_in['idAherent']);
?>
<tr valign="top">
<td align='center' > <?= $this->nettoyer($adherent_in['nomAdherent']) ?></td>
<td width="15%" align='center'><?= $this->nettoyer($adherent_in['numeroAdherent']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>