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

38 lines
1.9 KiB
PHP
Executable File

<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("No") ?> </th>
<th > <?= _("Produit") ?> </th>
<th > <?= _("College") ?> </th>
<th width="5%" style='text-align:center'>
<?php if($choixTous=='1'): ?>
<input type="checkbox" checked value="<?php echo $choixTous; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_tous_beneficiaire_changement_college(this.value);">
<?php else: ?>
<input type="checkbox" value="<?php echo $choixTous; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_tous_beneficiaire_changement_college(this.value);"></td>
<?php endif; ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($beneficiaires as $beneficiaire):?>
<tr valign="top">
<td><?= $this->nettoyer($beneficiaire['nomBeneficiaire']) ?></td>
<td align='center'><?= $this->nettoyer($beneficiaire['numeroBeneficiaire']) ?></td>
<td ><?= $this->nettoyer($beneficiaire['categorie']) ?></td>
<td ><?= $this->nettoyer($beneficiaire['libelleCollege']) ?></td>
<?php if($beneficiaire['choix']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?= $beneficiaire['choix'] ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};choix_beneficiaire_changementcollege(this.value, <?= $beneficiaire['idBeneficiaire_temp'] ?>);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?= $beneficiaire['choix'] ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};choix_beneficiaire_changementcollege(this.value, <?= $beneficiaire['idBeneficiaire_temp'] ?>);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>