This commit is contained in:
KONE SOREL 2026-04-10 19:20:24 +00:00
parent 55b5e8a153
commit 19bf1d7a43
3 changed files with 16 additions and 24 deletions

View File

@ -2,22 +2,22 @@
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Baremeaccessoiregarant.php';
require_once 'Modele/Gestionconfiee.php';
class ControleurBaremeaccessoiregarant extends Controleur {
private $menuvue;
private $bareme;
private $garant;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Baremeaccessoiregarant");
$this->bareme = new Baremeaccessoiregarant();
$this->bareme = new Baremeaccessoiregarant();
$this->garant = (new Gestionconfiee())->getListe();
}
public function index() {
$garant = $this->bareme->getgarant();
$chemin = $this->menuvue->getChemin('Baremeaccessoiregarant');
$this->genererVue(array('garant' => $garant, 'chemin' => $chemin, 'chemin' => $chemin));
$this->genererVue(array('garant' => $this->garant));
}
}

View File

@ -30,8 +30,6 @@ class ControleurProduits extends Controleur {
$produits = $this->produit->getTousProduitsGarant($codeGcAssureur);
$this->genererVue(array('produits' => $produits, 'garant' => $this->garant));
}
}

View File

@ -16,27 +16,21 @@
</div>
</div>
<div class="card border-0 shadow-sm mb-3">
<div class="card-body p-4">
<div class="row align-items-center justify-content-center">
<div class="col-md-2 text-md-end">
<label for="codeGcAssureur" class="fw-bold text-uppercase small text-muted required">
<?= _("Garant") ?> :
</label>
<div class="card border-0 shadow-sm mb-4">
<div class="card-body p-3 bg-primary-ghost-light">
<div class="row align-items-center g-3">
<div class="col-md-1 text-md-end">
<label class="form-label mb-md-0 fw-bold small text-muted text-uppercase"><?= _("Garant") ?></label>
</div>
<div class="col-md-6">
<div class="col-md-11">
<div class="input-group">
<span class="input-group-text bg-white border-primary-subtle text-primary">
<i class="fas fa-handshake"></i>
</span>
<select class="form-select selectpicker"
<span class="input-group-text bg-white border-end-0"><i class="fas fa-shield-alt text-primary"></i></span>
<select class="form-control selectpicker border-start-0 w-100"
data-live-search="true"
id="codeGcAssureur"
name="codeGcAssureur"
required
autocomplete="off"
autofocus
onchange="javascript:afficher_bareme_accessoire_garant();">
onchange="javascript:afficher_bareme_accessoire_garant();"
autofocus>
<?php liste_options($garant, "", false); ?>
</select>
</div>