radiantproduction/Vue/Ajaxgedassuremvt/index.php
2026-03-31 14:50:34 +00:00

100 lines
5.6 KiB
PHP

<div class="modal-dialog modal-lg" role="document">
<div class="modal-content" style="border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,.5);">
<div class="modal-header" style="background-color: #f5f5f5; border-bottom: 1px solid #ddd; border-top-left-radius: 6px; border-top-right-radius: 6px;">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" style="font-weight: bold; color: #337ab7;">
<span class="glyphicon glyphicon-ok-sign" style="margin-right: 8px;"></span><?= _('Consulter GED Assuré') ?>
</h4>
</div>
<div class="modal-body" style="padding: 20px;">
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered" style="font-size: 12px; vertical-align: middle;">
<thead>
<tr >
<th class="text-center" style="padding: 10px;"><?= _("Date") ?></th>
<th class="text-center"><?= _("Src") ?></th>
<th><?= _("Souscripteur / Police") ?></th>
<th><?= _("Bénéficiaire / Adhérent") ?></th>
<th><?= _("Type du Document") ?></th>
<th><?= _("Nom du Document") ?></th>
<th class="text-center"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($geds as $ged):
$idGed = $this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
if($ged['codeNaturePiece'] == "AUT") {
$libelleType = $this->nettoyer($ged['libelleAutre']);
} else {
$libelleType = $this->nettoyer($ged['libelleType']);
}
?>
<tr>
<td class="text-center" style="vertical-align: middle; color: #777;">
<?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?>
</td>
<td class="text-center" style="vertical-align: middle;">
<span class="label label-default" style="font-weight: normal; background-color: #eee; color: #333; border: 1px solid #ccc;">
<?= $this->nettoyer($ged['source']) ?>
</span>
</td>
<td style="vertical-align: middle;">
<div style="font-weight: bold; color: #333;"><?= $this->nettoyer($ged['souscripteur']) ?></div>
<div class="text-primary" style="font-size: 10px;">N° <?= $this->nettoyer($ged['numeroPolice']) ?></div>
</td>
<td style="vertical-align: middle;">
<div style="font-weight: bold;"><?= $this->nettoyer($ged['beneficiaire']) ?></div>
<div style="color: #777; font-style: italic; font-size: 10px;">
<?= $this->nettoyer($ged['adherent']) ?> (<?= $this->nettoyer($ged['numeroBeneficiaire']) ?>)
</div>
</td>
<td style="vertical-align: middle; text-transform: uppercase;"><?= $libelleType; ?></td>
<td style="vertical-align: middle;">
<span class="glyphicon glyphicon-file" style="color: #a94442; margin-right: 5px;"></span>
<span style="display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;" title="<?= $this->nettoyer($ged['nomOrigine']) ?>">
<?= $this->nettoyer($ged['nomOrigine']) ?>
</span>
</td>
<td class="text-center" style="vertical-align: middle;">
<a href="<?= $cheminFichier ?>" target="_blank" class="btn btn-danger btn-xs" style="font-weight: bold; font-size: 10px; border-radius: 3px;">
<span class="glyphicon glyphicon-download-alt" style="margin-right: 5px;"></span><?= _("TELECHARGER") ?>
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div class="modal-footer" style="background-color: #f5f5f5; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;">
<button type="button" class="btn btn-default" data-dismiss="modal" style="font-weight: bold;"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
<style>
/* Correction pour l'alignement vertical des cellules */
.table > tbody > tr > td {
vertical-align: middle !important;
}
/* Animation FadeIn pour la modale */
.modal-content {
animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
</style>