133 lines
4.7 KiB
PHP
Executable File
133 lines
4.7 KiB
PHP
Executable File
<div class="tab-container">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt; white-space: nowrap;">
|
|
<thead>
|
|
<tr>
|
|
<th width="24%" style="text-align:center"> <?= _("Libellé") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Forme") ?> </th>
|
|
<th width="6%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="6%" style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
|
|
<th width="15%" style="text-align:center"> <?= _("Posologie") ?> </th>
|
|
|
|
|
|
<th width="7%" colspan="2" style="text-align:center"> <?= _("Durée (Jour)") ?> </th>
|
|
<th width="5%" style="text-align:center" > <?= _("Accord") ?> </th>
|
|
<th width="6%" style="text-align:center"> <?= _("Garanti") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Renouvelable") ?> </th>
|
|
<th width="9%" style="text-align:center"> <?= _("Fréquence (Jour)") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
|
|
$existeEntentePrealable = 0;
|
|
?>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center'> Total</td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre']>"0" ? $prescription['fraisReelLivre'] : $prescription['fraisReel'])) ?></td>
|
|
<td colspan="7"> </td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php
|
|
$nbreMedciament=0;
|
|
|
|
|
|
foreach ($detailprescriptions as $detailprescription):
|
|
$idMedicament = $this->nettoyer($detailprescription['id']);
|
|
$livre = $this->nettoyer($detailprescription['livre']);
|
|
$substituable = $this->nettoyer($detailprescription['substituable']);
|
|
$substitue = $this->nettoyer($detailprescription['substitue']);
|
|
$nomSubstitut = $this->nettoyer($detailprescription['nomSubstitut']);
|
|
$libelleMedicament = $this->nettoyer($detailprescription['libelleMedicament']);
|
|
$codeMedicament = $this->nettoyer($detailprescription['codeMedicament']);
|
|
$ajPharmacie = $this->nettoyer($detailprescription['ajPharmacie']);
|
|
$ententePrealable = $this->nettoyer($detailprescription['ententePrealable']);
|
|
$medicamentRemplace = $this->nettoyer($detailprescription['medicamentRemplace']);
|
|
|
|
$nbreMedciament = $nbreMedciament+1;
|
|
$prixTotal = $this->nettoyer($detailprescription['fraisReel']);
|
|
|
|
$forme = $this->nettoyer($detailprescription['forme']);
|
|
|
|
|
|
|
|
$exclu = $this->nettoyer($detailprescription['exclu']);
|
|
|
|
if($exclu=="1"){
|
|
$garanti = "Non";
|
|
}else{
|
|
$garanti = "Oui";
|
|
}
|
|
|
|
$renouvelable = $this->nettoyer($detailprescription['renouvelable']);
|
|
|
|
$frequenceRenouvellement = $this->nettoyer($detailprescription['frequenceRenouvellement']);
|
|
|
|
|
|
if($renouvelable=="1"){
|
|
$ren = "Oui";
|
|
}else{
|
|
$ren = "Non";
|
|
}
|
|
|
|
if (est_anglophone()){
|
|
$forme = $this->nettoyer($detailprescription['formeEng']);
|
|
|
|
if($renouvelable=="1"){
|
|
$ren = "Yes";
|
|
}else{
|
|
$ren = "No";
|
|
}
|
|
|
|
if($exclu=="1"){
|
|
$garanti = "No";
|
|
}else{
|
|
$garanti = "Yes";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
<?php if($ajPharmacie=="1") : ?>
|
|
<tr valign="top" style="background-color: rgb(0, 142, 142);">
|
|
<?php else: ?>
|
|
<?php if($ententePrealable=='2' || $ententePrealable=='3'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $exclu=='1'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= $libelleMedicament ?> </td>
|
|
<td align='center'> <?= $forme ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailprescription['valeurActe'])) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['quantite']) ?> </td>
|
|
<td align='center'> <?= format_N($prixTotal) ?> </td>
|
|
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['posologie']) ?> </td>
|
|
<td> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['dureeTraitement'])?></td>
|
|
<?php if($ententePrealable<>"0"): ?>
|
|
<td align='center' > <input type="checkbox" checked disabled></td>
|
|
<?php else: ?>
|
|
<td align='center' > <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center' > <?=$garanti?></td>
|
|
<td align='center' > <?=$ren?></td>
|
|
<td align='center' > <?=$frequenceRenouvellement?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="12" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|