df
This commit is contained in:
parent
41ac9cbc5a
commit
64d509ce90
|
|
@ -1,5 +1,3 @@
|
|||
<?php $superUser = $_SESSION['superUser'] ?? 0; ?>
|
||||
|
||||
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
|
||||
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
|
||||
<div class="d-flex align-items-center">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
<?php $superUser = $_SESSION['superUser'] ?? 0; ?>
|
||||
|
||||
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
|
||||
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
|
||||
<div class="d-flex align-items-center">
|
||||
|
|
|
|||
|
|
@ -1,46 +1,42 @@
|
|||
<?php
|
||||
$nbreTotal = count($secteuractivite);
|
||||
$displayTotal = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
|
||||
?>
|
||||
|
||||
<div class="card border-0 shadow-sm border-start border-4 border-success mb-4">
|
||||
<div class="card-header bg-white py-3 d-flex justify-content-between align-items-center">
|
||||
<h5 class="card-title mb-0 text-success fw-bold">
|
||||
<i class="fas fa-list-ul me-2"></i><?= _("Liste des Secteurs d'Activité") ?>
|
||||
</h5>
|
||||
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div id="table-buttons"></div>
|
||||
|
||||
<span id="badge-total" class="badge rounded-pill bg-success px-3 py-2 shadow-sm" style="font-size: 0.85rem;">
|
||||
</span>
|
||||
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
|
||||
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
|
||||
<div class="d-flex align-items-center">
|
||||
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
|
||||
<i class="fas fa-briefcase me-2"></i><?= _("Liste des Secteurs d'Activité") ?>
|
||||
</h6>
|
||||
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
|
||||
0 <?= _("Lignes") ?>
|
||||
</span>
|
||||
</div>
|
||||
<div id="table-buttons" class="d-flex gap-2"></div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table id="tableLister" class="table table-hover align-middle">
|
||||
<thead class="bg-light-25 text-muted small fw-bold">
|
||||
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
|
||||
<thead class="bg-light text-muted small text-uppercase">
|
||||
<tr>
|
||||
<th class="text-center border-0" width="15%"><?= _("Centre") ?></th>
|
||||
<th class="text-center border-0" width="10%"><?= _("Code") ?></th>
|
||||
<th class="text-start border-0" width="60%"><?= _("Libellé") ?></th>
|
||||
<th class="text-center border-0" width="15%"><?= _("Action") ?></th>
|
||||
<th class="ps-4 border-0"><?= _("Centre") ?></th>
|
||||
<th class="border-0 text-center"><?= _("Code") ?></th>
|
||||
<th class="border-0"><?= _("Libellé Secteur") ?></th>
|
||||
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($secteuractivite as $v):
|
||||
$idData = $this->nettoyer($v['id']);
|
||||
<?php foreach ($secteuractivite as $v):
|
||||
$idData = $this->nettoyer($v['id']);
|
||||
$libelle = est_anglophone() ? $this->nettoyer($v['LibelleEng']) : $this->nettoyer($v['libelle']);
|
||||
?>
|
||||
<tr>
|
||||
<td class="text-center fw-bold text-muted small"><?= $this->nettoyer($v['codeSociete']); ?></td>
|
||||
<td class="text-center"><span class="badge bg-light text-dark border"><?= $this->nettoyer($v['codeSecteur']); ?></span></td>
|
||||
<td class="text-start"><?= $libelle; ?></td>
|
||||
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
|
||||
<td class="text-center">
|
||||
<button class="btn btn-outline-primary btn-sm px-3 fw-bold rounded-pill"
|
||||
type="button"
|
||||
onclick="formModifTableRef(<?= $idData; ?>);">
|
||||
<span class="badge bg-light text-dark border fw-bold"><?= $this->nettoyer($v['codeSecteur']) ?></span>
|
||||
</td>
|
||||
<td class="fw-bold text-dark"><?= $libelle ?></td>
|
||||
<td class="text-center pe-4">
|
||||
<button type="button"
|
||||
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
|
||||
onclick="formModifTableRef(<?= $idData ?>);">
|
||||
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
|
||||
</button>
|
||||
</td>
|
||||
|
|
@ -52,11 +48,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// On passe l'ID de la table et le nom souhaité pour le fichier exporté
|
||||
initDataTableReference('#tableLister', 'Secteurs_Activite_' + new Date().getFullYear());
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
/* On garde tes styles spécifiques pour assurer la même hauteur et le même rendu */
|
||||
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
||||
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
|
||||
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
|
||||
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user