101 lines
4.2 KiB
PHP
101 lines
4.2 KiB
PHP
<div id="div_compsante_tarif">
|
|
<div class="row">
|
|
<div id="div_acte_1" class="col-4" >
|
|
<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") ?> </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();" > <?= _("Ajouter tous") . " ==>" ?> </button> </th>
|
|
</tr>
|
|
-->
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($actes_out as $acte_out):
|
|
$idActe = $acte_out['id'];
|
|
$dansDetailTarif = $acte_out['dansDetailTarif'];
|
|
?>
|
|
|
|
<?php if($dansDetailTarif=='1'): ?>
|
|
<tr valign="top" style="text-decoration: underline wavy blue 5px;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td align='center'><?= $this->nettoyer($acte_out['libelleActe']) ?></td>
|
|
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_acte_au_tarif('<?=$idActe?>');" ></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_acte_2" class="col-8" >
|
|
<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 utlisés") ?> </th>
|
|
<th width="10%" style='text-align:center'> <?= _("Effet") ?> </th>
|
|
<th width="10%" style='text-align:center'> <?= _("Prix Jour Ouvrable") ?> </th>
|
|
<th width="15%" style='text-align:center'> <?= _("Prix Nuit et Ferié") ?> </th>
|
|
<th width="7%" style='text-align:center'> Suppr </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_tarif();" > <?= "<== " . _("Retirer tous") ?> </button> </td>
|
|
</tr>
|
|
-->
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($actes_in as $acte_in):
|
|
$idDetailtarifacte = $acte_in['id'];
|
|
?>
|
|
<?php if($supprime=='1'): ?>
|
|
<tr valign="top" style="text-decoration: line-through red;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<td align='center'><?= $this->nettoyer($acte_in['libelleActe']) ?></td>
|
|
|
|
<?php if ($this->nettoyer($acte_in['prix'])=="0"): ?>
|
|
<td>
|
|
<INPUT style='text-align:center; font-size:7pt;' class="form-control datepicker" TYPE="text" id="dateEffetGarantie"
|
|
NAME="dateEffet" value="" onChange="javascript:maj_composante_effettarif_acte('<?=$idDetailtarifacte?>', this.value);" required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
|
|
<td >
|
|
<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_tarif_acte('<?=$idDetailtarifacte?>', this.value);}">
|
|
</td>
|
|
|
|
<td >
|
|
<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_tarifnuit_acte('<?=$idDetailtarifacte?>', this.value);}">
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center'><?= datefr($this->nettoyer($v['dateEffet'])); ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($acte_in['prix']))?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($acte_in['prixNuitFerier']))?></td>
|
|
<?php endif; ?>
|
|
<!--
|
|
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_acte_du_tarif('<?=$idDetailtarifacte?>');" ></td>
|
|
-->
|
|
<td>
|
|
<button type="button" class="form-control btn btn-danger" onClick="">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|