radiantrh/Vue/Ajaxrequeteprestationactes/index.php

97 lines
4.4 KiB
PHP
Executable File

<?php $nbligne = 0; ?>
<div id="div_detail_requete">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:6pt;">
<thead>
<tr>
<th style='text-align:center'> Date </th>
<th colspan="2" style='text-align:center'> Bénéficiaire </th>
<th style='text-align:center'> Feuil. </th>
<th style='text-align:center'> Cons. </th>
<th style='text-align:center'> Ord. </th>
<th style='text-align:center'> Hosp. </th>
<th style='text-align:center'> Opt. </th>
<th style='text-align:center'> Type </th>
<th> Acte </th>
<th> Médecin </th>
<th width="5%" style='text-align:center'> Valeur </th>
<th style='text-align:center'> Qté </th>
<th width="5%" style='text-align:center'> Frais </th>
<th width="5%" style='text-align:center'> T M </th>
<th width="5%" style='text-align:center'> A Rmb </th>
<th style='text-align:center'> Ent. </th>
<th style='text-align:center'> Fact </th>
<th style='text-align:center'> Val. </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="13" style='text-align:center'> <?= format_N($this->nettoyer($prestationactes_total['nbLigne'])) ?> Ligne(s) au total </td>
<td align='center'><?= format_N($this->nettoyer($prestationactes_total['fraisReel_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationactes_total['montantTm_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationactes_total['montantArembourser_total'])) ?></td>
<td colspan="3" > </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($prestationactes as $prestationacte):
$facture = $prestationacte['facture'];
$ententePrealable=$this->nettoyer($prestationacte['ententePrealable']);
$autorisation=$this->nettoyer($prestationacte['autorisation']);
$nbligne++;
?>
<?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; ?>
<td align='center'><?= dateFr($this->nettoyer($prestationacte['datePrestation'])) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($prestationacte['beneficiaire']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroFeuilleMaladie']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonConsultation']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonOrdonnance']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonHospitalisation']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonOptique']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['codeTypePrestation']) ?></td>
<td><?= $this->nettoyer($prestationacte['libelleActe']) ?></td>
<td><?= $this->nettoyer($prestationacte['medecinActe']) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['valeurActe'])) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['quantite']) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['montantArembourser'])) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['ententePrealable']) ?></td>
<?php if ($facture=="1"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
<td align='center'><?= $this->nettoyer($prestationacte['valide']) ?></td>
</tr>
<?php
if ($nbligne == 200) {
$nbligne = "> ".$nbligne." => Utilisez / Use Excel";
break;
}
?>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
</div>