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

116 lines
4.5 KiB
PHP
Executable File

<div id="div_actes" class="col-4" style="padding-right:1px;">
<div id="listeacte">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Actes") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Prix") ?> </th>
<th width="5%" style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($actes as $acte):
$codeActe=$this->nettoyer($acte['codeActe']);
$act_ententePrealable=$this->nettoyer($acte['ententePrealable']);
$act_exclu=$this->nettoyer($acte['exclu']);
$act_valeurActe=$this->nettoyer($acte['valeurActe']);
$act_montantTm=$this->nettoyer($acte['montantTm']);
$act_aRembourser=$this->nettoyer($acte['montantArembourser']);
?>
<tr valign="top">
<?php if($act_ententePrealable=='1'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($act_exclu=='1'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td ><?= $this->nettoyer($acte['libelleActe']) ?></td>
<td align='center'> <?= format_N($act_valeurActe) ?></td>
<?php if ($act_exclu=="1"): ?>
<td align='center' style="background-color: red;color:white;"> Excl </td>
<?php else: ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_examen_selection('<?=$codeActe?>', '<?=$act_valeurActe?>', '<?=$act_montantTm?>', '<?=$act_aRembourser?>' , '<?=$act_ententePrealable?>' , '<?=$act_ententePrealable?>' );" ></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div id="div_prestations" class="col-8" >
<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"> <?= _("Acte") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
<th style="text-align:center"> <?= _("T M") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4" style='text-align:center'> <?= _("Total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestationactes=$this->nettoyer($prestation['id']);
$idLivre=$this->nettoyer($prestation['id']);
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
?>
<?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:retirerexamen_lab_selection('<?= $idLivre ?>');"> </td>
<td align='center'> <?= $this->nettoyer($prestation['libelleActe']) ?> </td>
<td>
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
onBlur="ajax_maj_qte_examen_lab_select('<?=$idLivre?>', this.value, this);">
</td>
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></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="7" height="8"></td>
</tr>
</tbody>
</table>
</div>