newdesigngestionnaire/Vue/Reseausoins/index.php
2026-04-10 18:53:16 +00:00

85 lines
4.3 KiB
PHP
Executable File

<?php
$titre = _("Réseaux de Soins");
?>
<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"><?= $titre ?></h4>
<p class="text-muted small mb-0"><?= _("Gestion et configuration des réseaux de prestataires de santé") ?></p>
</div>
</div>
</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 no-export" 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-warning p-1 me-2 action-icon"
title="<?= _("Configurer") ?>"
onclick="modifier_reseau(<?= $idReseau ?>);">
<i class="fas fa-cog"></i><span><?= _("Configurer") ?></span>
</button>
<button class="btn btn-link btn-sm text-primary p-1 mx-1 action-icon"
title="<?= _("Dupliquer") ?>"
onclick="dupliquer_reseau(<?= $idReseau ?>);">
<i class="fas fa-copy"></i><span><?= _("Dupliquer") ?></span>
</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>
.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', '<?= $titre?>', false);
clearInterval(checkDTReseaux);
}
}, 100);
</script>