88 lines
4.5 KiB
PHP
Executable File
88 lines
4.5 KiB
PHP
Executable File
<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 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Réseaux 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>
|
|
|
|
<input type="hidden" 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>
|
|
|
|
<div id="div_dupliquer_reseau" class="modal fade animate__animated animate__fadeInDown">
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<script>
|
|
// Initialisation SmartTable
|
|
var checkDTReseaux = setInterval(function() {
|
|
if (typeof initSmartTable === 'function') {
|
|
initSmartTable('.datatable-reseaux', 'Liste_Reseaux_Soins', false);
|
|
clearInterval(checkDTReseaux);
|
|
}
|
|
}, 100);
|
|
</script>
|