This commit is contained in:
KONE SOREL 2026-04-11 14:06:34 +00:00
parent b6dbabd25b
commit fa1f1101dc
6 changed files with 36 additions and 6 deletions

View File

@ -1,3 +1,8 @@
<?php
$nbreTotal = count($localite);
$nbreAffiche = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-light py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
@ -5,7 +10,7 @@
<i class="fas fa-map-marker-alt me-2"></i><?= _("Référentiel des Localités") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
<?= $nbreAffiche ?> <?= $nbreTotal > "1" ? _("lignes") : _("ligne") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>

View File

@ -1,3 +1,8 @@
<?php
$nbreTotal = count($pays);
$nbreAffiche = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-light py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
@ -5,7 +10,7 @@
<i class="fas fa-table me-2"></i><?= _("Référentiel des Pays") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
<?= $nbreAffiche ?> <?= $nbreTotal > "1" ? _("lignes") : _("ligne") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>

View File

@ -1,3 +1,8 @@
<?php
$nbreTotal = count($secteuractivite);
$nbreAffiche = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-light py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
@ -5,7 +10,7 @@
<i class="fas fa-briefcase me-2"></i><?= _("Référentiel 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") ?>
<?= $nbreAffiche ?> <?= $nbreTotal > "1" ? _("lignes") : _("ligne") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>

View File

@ -1,3 +1,8 @@
<?php
$nbreTotal = count($service);
$nbreAffiche = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-light py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
@ -5,7 +10,7 @@
<i class="fas fa-concierge-bell me-2"></i><?= _("Référentiel des Services") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
<?= $nbreAffiche ?> <?= $nbreTotal > "1" ? _("lignes") : _("ligne") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>

View File

@ -1,3 +1,8 @@
<?php
$nbreTotal = count($titre);
$nbreAffiche = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-light py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
@ -5,7 +10,7 @@
<i class="fas fa-user-tag me-2"></i><?= _("Référentiel des Titres / Civilités") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
<?= $nbreAffiche ?> <?= $nbreTotal > "1" ? _("lignes") : _("ligne") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>

View File

@ -1,3 +1,8 @@
<?php
$nbreTotal = count($ville);
$nbreAffiche = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-light py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
@ -5,7 +10,7 @@
<i class="fas fa-city me-2"></i><?= _("Référentiel des Territoires") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
<?= $nbreAffiche ?> <?= $nbreTotal > "1" ? _("lignes") : _("ligne") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>