This commit is contained in:
KANE LAZENI 2026-04-06 07:32:12 +00:00
parent 91f547fa66
commit cb0bdfe4d8

View File

@ -1,218 +0,0 @@
KANE DEBUT
<div class="card shadow-sm">
<div class="card-header bg-light py-2 d-flex justify-content-between align-items-center">
<h5 class="mb-0 text-dark">
<i class="fas fa-list me-2"></i>
<span class="hide-on-mobile"><?= _("Liste des demandes de consultation")?></span>
<span class="badge bg-primary view-end"><?= format_N(count($demandes)).' '._("Demandes") ?> </span>
</h5>
</div>
<div class="d-none d-md-block">
<div class="card-body p-0">
<table class="table table-striped table-hover mb-0" style="font-size:9pt; white-space: nowrap;">
<thead class="table-dark">
<tr>
<th class="text-center"><?= _("N° Demande") ?></th>
<th class="text-center">Date</th>
<th class="text-center"><?= _("Bénéficiaire") ?></th>
<th class="d-none d-lg-table-cell"><?= _("Nom") ?></th>
<th class="d-none d-xl-table-cell"><?= _("Spécialité") ?></th>
<th class="text-center"><?= _("Effectuée?") ?></th>
<th class="text-center"><?= _("Motif") ?></th>
<th class="text-center"><?= _("Expiration") ?></th>
</tr>
</thead>
<tbody>
<?php if (count($demandes) > 0): ?>
<?php foreach ($demandes as $v):
$idDemande = $this->nettoyer($v['id']);
$numeroDemandeConsultation = $this->nettoyer($v['numeroDemandeConsultation']);
$dateSysteme = $this->nettoyer($v['dateSysteme']);
$effectuee = $this->nettoyer($v['effectuee']);
$specialite = $this->nettoyer($v['specialite']);
$demandeExpiree = $this->nettoyer($v['demandeExpiree']);
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
$numeroBeneficiaire = $this->nettoyer($v['numeroBeneficiaire']);
if($effectuee=="1"){
if (est_anglophone()){
$demandeEffectuee = "Yes";
}else{
$demandeEffectuee = "Oui";
}
}else{
if (est_anglophone()){
$demandeEffectuee = "No";
}else{
$demandeEffectuee = "Non";
}
}
if (est_anglophone()){
$specialite = $this->nettoyer($v['specialiteEng']);
}
?>
<tr>
<?php if($effectuee == "1" || $demandeExpiree == "1"):?>
<td class="text-center" style="color: red; font-weight: bold;" > <?= $numeroDemandeConsultation ?> </td>
<?php else: ?>
<td align='center'>
<button class="btn btn-primary" data-toggle="tooltip" data-placement="bottom" title="Cliquer ici pour la fiche assuré"
onClick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');javascript:afficher_beneficiaire_id();">
<i class= "fa fa-address-book-o"> </i> <?= $numeroDemandeConsultation ?>
</button>
</td>
<?php endif; ?>
<td class="text-center"><?= dateheureLang($dateSysteme, $_SESSION['p_lang']) ?></td>
<td class="text-center"><?= $this->nettoyer($v['numeroBeneficiaire']) ?></td>
<td class="d-none d-lg-table-cell"><?= $this->nettoyer($v['beneficiaire']) ?></td>
<td class="d-none d-xl-table-cell text-truncate" style="max-width: 120px;"
data-bs-toggle="tooltip" title="<?= $specialite ?>">
<?= $specialite ?>
</td>
<td class="text-center">
<?php if($effectuee == "1"):?>
<span class="badge bg-success"><?= $demandeEffectuee; ?></span>
<?php else: ?>
<span class="badge bg-warning text-dark"><?= $demandeEffectuee; ?></span>
<?php endif; ?>
</td>
<td class="text-truncate" style="max-width: 200px;"
data-bs-toggle="tooltip" title="<?= $this->nettoyer($v['motifConsultation']) ?>">
<?= $this->nettoyer($v['motifConsultation']) ?>
</td>
<?php if($demandeExpiree == "1"):?>
<td class="text-center" style="color: red; font-weight: bold;" ><?= dateheureLang($this->nettoyer($v['heureExpiration']), $_SESSION['p_lang']) ?></td>
<?php else: ?>
<td class="text-center"><?= dateheureLang($this->nettoyer($v['heureExpiration']), $_SESSION['p_lang']) ?></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="8" class="text-center p-4 text-muted">
<div class="alert alert-info mt-3" style="margin-bottom:15px;">
<small>
<i class="fas fa-info-circle me-2"></i>
<?= _("Aucune demande trouvée pour les critères sélectionnés") ?>
</small>
</div>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<!-- Affichage mobile (cartes) -->
<div class="d-md-none">
<?php foreach ($demandes as $v):
$idDemande = $this->nettoyer($v['id']);
$numeroDemandeConsultation = $this->nettoyer($v['numeroDemandeConsultation']);
$dateSysteme = $this->nettoyer($v['dateSysteme']);
$effectuee = $this->nettoyer($v['effectuee']);
$specialite = $this->nettoyer($v['specialite']);
$demandeExpiree = $this->nettoyer($v['demandeExpiree']);
$heureExpiration = $this->nettoyer($v['heureExpiration']);
if($effectuee=="1"){
if (est_anglophone()){
$demandeEffectuee = "Yes";
}else{
$demandeEffectuee = "Oui";
}
}else{
if (est_anglophone()){
$demandeEffectuee = "No";
}else{
$demandeEffectuee = "Non";
}
}
if (est_anglophone()){
$specialite = $this->nettoyer($v['specialiteEng']);
$etatRdv = $this->nettoyer($v['etatRdvEng']);
}
?>
<div class="card-body py-2">
<div class="row mb-2">
<div class="col-12 mb-2">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small me-3"><?= _("N° Demande") ?></span>
<span class="fw-bold text-truncate" style="max-width: 150px;">
<?= $numeroDemandeConsultation ?>
</span>
</div>
</div>
<div class="col-12 mb-2">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small me-3"><?= _("Date") ?></span>
<span class="fw-bold text-truncate" style="max-width: 150px;">
<?= dateheureLang($dateSysteme, $_SESSION['p_lang']) ?>
</span>
</div>
</div>
<div class="col-12 mb-2">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small me-3"><?= _("Bénéficiaire") ?></span>
<span class="fw-bold text-truncate" style="max-width: 150px;">
<?= $this->nettoyer($v['beneficiaire'])." (".$this->nettoyer($v['numeroBeneficiaire']).")" ?>
</span>
</div>
</div>
<div class="col-12 mb-2">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small me-3"><?= _("Spécialité") ?></span>
<span class="fw-bold text-truncate" style="max-width: 120px;">
<?= $specialite ?>
</span>
</div>
</div>
<div class="col-12 mb-2">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small me-3"><?= _("Affectutuée?") ?></span>
<span class="fw-bold text-truncate" style="max-width: 120px;">
<?php if($effectuee == "1"):?>
<span class="badge bg-success w-100"><?= $demandeEffectuee; ?></span>
<?php else: ?>
<span class="badge bg-danger w-100"><?= $demandeEffectuee; ?></span>
<?php endif; ?>
</span>
</div>
</div>
<div class="col-12">
<textarea readonly class="message-text w-100"><?= $this->nettoyer($v['motifConsultation']) ?></textarea>
</div>
<div class="col-12 mb-2">
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small me-3"><?= _("Expiration") ?></span>
<?php if($demandeExpiree == "1"):?>
<span class="fw-bold text-truncate" style="max-width: 150px; color:red">
<?= dateheureLang($heureExpiration, $_SESSION['p_lang']) ?>
</span>
<?php else: ?>
<span class="fw-bold text-truncate" style="max-width: 150px;">
<?= dateheureLang($heureExpiration, $_SESSION['p_lang']) ?>
</span>
<?php endif; ?>
</div>
</div>
</div>
<hr>
<?php endforeach; ?>
</div>
</div>
KANE FIN