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

57 lines
2.0 KiB
PHP
Executable File

<div id="div_prestations">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th style="text-align:center"> <?= _("Actes ajoutés au décompte") ?> </th>
<th style="text-align:center"> <?= _("Frais") ?> </th>
<th style="text-align:center"> <?= _("T M") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestationactes=$this->nettoyer($prestation['id']);
$idLivre=$this->nettoyer($prestation['id']);
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
if (est_anglophone())
{
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
}
else
{
$libelleActe = $this->nettoyer($prestation['libelleActe']);
}
?>
<?php if($ententePrealable=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td> <input class = "form-control btn btn-danger" type="button" value="<=" onClick="javascript:retirer_un_acte_selection_dec('<?= $idLivre ?>');"> </td>
<td align='center'> <?= $libelleActe ?> </td>
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="5" height="8"></td>
</tr>
</tbody>
</table>
</div>