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

98 lines
5.1 KiB
PHP
Executable File

<?php
$totalDossiers = count($feuillemaladies);
$libelleDossiers = ($totalDossiers > 1) ? format_N($totalDossiers)." ". _("lignes") : $totalDossiers." ". _("ligne");
?>
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= $libelleDossiers; ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th width="3%" style='text-align:center'> <?= _("Fac") ?> </th>
<th width="5%" style='text-align:center'> <?= _("Date") ?> </th>
<th width="5%" style='text-align:center'> <?= _("No Bon") ?> </th>
<th width="3%" style='text-align:center'> <?= _("Payé") ?> </th>
<th width="11%" style='text-align:center;'> <?= _("Adhérent") ?> </th>
<th width="12%" style='text-align:center;'> <?= _("Patient") ?> </th>
<th width="6%" style='text-align:center'> <?= _("Frais") ?> </th>
<th width="4%" style='text-align:center'> <?= _("T M") ?> </th>
<th width="6%" style='text-align:center'> <?= _("A Remb") ?> </th>
<th width="5%" style='text-align:center'> <?= _("Dépas") ?> </th>
<th width="6%" style='text-align:center'> <?= _("Retenu") ?> </th>
<th width="6%" style='text-align:center'> <?= _("Forcé") ?> </th>
<th width="6%" style='text-align:center'> <?= _("A Payer") ?> </th>
<th width="6%" style='text-align:center'> <?= _("Payé") ?> </th>
<th width="4%" style='text-align:center'>Val</th>
<th width="4%" style='text-align:center'>Rej</th>
<th width="3%" style='text-align:center'> <?= _("Att") ?> </th>
<th width="4%" style='text-align:center'>Obs</th>
</tr>
</thead>
<tbody>
<?php foreach ($feuillemaladies as $feuillemaladie):
$numeroFeuilleMaladie = $this->nettoyer($feuillemaladie['numeroFeuilleMaladie']);
$numeroBonConsultation = $this->nettoyer($feuillemaladie['numeroBonConsultation']);
$observationsFacture = $feuillemaladie['observations'];
$regle = $feuillemaladie['regle'];
$valide = $feuillemaladie['valide'];
$facture = $feuillemaladie['facture'];
?>
<tr valign="top">
<td width="3%" align='center'><?= $feuillemaladie['idFactureFeuille'] ?></td>
<td width="5%" align='center'><?= dateLang($this->nettoyer($feuillemaladie['dateConsultation'])) ?></td>
<?php if ($facture=="1"): ?>
<td width="5%" align="center" style='font-size:8pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonConsultation'] ?> </td>
<?php else: ?>
<td width="5%" align="center" style='font-size:8pt; background-color:red;color:white;'> <?= $feuillemaladie['numeroBonConsultation'] ?> </td>
<?php endif; ?>
<?php if($regle=='1'): ?>
<td width="3%" align='center'> <input type="checkbox" checked value="<?= $regle ?>" disabled ></td>
<?php else: ?>
<td width="3%" align='center'> <input type="checkbox" value="<?= $regle ?>" disabled ></td>
<?php endif; ?>
<td width="11%" ><?= $this->nettoyer($feuillemaladie['adherent']) ?></td>
<td width="12%" ><?= $this->nettoyer($feuillemaladie['beneficiaire']) ?></td>
<td width="6%" align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?></td>
<td width="4%" align='center'><?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?></td>
<td width="6%" align='center'><?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?></td>
<td width="5%" align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisExclu'])) ?></td>
<td width="6%" align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisRetenu'])) ?></td>
<td width="6%" align='center'><?= format_N($this->nettoyer($feuillemaladie['montantForce'])) ?></td>
<td width="6%" align='center' style="color:red"><?= format_N($this->nettoyer($feuillemaladie['montantApayer'])) ?></td>
<td width="6%" align='center' style="color:blue"><?= format_N($this->nettoyer($feuillemaladie['montantPaye'])) ?></td>
<?php if($valide=='1'): ?>
<td width="4%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
<?php else: ?>
<td width="4%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
<?php endif; ?>
<?php if($valide=='9'): ?>
<td width="4%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
<?php else: ?>
<td width="4%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
<?php endif; ?>
<?php if($valide=='2'): ?>
<td width="3%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
<?php else: ?>
<td width="3%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
<?php endif; ?>
<?php if($observationsFacture>' '): ?>
<td width="4%" align="center"> <input type="button" value="Obs."
onClick="javascript:alert('<?= $observationsFacture ?>');">
</td>
<?php else: ?>
<td width="4%"> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>