df
This commit is contained in:
parent
dc1f9b46aa
commit
e56b156cf1
|
|
@ -225,6 +225,8 @@ class ControleurFichebeneficiaire extends Controleur
|
||||||
// Encodage JSON
|
// Encodage JSON
|
||||||
$dataConsoParMois = json_encode($tabConsoParMois, JSON_NUMERIC_CHECK);
|
$dataConsoParMois = json_encode($tabConsoParMois, JSON_NUMERIC_CHECK);
|
||||||
$dataConsoParGaranties = json_encode($tabConsoParGaranties, JSON_NUMERIC_CHECK);
|
$dataConsoParGaranties = json_encode($tabConsoParGaranties, JSON_NUMERIC_CHECK);
|
||||||
|
|
||||||
|
$nombreGed = $this->beneficiaire->getNombreGedBeneficiaire($idBeneficiaire);
|
||||||
|
|
||||||
$this->genererVue(array(
|
$this->genererVue(array(
|
||||||
'beneficiaire' => $beneficiaire,
|
'beneficiaire' => $beneficiaire,
|
||||||
|
|
@ -234,7 +236,8 @@ class ControleurFichebeneficiaire extends Controleur
|
||||||
'limite_beneficiaire' => $limite_beneficiaire,
|
'limite_beneficiaire' => $limite_beneficiaire,
|
||||||
'limite_adherent' => $limite_adherent,
|
'limite_adherent' => $limite_adherent,
|
||||||
'dataConsoParMois' => $dataConsoParMois,
|
'dataConsoParMois' => $dataConsoParMois,
|
||||||
'dataConsoParGaranties' => $dataConsoParGaranties
|
'dataConsoParGaranties' => $dataConsoParGaranties,
|
||||||
|
'nombreGed' => $nombreGed
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1658,4 +1658,15 @@ class Beneficiaire extends Modele {
|
||||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getNombreGedBeneficiaire($idBeneficiaire)
|
||||||
|
{
|
||||||
|
$source = 'S';
|
||||||
|
|
||||||
|
$sql = 'SELECT fn_nombre_ged_beneficiaire(?, ?) as nombreGed;';
|
||||||
|
|
||||||
|
$resultat = $this->executerRequete($sql, array($idBeneficiaire, $source));
|
||||||
|
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
return $ligne['nombreGed'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -96,6 +96,45 @@
|
||||||
</h4>
|
</h4>
|
||||||
<small class="text-muted"><?= _("Date Effet") ?> : <?= dateLang($this->nettoyer($beneficiaire['dateEffet']), $_SESSION['lang']) ?></small>
|
<small class="text-muted"><?= _("Date Effet") ?> : <?= dateLang($this->nettoyer($beneficiaire['dateEffet']), $_SESSION['lang']) ?></small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<?php if($nombreGed > 0): ?>
|
||||||
|
<div class="alert alert-success d-flex align-items-center shadow-sm border-0 py-3" style="border-radius: 10px;">
|
||||||
|
<i class="fas fa-check-double fa-2x me-3"></i>
|
||||||
|
<div class="flex-grow-1">
|
||||||
|
<h6 class="mb-1 fw-bold fs-5">
|
||||||
|
<?= est_anglophone() ? 'Identity Documents Verified' : 'Documents d’identité vérifiés'; ?>
|
||||||
|
</h6>
|
||||||
|
<span class="small d-block opacity-75" style="font-size: 10.5pt;">
|
||||||
|
<?= est_anglophone()
|
||||||
|
? 'The member’s digital folder is up to date (ID card, Passport, Birth certificate...).'
|
||||||
|
: 'Le dossier numérique de l’adhérent est à jour (CNI, Passeport, Acte de naissance...).'; ?>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<a href="Gedbeneficiaireprod/" class="btn btn-success btn-sm fw-bold ms-3 px-3">
|
||||||
|
<i class="fas fa-folder-open me-2"></i><?= _("Consulter la GED") ?>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php else: ?>
|
||||||
|
<div class="alert alert-danger d-flex align-items-center shadow-sm border-0 py-3 animate__animated animate__pulse animate__infinite" style="border-radius: 10px;">
|
||||||
|
<i class="fas fa-exclamation-triangle fa-2x me-3"></i>
|
||||||
|
<div class="flex-grow-1">
|
||||||
|
<h6 class="mb-1 fw-bold fs-5">
|
||||||
|
<?= est_anglophone() ? 'Missing Documents' : 'Documents manquants'; ?>
|
||||||
|
</h6>
|
||||||
|
<span class="small d-block fw-bold" style="font-size: 10.5pt;">
|
||||||
|
<?= est_anglophone()
|
||||||
|
? 'Action required: Please upload the identity documents to complete this member’s file.'
|
||||||
|
: 'Action requise : Veuillez joindre les pièces justificatives pour finaliser ce dossier.'; ?>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<a href="Gedbeneficiaireprod/" class="btn btn-danger btn-sm fw-bold ms-3 px-3 shadow-sm">
|
||||||
|
<i class="fas fa-upload me-2"></i><?= _("Ouvrir la GED") ?>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="text-end">
|
<div class="text-end">
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user