Collegepolice suite

This commit is contained in:
KONE SOREL 2025-12-29 22:12:46 +00:00
parent a194cccabf
commit 05d960fb69
2 changed files with 4 additions and 28 deletions

View File

@ -1,6 +1,5 @@
<?php
$this->titre = "INTER-SANTE - Collèges de la police";
$superUser = $_SESSION['superUser'];
?>
<div id="div_colleges_police" class="container-fluid py-4 animate__animated animate__fadeIn">
@ -20,9 +19,9 @@
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 custom-college-table">
<thead>
<div class="table-responsive shadow-sm rounded mb-4">
<table class="table table-hover align-middle bg-white mb-0" style="font-size: 0.85rem;">
<thead class="table-dark">
<tr>
<th class="text-center"><?= _("Cat") ?></th>
<th><?= _("Désignation du Collège") ?></th>
@ -37,7 +36,6 @@
<th class="text-end"><?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?></th>
<th class="text-end"><?= (isset($_SESSION['composanteprime']['Cartes'])) ? _($_SESSION['composanteprime']['Cartes']) : _("Cartes") ?></th>
<th class="text-end border-start text-primary fw-bold"><?= _("TTC Total") ?></th>
<th class="text-center" width="140px"><?= _("Actions") ?></th>
</tr>
</thead>
@ -68,31 +66,11 @@
<?= format_N($this->nettoyer($college['primeTtcTotal'])) ?>
</button>
</td>
<td class="text-center">
<div class="btn-group btn-group-sm">
<?php if($isArchived): ?>
<?php if ($superUser=="1"): ?>
<button type="button" class="btn btn-outline-warning" title="<?= _("Désarchiver") ?>" onClick="javascript:de_archiver_garantie_college('<?= $idCollege ?>');">
<i class="fas fa-box-open"></i>
</button>
<?php endif; ?>
<span class="badge bg-light text-muted p-2 border"><i class="fas fa-archive me-1"></i>Arc.</span>
<?php else: ?>
<button type="button" class="btn btn-outline-info" title="<?= _("Archiver") ?>" onClick="javascript:archiver_garantie_college('<?= $idCollege ?>');">
<i class="fas fa-archive"></i>
</button>
<button type="button" class="btn btn-outline-danger" title="<?= _("Supprimer") ?>" onClick="javascript:supprimer_college('<?= $idCollege ?>');">
<i class="fas fa-trash-alt"></i>
</button>
<?php endif; ?>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot class="table-dark">
<tfoot>
<tr class="fw-bold">
<td colspan="2" class="text-end text-uppercase small"><?= _("Totaux") ?></td>
<td class="text-center border-start"><?= format_N($this->nettoyer($totalcollege['nbAdherent'])) ?></td>

View File

@ -211,8 +211,6 @@
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>