prestation/Vue/Ajaxcoutlettrecleprestataire/affichercout.php
2025-12-05 10:42:46 +00:00

61 lines
2.5 KiB
PHP
Executable File

<div id="div_compsante_tarif">
<div class="row">
<div id="div_acte_1" class="col-5" >
<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'> <?= _("Lettres clés disponibles (".count($lettrecle).")") ?> </th>
<th width="7%" style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($lettrecle as $v):
$lettreCle = $v['lettreCle'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($v['lettreCle']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_lettre_cle_prestataire('<?=$lettreCle?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_acte_2" class="col-7" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th width="7%" style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Lettres clés prestataire (".count($lettrecleprestataire).")") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Coût Jour Ouvrable") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Coût Nuit et Férié") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($lettrecleprestataire as $v):
$idPresta = $v['id'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_une_lettre_cle_prestataire('<?=$idPresta?>');" ></td>
<td align='center'><?= $this->nettoyer($v['lettreCle']) ?></td>
<td width="20%">
<INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $this->nettoyer($v['cout']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_cout_lettrecle_prestataire('<?=$idPresta?>', this.value);}">
</td>
<td width="20%">
<INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $this->nettoyer($v['coutNuit']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_coutnuit_lettrecle_prestataire('<?=$idPresta?>', this.value);}">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>