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

102 lines
3.7 KiB
PHP
Executable File

<div id="div_compsante_tarif">
<div id="div_prestataire_1" class="table-responsive">
<table id="tab_ent_prestataire_1" class="table table-condensed table-responsive">
<tbody>
<tr>
<td align='center' style="font-size:18pt; font-weight:bold; vertical-align: middle;"><?= _("Prestataires disponibles") ?></td>
<td>
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne1" name="nbligne1" value="Nbre Lignes :<?= format_N(count($prestatairesdispo));?>" readonly>
</td>
</tr>
</tbody>
</table>
<table id="tab_prestataire_1" class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Type") ?> </th>
<th style='text-align:center'> <?= _("Ville") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<td colspan="4">
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-primary"
onclick="javascript:ajouter_tous_prestataires_tarifcollege();" >
<?= "============================ "._("Ajouter Tous")." ============================>" ?>
</button>
</td>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairesdispo as $v):
$idPrestataire = $v['id'];
$codePrestataire = $v['codePrestataire'];
?>
<tr valign="top">
<td><?= $this->nettoyer($v['libelle']) ?></td>
<td><?= $this->nettoyer($v['typeprestataire']) ?></td>
<td><?= $this->nettoyer($v['localite']) ?></td>
<td align='center'>
<input type="button" value="=>" onClick="javascript:ajouter_un_prestataire_tarifcollege('<?=$codePrestataire?>');"
style="font-size:10pt; width:30px;" >
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_prestataire_2" class="table-responsive">
<table class="table table-condensed table-responsive">
<tbody>
<tr>
<td align='center' style="font-size:18pt; font-weight:bold; vertical-align: middle;">
<?= _("Prestataires ajoutés") ?>
</td>
<td >
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne2" name="nbligne2"
value="Nbre Lignes : <?= Format_N(count($prestatairetarif))?>" readonly>
</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Ville") ?> </th>
</tr>
<tr>
<td colspan="4">
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_prestataires_tarifcollege();" >
<?= "<================== " . _("Retirer Tous")." ==================" ?>
</button>
</td>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairetarif as $v):
$idPrestataire = $v['id'];
$codePrestataire = $v['codePrestataire'];
?>
<tr valign="top">
<td align='center'>
<input type="button" value="<=" onclick="javascript:retirer_un_prestataire_tarifcollege('<?=$codePrestataire?>');"
style="font-size:10pt; width:30px;">
</td>
<td><?= $this->nettoyer($v['libelle']) ?></td>
<td><?= $this->nettoyer($v['localite']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>