prestation/Vue/Ajaxcomposantetarifgroupe/affichercomposantetarif.php
2025-12-01 18:54:33 +00:00

71 lines
3.0 KiB
PHP

<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'> <?= _("Actes disponibles")." (".count($actes_out).")" ?> </th>
<th width="7%" style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_actes_fam_au_tarif_groupe();" > <?= _("Ajouter tous") . " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($actes_out as $acte_out):
$idActe = $acte_out['id'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($acte_out['libelleActe']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_acte_au_tarif_groupe('<?=$idActe?>');" ></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'> <?= _("Actes utlisés")." (".count($actes_in).")" ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prix Jour Ouvrable") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Prix Nuit et Ferié") ?> </th>
</tr>
<tr>
<td colspan="4"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_actes_fam_du_tarifgroupe();" > <?= "<== " . _("Retirer tous") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($actes_in as $acte_in):
$idDetailtarifacte = $acte_in['id'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_acte_du_tarifgroupe('<?=$idDetailtarifacte?>');" ></td>
<td align='center'><?= $this->nettoyer($acte_in['libelleActe']) ?></td>
<td width="20%">
<INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $this->nettoyer($acte_in['prix']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_composante_tarifgroupe_acte('<?=$idDetailtarifacte?>', this.value);}">
</td>
<td width="20%">
<INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $this->nettoyer($acte_in['prixNuitFerier']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_composante_tarifnuitgroupe_acte('<?=$idDetailtarifacte?>', this.value);}">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>