120 lines
4.3 KiB
PHP
120 lines
4.3 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Ajout examens";
|
|
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
?>
|
|
|
|
<input class="sr-only" id="codeTypePrestation" name="codeTypePrestation" type="text" value="EXAM">
|
|
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $_SESSION['p_codeMedecin_C'] ?>">
|
|
|
|
<legend> <?= _("Ajouter un acte médical") ?> </legend>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="20%" > <?= _("Famille Actes") ?> </td>
|
|
<td>
|
|
<SELECT class="form-control" id="codeFamilleActe" NAME="codeFamilleActe" required AUTOCOMPLETE="OFF" onChange="ajaxexamenpossibles_selection();" style='font-size:10pt;' >
|
|
<?php liste_options($familleacte,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="row" id="totam_donnees">
|
|
|
|
<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 width="90%" style='text-align:center'> <?= _("Actes") ?> </th>
|
|
<th style='text-align:center'> => </th>
|
|
</tr>
|
|
</thead>
|
|
</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']);
|
|
$libelleActe=$this->nettoyer($prestation['libelleActe']);
|
|
$codeActe=$this->nettoyer($prestation['codeActe']);
|
|
?>
|
|
|
|
<?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>
|
|
<?php if($actVisible=="1"): ?>
|
|
<?= $libelleActe ?>
|
|
<?php else: ?>
|
|
<?= $codeActe ?>
|
|
<?php endif; ?>
|
|
</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>
|
|
|
|
</div>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
|
|
</div>
|