assure/Vue/Ajaxlisteged/index.php
2025-12-05 09:34:39 +00:00

87 lines
3.2 KiB
PHP
Executable File

<div class="card shadow-sm">
<div class="card-header bg-light py-3 d-flex justify-content-between align-items-center">
<h5 class="mb-2 text-dark"><i class="fas fa-list me-2"></i><?= _("Documents GED") ?></h5>
<span class="badge bg-secondary" id="counter"><?= count($geds) ?> <?= _("document(s)") ?></span>
</div>
<div class="card-body p-0">
<?php if((isset($msgErreur)) && ($msgErreur>" ")) : ?>
<div class="alert alert-danger m-3" role="alert">
<i class="fas fa-exclamation-circle me-2"></i>
<?= $msgErreur ?>
</div>
<?php endif; ?>
<div class="table-responsive">
<table class="table table-striped table-hover mb-0" style="font-size:9pt; white-space: nowrap;">
<thead class="table-dark">
<tr>
<th class="text-center">Date</th>
<th class="text-center d-none d-sm-table-cell">Src</th>
<th class="d-none d-lg-table-cell"><?= _("Souscripteur") ?></th>
<th class="text-center d-none d-xl-table-cell"><?= _("Police") ?></th>
<th class="d-none d-xl-table-cell"><?= _("Adhérent") ?></th>
<th class="text-center"><?= _("Bénéficiaire") ?></th>
<th>Document</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php if (count($geds) > 0): ?>
<?php foreach ($geds as $ged):
$idGed = $this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
$nomFichier = $this->nettoyer($ged['nomOrigine']);
?>
<tr>
<td class="text-center" style="min-width: 120px;">
<?= dateheureFr($this->nettoyer($ged['dateSysteme'])) ?>
</td>
<td class="text-center d-none d-sm-table-cell">
<?= $this->nettoyer($ged['source']) ?>
</td>
<td class="d-none d-lg-table-cell">
<?= $this->nettoyer($ged['souscripteur']) ?>
</td>
<td class="text-center d-none d-xl-table-cell">
<?= $this->nettoyer($ged['numeroPolice']) ?>
</td>
<td class="d-none d-xl-table-cell">
<?= $this->nettoyer($ged['adherent']) ?>
</td>
<td class="text-center" data-bs-toggle="tooltip"
title="<?= $this->nettoyer($ged['beneficiaire']) ?>">
<?= $this->nettoyer($ged['numeroBeneficiaire']) ?>
</td>
<td class="text-truncate" style="max-width: 200px;"
data-bs-toggle="tooltip" title="<?= $nomFichier ?>">
<?= $nomFichier ?>
</td>
<td class="text-center">
<a href="<?= $cheminFichier ?>" target="_blank"
class="btn btn-sm btn-outline-primary"
title="Télécharger le document">
<i class="fas fa-download me-1 d-none d-sm-inline"></i>
DL
</a>
</td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="8" class="text-center p-4 text-muted">
<div class="alert alert-info mt-3" style="margin-bottom:15px;">
<small>
<i class="fas fa-info-circle me-2"></i>
<?= _("Aucun document trouvé pour les critères sélectionnés") ?>
</small>
</div>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>