144 lines
5.8 KiB
PHP
144 lines
5.8 KiB
PHP
<?php
|
|
|
|
$chirurgie = $_SESSION['p_chirurgie_C'];
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
$bonCaduc = $_SESSION['p_bonCaduc'];
|
|
$facture = $_SESSION['p_facture'];
|
|
|
|
$idCollege = $_SESSION['p_idCollege_C'];
|
|
|
|
?>
|
|
<input class="sr-only" id="bool" name="bool" type="text" value= "<?= $_SESSION['bool'] ?>">
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <?= _("Suppr") ?> </th>
|
|
<th style="text-align:center"> <?= _("Actes (".count($prestations).")") ?> </th>
|
|
<th style="text-align:center"> <?= _("N° Dent") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<th style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Rembourser") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="5" 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>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['depassement'])) ?></td>
|
|
<td></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($prestations as $prestation):
|
|
$idPrestationactes=$this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation=$this->nettoyer($prestation['autorisation']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$prixTarif = $this->nettoyer($prestation['prixTarif']);
|
|
?>
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<?php if ($supprimable=="1" || $ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_acte_dentaire_selection('<?= $idPrestationactes ?>');"> </td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
|
|
<td align='center'> <?= $this->nettoyer($prestation['numeroDent']) ?> </td>
|
|
|
|
<?php if($facture=='1' || $bonCaduc=='1'): ?>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($prestation['valeurActe'])); ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
|
|
<?php else: ?>
|
|
<?php if ($prixTarif>"0"): ?>
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($prestation['valeurActe'])); ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prestation['valeurActe'])) ?>"
|
|
onChange="ajax_maj_prixacte_dentaire('<?=$idPrestationactes?>', this.value, this);" onBlur="formatMonetaire(this);" onkeyup="controle_numerique(this);" onFocus="formatNumerique(this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onChange="ajax_maj_qte_acte_dentaire('<?=$idPrestationactes?>', this.value, this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<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>
|
|
<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 ?>","<?= $motifEng ?>");'>
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td > </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|