prestation/Vue/Ajaxajouterprestatairesenplus/index.php
2025-12-05 10:42:46 +00:00

40 lines
1.6 KiB
PHP
Executable File

<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<tbody>
<tr>
<td align='center'><input class = "form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRecherchePrestatairePlus" style="font-size:10pt;" type="button" value="<?= _("Prestataires en plus (".count($prestataireenpluss).")") ?>" onclick=""></td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspecialemini compact" style="font-size:9pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Type") ?> </th>
<th style='text-align:center'> <?= _("Ville") ?> </th>
<th width="2%" style='text-align:center'> <?= _("Suppr") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestataireenpluss as $prestataireenplus):
$type = $this->nettoyer($prestataireenplus['typep']);
if (est_anglophone()){
$type = $this->nettoyer($prestataireenplus['typepEng']);
}
$idData = $this->nettoyer($prestataireenplus['id']);
?>
<tr valign="top">
<td > <?= $this->nettoyer($prestataireenplus['prestataire']); ?></td>
<td > <?= $type; ?></td>
<td > <?= $this->nettoyer($prestataireenplus['ville']); ?></td>
<td >
<button style="width:100%" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimerprestataireenplus(<?= $idData; ?>)">X</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>