This commit is contained in:
KONE SOREL 2026-03-24 17:14:13 +00:00
parent cdfe19c1b0
commit a96b884ba0
3 changed files with 69 additions and 56 deletions

View File

@ -72,16 +72,15 @@ class Ged extends Modele {
public function getgedadherent($d1, $d2, $nomOrigine, $codeNaturePiece) public function getgedadherent($d1, $d2, $nomOrigine, $codeNaturePiece)
{ {
$idAdherent = $_SESSION['idAdherent_C']; $idAdherent = $_SESSION['idAdherent_C'];
$lang = $_SESSION['lang'];
$codeNaturePiece = contruireParamLike($codeNaturePiece); $codeNaturePiece = contruireParamLike($codeNaturePiece);
$sql = 'call sp_get_ged_adherent_rh(?, ?, ?, ?, ?);'; $sql = 'call sp_get_ged_adherent_rh(?, ?, ?, ?, ?, ?);';
//var_dump(array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece)); die(); //var_dump(array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece)); die();
$resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece, $lang));
$resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece));
return $resultat->fetchAll(PDO::FETCH_ASSOC); return $resultat->fetchAll(PDO::FETCH_ASSOC);
} }

View File

@ -1,50 +1,54 @@
<div id="div_ged" class="card border-0 shadow-sm"> <div class="table-responsive">
<?php if((isset($msgErreur)) && ($msgErreur > " ")) : ?> <table id="table_ged_famille" class="table table-hover align-middle mb-0" style="font-size:8.5pt; width:100%;">
<div class="alert alert-danger m-3 border-0 shadow-xs"><?= $msgErreur ?></div> <thead class="table-dark text-nowrap">
<?php endif; ?> <tr>
<th class="text-center">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>
</tr>
</thead>
<tbody>
<?php foreach ($geds as $ged):
$idGed = $this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
<div class="table-responsive"> if($ged['codeNaturePiece'] == "AUT")
<table id="table_ged_famille" class="table table-hover align-middle mb-0" style="font-size:8.5pt; width:100%;"> {
<thead class="table-dark text-nowrap"> $libelleType = $this->nettoyer($ged['libelleAutre']);
<tr> } else
<th class="text-center">Date</th> {
<th class="text-center">Src</th> $libelleType = $this->nettoyer($ged['libelleType']);
<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>
</tr>
</thead>
<tbody>
<?php foreach ($geds as $ged):
$idGed = $this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
?>
<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"><?= $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"><?= $this->nettoyer($ged['adherent']) ?></div>
</td>
<td class="small"><?= $this->nettoyer($ged['libelleDocument']) ?></td>
<td class="small text-truncate" style="max-width: 200px;" title="<?= $this->nettoyer($ged['nomOrigine']) ?>"> ?>
<i class="far fa-file-alt me-1 text-secondary"></i> <?= $this->nettoyer($ged['nomOrigine']) ?> <tr class="text-nowrap">
</td> <td class="text-center small text-muted"><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
<td class="text-center"> <td class="text-center"><span class="badge bg-light text-dark border small fw-normal"><?= $this->nettoyer($ged['source']) ?></span></td>
<a class="btn btn-xs btn-outline-danger shadow-sm fw-bold px-3" href="<?= $cheminFichier ?>" target="_blank"> <td>
<i class="fas fa-download me-1"></i> <?= _("Télécharger") ?> <div class="fw-bold"><?= $this->nettoyer($ged['souscripteur']) ?></div>
</a> <div class="small text-primary"> <?= $this->nettoyer($ged['numeroPolice']) ?></div>
</td> </td>
</tr> <td>
<?php endforeach; ?> <div class="fw-bold"><?= $this->nettoyer($ged['beneficiaire']) ?></div>
</tbody> <div class="small text-muted italic"><?= $this->nettoyer($ged['adherent']) ?></div>
</table> </td>
</div>
<td class="small"><?= $libelleType; ?></td>
<td class="small text-truncate" style="max-width: 200px;" title="<?= $this->nettoyer($ged['nomOrigine']) ?>">
<i class="far fa-file-alt me-1 text-secondary"></i> <?= $this->nettoyer($ged['nomOrigine']) ?>
</td>
<td class="text-center">
<a class="btn btn-xs btn-outline-danger shadow-sm fw-bold px-3" href="<?= $cheminFichier ?>" target="_blank">
<i class="fas fa-download me-1"></i> <?= _("Télécharger") ?>
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div> </div>

View File

@ -91,7 +91,7 @@
<th class="text-center">Date</th> <th class="text-center">Date</th>
<th class="text-center">Src</th> <th class="text-center">Src</th>
<th><?= _("Souscripteur / Police") ?></th> <th><?= _("Souscripteur / Police") ?></th>
<th><?= _("Bénéficiaire (Adhérent)") ?></th> <th><?= _("Bénéficiaire / Adhérent") ?></th>
<th><?= _("Type du Document") ?></th> <th><?= _("Type du Document") ?></th>
<th><?= _("Nom du Document") ?></th> <th><?= _("Nom du Document") ?></th>
<th class="text-center no-export"><?= _("Action") ?></th> <th class="text-center no-export"><?= _("Action") ?></th>
@ -99,8 +99,17 @@
</thead> </thead>
<tbody> <tbody>
<?php foreach ($geds as $ged): <?php foreach ($geds as $ged):
$idGed = $this->nettoyer($ged['idGed']); $idGed = $this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']); $cheminFichier = $this->nettoyer($ged['cheminFichier']);
if($ged['codeNaturePiece'] == "AUT")
{
$libelleType = $this->nettoyer($ged['libelleAutre']);
} else
{
$libelleType = $this->nettoyer($ged['libelleType']);
}
?> ?>
<tr class="text-nowrap"> <tr class="text-nowrap">
<td class="text-center small text-muted"><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td> <td class="text-center small text-muted"><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
@ -113,7 +122,8 @@
<div class="fw-bold"><?= $this->nettoyer($ged['beneficiaire']) ?></div> <div class="fw-bold"><?= $this->nettoyer($ged['beneficiaire']) ?></div>
<div class="small text-muted italic"><?= $this->nettoyer($ged['adherent']) ?></div> <div class="small text-muted italic"><?= $this->nettoyer($ged['adherent']) ?></div>
</td> </td>
<td class="small"><?= $this->nettoyer($ged['libelleDocument']) ?></td>
<td class="small"><?= $libelleType; ?></td>
<td class="small text-truncate" style="max-width: 200px;" title="<?= $this->nettoyer($ged['nomOrigine']) ?>"> <td class="small text-truncate" style="max-width: 200px;" title="<?= $this->nettoyer($ged['nomOrigine']) ?>">
<i class="far fa-file-alt me-1 text-secondary"></i> <?= $this->nettoyer($ged['nomOrigine']) ?> <i class="far fa-file-alt me-1 text-secondary"></i> <?= $this->nettoyer($ged['nomOrigine']) ?>