assure/Vue/Avishospitalisation/index.php
2025-12-05 09:34:39 +00:00

97 lines
3.7 KiB
PHP
Executable File

<?php $this->titre = "Afrikssur-Santé-Avis Hospitaluisation"; ?>
<form id="frmconsultation" name="frmconsultation" method="post" action="Avishospitalisation/enregistredossier">
<input class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $_SESSION['codePrestataireUtilisateur'] ?>" >
<input class="sr-only" type="text" id="numeroBeneficiaire" name="numeroBeneficiaire" value="<?= $_SESSION['numeroBeneficiaire_C'] ?>" >
<fieldset>
<legend>Demande de PEC Hospitalisation</legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="15%">Acte</td>
<td colspan="2">
<SELECT class="form-control" id="codeActe" NAME="codeActe" required autofocus >
<?php liste_options($acte,""); ?>
</SELECT>
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>Prescripteur</td>
<td colspan="2">
<SELECT class="form-control" id="codeMedecin" NAME="codeMedecin" required >
<?php liste_options($medecin,""); ?>
</SELECT>
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>Motif Hospitalisation</td>
<td colspan="2"><input class="form-control" type="text" id="motifPec" name="motifPec" required ></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>Durée prévue (j)</td>
<td><input class="form-control" style="text-align: center" type="number" id="dureeHospitDemandee" name="dureeHospitDemandee" required ></td>
<td><input class = "form-control btn btn-primary" type="submit" value="Envoyer la demande de PEC" /></td>
</tr>
</tbody>
</table>
</fieldset>
<fieldset>
<legend>Liste des demandes en cours du bénéficiaire : <input class = "btn btn-primary" type="button" value="Actualiser la liste" onClick="javascript:actualiserdemandehospit();"> </legend>
<table class="table table-responsive table-condensed table-hover" style="font-size: 9pt;">
<thead>
<tr>
<th>N°</th>
<th>Acte</th>
<th>Demandée le</th>
<th>Répondue le</th>
<th>Réponse</th>
<th>Motif Refus</th>
<th style="text-align: center;">N° Bon</th>
<th style="text-align: center;">Code secret</th>
<th>Méd. Cons.</th>
<th style="text-align: center;">Clôturer</th>
</tr>
</thead>
<tbody>
<?php foreach ($demandespecs as $demandespec):
$numeroDemande = $demandespec['numeroDemande'];
?>
<tr>
<td><?= $this->nettoyer($demandespec['numeroDemande']) ?></td>
<td><?= $this->nettoyer($demandespec['acte']) ?></td>
<td><?= dateFr($demandespec['dateDemande']).' '.substr($demandespec['heureDemande'],0,5) ?></td>
<td><?= dateFr($demandespec['dateReponse']).' '.substr($demandespec['heureReponse'],0,5) ?></td>
<td><?= $this->nettoyer($demandespec['reponse']) ?></td>
<?php if ($demandespec['codeReponsePec']=='1'): ?>
<td><input type="button" class="btn btn-success" value="Imprimer l'accord" onClick="javascript:Imprimerbonpechosp('<?= $numeroDemande ?>');"></td>
<?php else: ?>
<td><?= $this->nettoyer($demandespec['motifReel']) ?></td>
<?php endif; ?>
<td style="text-align: center;"><?= $this->nettoyer($demandespec['numeroBon']) ?></td>
<td style="text-align: center;"><?= $this->nettoyer($demandespec['codeSecret']) ?></td>
<td><?= $this->nettoyer($demandespec['repondeur']) ?></td>
<td ALIGN = "CENTER"><input type="button" class="btn btn-warning" value="Clôturer" onClick="javascript:cloturerDemandePecHospit('<?= $numeroDemande ?>');"></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</form>