This commit is contained in:
KONE SOREL 2026-03-17 16:01:50 +00:00
parent cc65c6eac3
commit 1ac708dc0e

View File

@ -1,36 +1,86 @@
<?php $this->titre = "INTER SANTE - Réseaux de soins de santé"; ?>
<div class="page-content animate__animated animate__fadeIn">
<div class="header-section mb-1">
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-primary border-4" style="border-radius: var(--radius-md);">
<div class="d-flex align-items-center">
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-network-wired fs-4"></i>
</div>
<div>
<h4 class="mb-0 fw-bold text-uppercase"><?= _("Réseaux de Soins") ?></h4>
<p class="text-muted small mb-0"><?= _("Gestion et configuration des réseaux de prestataires de santé") ?></p>
</div>
</div>
<button class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm btn-sm" onclick="nouveau_reseau();">
<i class="fas fa-plus me-1"></i> <?= _("Nouveau Réseau") ?>
</button>
</div>
</div>
<legend> <?= _("LISTE DES Réseaux de soins de santé") ?> </legend>
<input type="hidden" id="nomForm" name="nomForm" value="reseausoins">
<INPUT class="sr-only" TYPE="text" id="nomForm" NAME="nomForm" value="reseausoins">
<div class="card border-0 shadow-sm">
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 datatable-reseaux" style="width:100%; font-size: 9.5pt;">
<thead class="bg-light">
<tr>
<th class="py-3 ps-3 text-center" width="10%">ID</th>
<th class="py-3"><?= _("Libellé du Réseau") ?></th>
<th class="py-3 text-center" width="20%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($reseaus as $reseau):
$idReseau = $this->nettoyer($reseau['id']);
$libelle = $this->nettoyer($reseau['libelle']);
?>
<tr>
<td class="ps-3 text-center">
<span class="badge bg-light text-muted border px-2">#<?= $idReseau ?></span>
</td>
<td class="fw-bold text-dark text-uppercase"><?= $libelle ?></td>
<td class="text-center">
<div class="btn-group shadow-xs rounded-pill bg-white border p-1">
<button class="btn btn-link btn-sm text-primary p-1 mx-1 action-icon"
title="<?= _("Configurer") ?>"
onclick="modifier_reseau(<?= $idReseau ?>);">
<i class="fas fa-cog"></i>
</button>
<button class="btn btn-link btn-sm text-warning p-1 mx-1 action-icon"
title="<?= _("Dupliquer") ?>"
onclick="dupliquer_reseau(<?= $idReseau ?>);">
<i class="fas fa-copy"></i>
</button>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th style="text-align:center" width="10%">ID</th>
<th style="text-align:center" > <?= _("Libellé") ?> </th>
<th style="text-align:center" > <?= _("Configurer") ?> </th>
<th style="text-align:center" > <?= _("Dupliquer") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($reseaus as $reseau):
$idReseau = $this->nettoyer($reseau['id']);
$libelle = $this->nettoyer($reseau['libelle']);
?>
<tr valign="top">
<td align="center"> <?= $idReseau ?> </td>
<td> <?= $this->nettoyer($reseau['libelle']) ?> </td>
<td align="center" width="10%"> <input class = "form-control btn btn-primary" style="font-size:10pt;" type="button" value="<?= _("Configurer") ?>" onclick="javascript:modifier_reseau(<?= $idReseau ?>);"> </td>
<td align="center" width="10%"> <input class = "form-control btn btn-warning" style="font-size:10pt;" type="button" value="<?= _("Dupliquer") ?>" onclick="javascript:dupliquer_reseau(<?= $idReseau ?>);"> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div id="div_dupliquer_reseau" class="modal fade animate__animated animate__fadeInDown">
</div>
<div id="div_dupliquer_reseau" class="modal fade">
<style>
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.btn-link { text-decoration: none; border: none; background: transparent; transition: all 0.2s ease-in-out; }
.action-icon:hover { transform: scale(1.25); }
.datatable-reseaux thead th { vertical-align: middle; border-bottom: 2px solid #eee; }
.table-hover tbody tr:hover { background-color: rgba(33, 46, 83, 0.02); }
</style>
</div>
<script>
// Initialisation SmartTable
var checkDTReseaux = setInterval(function() {
if (typeof initSmartTable === 'function') {
initSmartTable('.datatable-reseaux', 'Liste_Reseaux_Soins', false);
clearInterval(checkDTReseaux);
}
}, 100);
</script>