This commit is contained in:
KONE SOREL 2026-04-30 13:09:18 +00:00
parent c1f003a3df
commit 2db7ae0436
3 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Fraisfuneraire.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurFraisfunerairesrh extends Controleur {
private $menuvue;
private $frais;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Fraisfunerairesrh');
$this->frais = new Fraisfuneraire();
}
public function index() {
$reponsedemande = $this->frais->getEtatFrais();
$this->genererVue(array(
'reponsedemande' => $reponsedemande
));
}
}

View File

@ -88,4 +88,17 @@ class Fraisfuneraire extends Modele {
$this->executerRequete($sql, array($idFraisfuneraire, $user)); $this->executerRequete($sql, array($idFraisfuneraire, $user));
} }
public function getEtatFrais()
{
if (est_anglophone()){
$sql = 'call sp_a_get_etat_remboursement_eng()';
}else{
$sql = 'call sp_a_get_etat_remboursement()';
}
$resultat = $this->executerRequete($sql);
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
} }

View File

@ -0,0 +1,80 @@
<?php $this->titre = "Intersanté - Demandes des frais funéraires RH"; ?>
<div class="container-fluid" style="padding-top: 15px;">
<!-- En-tête de page -->
<div class="page-header" style="margin-top: 0; border-bottom: 2px solid #337ab7; padding-bottom: 10px; margin-bottom: 20px;">
<h1 style="margin: 0; color: #337ab7; font-weight: bold; font-size: 24px;">
<span class="glyphicon glyphicon-file" style="margin-right: 10px;"></span>
<?= _("Demandes des frais funéraires RH") ?>
</h1>
</div>
<!-- Zone de filtrage (Panel Bootstrap 3) -->
<div class="panel panel-default" style="border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: none;">
<div class="panel-body" style="background-color: #fff; padding: 20px;">
<div class="row">
<!-- Période -->
<div class="col-md-5">
<label class="control-label" style="font-size: 11px; text-transform: uppercase; color: #777; margin-bottom: 8px; display: block;">
<span class="glyphicon glyphicon-calendar" style="color: #337ab7; margin-right: 5px;"></span> <?= _("Période de recherche") ?>
</label>
<div class="input-group">
<span class="input-group-addon" style="font-size: 11px; font-weight: bold;"><?= _("Du") ?></span>
<input type="text" id="debut" name="debut" class="form-control datepicker text-center" style="font-weight: bold;" value="<?= dateLang($_SESSION['dUneSemaineAvant_C'], $_SESSION['lang']) ?>" required>
<span class="input-group-addon" style="font-size: 11px; font-weight: bold;"><?= _("au") ?></span>
<input type="text" id="fin" name="fin" class="form-control datepicker text-center" style="font-weight: bold;" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required>
</div>
</div>
<!-- Statut -->
<div class="col-md-3">
<label class="control-label" style="font-size: 11px; text-transform: uppercase; color: #777; margin-bottom: 8px; display: block;">
<span class="glyphicon glyphicon-filter" style="color: #337ab7; margin-right: 5px;"></span> <?= _("Statut Validation") ?>
</label>
<select class="form-control" id="valide" name="valide" style="font-weight: bold;">
<?php liste_options_consultation($reponsedemande, ""); ?>
</select>
</div>
<!-- Action -->
<div class="col-md-4" style="margin-top: 25px;">
<button type="button" class="btn btn-primary btn-block" style="font-weight: bold; padding: 8px 0; text-transform: uppercase;" onclick="liste_frais_funeraires_assures_client();">
<span class="glyphicon glyphicon-search" style="margin-right: 8px;"></span><?= _("Actualiser") ?>
</button>
</div>
</div>
</div>
</div>
<!-- Zone d'affichage des résultats -->
<div id="div_frais" class="well" style="min-height: 450px; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); padding: 40px;">
<div style="text-align: center; padding-top: 60px;">
<div style="color: #ccc; margin-bottom: 20px;">
<span class="glyphicon glyphicon-folder-open" style="font-size: 80px;"></span>
</div>
<h3 style="color: #777; font-weight: bold;"><?= _("Prêt pour la recherche") ?></h3>
<p class="text-muted" style="max-width: 400px; margin: 0 auto; font-size: 13px;">
<?= _("Sélectionnez vos critères et cliquez sur actualiser pour afficher les demandes de frais funéraires.") ?>
</p>
</div>
</div>
</div>
<style>
/* Correction pour l'apparence des inputs en BS3 */
.datepicker { cursor: pointer !important; background-color: #fff !important; }
.form-control { border-color: #ccc; }
.form-control:focus { border-color: #337ab7; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(51, 122, 183, 0.6); }
/* Animation simple */
#div_liste_adherent {
animation: fadeIn 0.4s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>