production/Vue/Ajaximportertarifacte/afficheradherentimportee.php
2025-12-01 16:12:12 +00:00

103 lines
4.2 KiB
PHP
Executable File

<div id="div_adherents_importes">
<div class="row">
<div id="div_adherents_importes_1" class="col-6" >
<legend> <?= _("Familles hors du collège") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th colspan="3" style='text-align:center'> <?= _("Produit") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("No Famille") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Familles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="3"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_adherent_importe_college();" > <?= _("Ajouter tous") . " ==>" ?> </button> </th>
<th colspan="2"> </th>
<th colspan="3"> <button type="button" style="font-size:10pt;" class="form-control btn btn-warning" onclick="javascript:ajouter_sans_college_adherent_importe_college();" > <?= _("Ajouter les lignes en jaune sans collèges"). " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($adherents as $adherent):
$idBeneficiairemodel = $adherent['idBeneficiairemodel'];
$idCollege = $adherent['idCollege'];
?>
<?php if ($idCollege>'0'): ?>
<tr valign="top">
<?php else : ?>
<tr valign="top" style="background-color: yellow;">
<?php endif; ?>
<td align='center'><?= $this->nettoyer($adherent['categorie']) ?></td>
<td align='center'><?= $this->nettoyer($adherent['libelleCollege']) ?></td>
<td align='center'><?= $this->nettoyer($adherent['codeProduit']) ?></td>
<td align='center'><?= $this->nettoyer($adherent['numeroAdherent']) ?></td>
<td align='center'><?= $this->nettoyer($adherent['noFamille']) ?></td>
<td><?= $this->nettoyer($adherent['nom']) ?></td>
<td><?= $this->nettoyer($adherent['prenoms']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_adherent_importe_college('<?=$idBeneficiairemodel?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_adherents_importes_2" class="col-6" >
<legend> <?= _("Familles du collège") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th colspan="3" style='text-align:center'> <?= _("Catégorie ou Collège") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("No Famille") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Familles") ?> </th>
</tr>
<tr>
<td colspan="8"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_adherent_importe_college();" > <?= "<== " . _("Retirer tous les membres de ce collège") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($adherents_college as $adherent_college):
$idBeneficiairemodel=$adherent_college['idBeneficiairemodel'];
$idCollege=$adherent_college['idCollege'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_adherent_importe_college('<?=$idBeneficiairemodel?>');" ></td>
<td align='center'><?= $this->nettoyer($adherent_college['categorie']) ?></td>
<td align='center'><?= $this->nettoyer($adherent_college['libelleCollege']) ?></td>
<td align='center'><?= $this->nettoyer($adherent_college['codeProduit']) ?></td>
<td align='center'><?= $this->nettoyer($adherent_college['numeroAdherent']) ?></td>
<td align='center'><?= $this->nettoyer($adherent_college['noFamille']) ?></td>
<td><?= $this->nettoyer($adherent_college['nom']) ?></td>
<td><?= $this->nettoyer($adherent_college['prenoms']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>