98 lines
3.7 KiB
PHP
Executable File
98 lines
3.7 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'> Suppr </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Actes ajoutés au décompte") ?> </th>
|
|
<th style="text-align:center"> <?= _("P U") ?> </th>
|
|
<th style="text-align:center"> <?= _("Qtité") ?> </th>
|
|
<th style="text-align:center"> <?= _("P T") ?> </th>
|
|
<th style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th style="text-align:center"> <?= _("Mtt TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($prestations as $prestation):
|
|
$idPrestationactes=$this->nettoyer($prestation['id']);
|
|
$idLivre=$this->nettoyer($prestation['id']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
|
|
$codeGarantie=$this->nettoyer($prestation['codeGarantie']);
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$tm=$this->nettoyer($prestation['tm']);
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
?>
|
|
|
|
<?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>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:retirer_un_acte_selection_dec(<?= $idPrestationactes ?>);">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
|
|
<td align='center' width="13%">
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:alert_ebene("<?= $tarif ?>, <?= $tarif ?>");'>
|
|
<?= format_N($valeurActe) ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center' width="8%">
|
|
<?= $this->nettoyer($prestation['quantite']) ?>
|
|
</td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
|
|
<td align='center'> <?= $tm ?></td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['depassement'])) ?></td>
|
|
<?php if($codeMotifDepassement!=''): ?>
|
|
<td align='center'>
|
|
<button type="button" class="btn btn-info" title="<?= _("Voir le motif du dépassement...") ?>" onClick="javascript:alert_ebene('<?= $motif ?>', '<?= $motif ?>');">
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td > </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="11" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|