This commit is contained in:
KONE SOREL 2026-03-31 14:34:17 +00:00
parent df92246c8e
commit 42d2677af5
4 changed files with 70 additions and 48 deletions

View File

@ -12,7 +12,7 @@ class ControleurAjaxgedassuremvt extends Controleur {
public function index() {
$idBeneficiaire = $this->requete->getParametreFormulaire("idBeneficiaire");
$geds = $this->ged->getgedassuremvt($idBeneficiaire);
$geds = $this->ged->getgedassuremvt($idBeneficiaire);
$this->genererVueAjax(array('geds' => $geds));

View File

@ -43565,7 +43565,7 @@ function select_tous_carte_a_editer(p_choix)
data: donnees,
success: function(data) {
$('#div_liste_carte').html(data);
appliquerDataTable();
},
error: function(data) {
},
@ -43589,7 +43589,7 @@ function select_un_assure_a_editer(p_choix, id)
data: donnees,
success: function(data) {
//$('#div_liste_carte').html(data);
//appliquerDataTable();
//
},
error: function(data) {
},
@ -43658,7 +43658,7 @@ function tester_edition_carteassure()
v_msg="Liste vide!";
v_msgEng="Empty list!";
alert_ebene(v_msg, v_msgEng);
appliquerDataTable();
return false;
}
else
@ -44743,7 +44743,7 @@ function consulter_ged_assure_mvt(idBeneficiaire){
//alert("Success : "+data);
$("#div_patienter").html('');
$('#div_ged').html(data);
//appliquerDataTable();
//
$('#div_ged').modal("show");
},
complete: function() {

View File

@ -1,25 +1,28 @@
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content shadow-lg border-0">
<div class="modal-header bg-light border-bottom">
<h5 class="modal-title fw-bold text-primary">
<i class="fas fa-check-circle me-2"></i><?= _('Consulter GED Assuré') ?>
</h5>
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<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 p-4">
<div class="modal-body" style="padding: 20px;">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0" style="font-size:8.5pt;">
<thead class="table-dark text-nowrap">
<tr>
<th class="text-center px-3">Date</th>
<th class="text-center">Src</th>
<table class="table table-hover table-striped" style="font-size: 11px; margin-bottom: 0;">
<thead>
<tr style="background-color: #333; color: #fff;">
<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 no-export"><?= _("Action") ?></th>
<th class="text-center"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
@ -27,41 +30,43 @@
$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']);
if($ged['codeNaturePiece'] == "AUT") {
$libelleType = $this->nettoyer($ged['libelleAutre']);
} else {
$libelleType = $this->nettoyer($ged['libelleType']);
}
?>
<tr class="text-nowrap">
<td class="text-center small text-muted"><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border small fw-normal"><?= $this->nettoyer($ged['source']) ?></span>
</td>
<td>
<div class="fw-bold text-dark"><?= $this->nettoyer($ged['souscripteur']) ?></div>
<div class="small text-primary"> <?= $this->nettoyer($ged['numeroPolice']) ?></div>
</td>
<td>
<div class="fw-bold"><?= $this->nettoyer($ged['beneficiaire']) ?></div>
<div class="small text-muted italic">
<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;"> <?= $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 class="small text-uppercase"><?= $libelleType; ?></td>
<td style="vertical-align: middle; text-transform: uppercase;"><?= $libelleType; ?></td>
<td class="small">
<i class="far fa-file-pdf text-danger me-1"></i>
<span class="text-truncate d-inline-block" style="max-width: 180px;" title="<?= $this->nettoyer($ged['nomOrigine']) ?>">
<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">
<a href="<?= $cheminFichier ?>" target="_blank" class="btn btn-xs btn-outline-danger shadow-sm px-3 fw-bold border-2" style="font-size:9pt;">
<i class="fas fa-download me-1"></i><?= _("TELECHARGER") ?>
</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>
@ -71,8 +76,25 @@
</div>
</div>
<div class="modal-footer bg-light">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<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>
</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>

View File

@ -263,7 +263,7 @@ controlerPlafondBeneficiaire : <?= $_SESSION['controlerPlafondBeneficiaire'] ?>
<script src="Js/datepicker-fr.js"></script>
<?php endif; ?>
<script src="Js/fonctions.js?ver=2026.03.09.18"></script>
<script src="Js/fonctions.js?ver=2026.03.09.19"></script>
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>" > </script>