dfr
This commit is contained in:
parent
eb506e8db3
commit
2a200d3c97
32
Controleur/ControleurDemandesfraisfuneraires.php
Normal file
32
Controleur/ControleurDemandesfraisfuneraires.php
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
<?php
|
||||||
|
require_once 'Framework/Controleur.php';
|
||||||
|
require_once 'Modele/Fraisfuneraire.php';
|
||||||
|
require_once 'Modele/Menuvueutilisateur.php';
|
||||||
|
require_once 'Modele/Police.php';
|
||||||
|
|
||||||
|
class ControleurDemandesfraisfuneraires extends Controleur {
|
||||||
|
private $menuvue;
|
||||||
|
private $frais;
|
||||||
|
private $police;
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
$this->menuvue = new Menuvueutilisateur();
|
||||||
|
$this->menuvue->getMenuVue('Demandesfraisfuneraires');
|
||||||
|
|
||||||
|
$this->frais = new Fraisfuneraire();
|
||||||
|
$this->police = new Police();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index() {
|
||||||
|
|
||||||
|
$polices = $this->police->getPoliceRh();
|
||||||
|
|
||||||
|
$reponsedemande = $this->frais->getEtatFrais();
|
||||||
|
|
||||||
|
$this->genererVue(array(
|
||||||
|
'polices' => $polices,
|
||||||
|
'reponsedemande' => $reponsedemande
|
||||||
|
));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -86,4 +86,26 @@ class Fraisfuneraire extends Modele {
|
||||||
$sql = 'call sp_r_demander_reglement_fraisfuneraire(?, ?)';
|
$sql = 'call sp_r_demander_reglement_fraisfuneraire(?, ?)';
|
||||||
$this->executerRequete($sql, array($idFraisfuneraire, $user));
|
$this->executerRequete($sql, array($idFraisfuneraire, $user));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getfraisfunerairePolice($idPolice)
|
||||||
|
{
|
||||||
|
$sql = 'call sp_r_get_fraisfuneraire(?)';
|
||||||
|
|
||||||
|
$resultat = $this->executerRequete($sql, array($idPolice));
|
||||||
|
|
||||||
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
||||||
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
78
Vue/Fraisfuneraire/index.php
Normal file
78
Vue/Fraisfuneraire/index.php
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?php $this->titre = "Intersanté - Demandes des frais funéraires"; ?>
|
||||||
|
|
||||||
|
<div id="div_liste_adherent" class="container-fluid py-3 animate__animated animate__fadeIn">
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||||
|
<h1 class="text-primary fw-bold mb-0">
|
||||||
|
<i class="fas fa-file-invoice me-2"></i><?= _("Demandes des frais funéraires") ?>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card border-0 shadow-sm mb-4" style="border-radius: 15px; overflow: hidden;">
|
||||||
|
<div class="card-body bg-white p-4">
|
||||||
|
<div class="row g-3 align-items-end">
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label class="form-label small fw-bold text-muted text-uppercase mb-2">
|
||||||
|
<i class="fa-solid fa-file-contract text-primary me-1"></i> <?= _("Police d'Assurance") ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-select fw-bold border-secondary-subtle" id="idPolice" name="idPolice" required>
|
||||||
|
<?php liste_options($polices, "", false); ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted text-uppercase mb-2">
|
||||||
|
<i class="fa-solid fa-calendar-range text-primary me-1"></i> <?= _("Période de recherche") ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-light small fw-bold"><?= _("Du") ?></span>
|
||||||
|
<input type="text" id="debut" name="debut" class="form-control datepicker text-center fw-bold" value="<?= dateLang($_SESSION['dUneSemaineAvant_C'], $_SESSION['lang']) ?>" required>
|
||||||
|
<span class="input-group-text bg-light small fw-bold"><?= _("au") ?></span>
|
||||||
|
<input type="text" id="fin" name="fin" class="form-control datepicker text-center fw-bold" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label class="form-label small fw-bold text-muted text-uppercase mb-2">
|
||||||
|
<i class="fa-solid fa-filter text-primary me-1"></i> <?= _("Statut Validation") ?>
|
||||||
|
</label>
|
||||||
|
<select class="form-select fw-bold border-secondary-subtle" id="valide" name="valide">
|
||||||
|
<?php liste_options_consultation($reponsedemande, ""); ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-12 mt-4">
|
||||||
|
<button type="button" class="btn btn-primary w-100 fw-bold shadow-sm py-2" onclick="liste_mouvemements_assures_client();">
|
||||||
|
<i class="fa-solid fa-magnifying-glass me-2"></i><?= _("Actualiser la liste des demandes") ?>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="div_mvt" class="min-vh-50 bg-white rounded shadow-sm border p-4">
|
||||||
|
<div class="text-center py-5">
|
||||||
|
<div class="opacity-25 mb-3">
|
||||||
|
<i class="fa-solid fa-box-open fa-5x text-secondary"></i>
|
||||||
|
</div>
|
||||||
|
<h5 class="text-secondary fw-bold"><?= _("Prêt pour la recherche") ?></h5>
|
||||||
|
<p class="text-muted small mx-auto" style="max-width: 400px;">
|
||||||
|
<?= _("Sélectionnez vos critères et cliquez sur actualiser pour afficher les demandes de frais funéraires.") ?>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.min-vh-50 { min-height: 450px; }
|
||||||
|
.form-label { font-size: 0.7rem; letter-spacing: 0.8px; }
|
||||||
|
.datepicker { cursor: pointer !important; background-color: #fff !important; }
|
||||||
|
.input-group-text { border-color: #dee2e6; }
|
||||||
|
.form-select, .form-control { border-color: #dee2e6; transition: all 0.2s; }
|
||||||
|
.form-select:focus, .form-control:focus { border-color: #0d6efd; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1); }
|
||||||
|
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
|
||||||
|
</style>
|
||||||
Loading…
Reference in New Issue
Block a user