41 lines
876 B
PHP
Executable File
41 lines
876 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Adherent.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurChangerlimite extends Controleur {
|
|
private $menuvue;
|
|
private $adherent;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Changerlimite');
|
|
$this->adherent = new Adherent();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$garantiesadd = $this->adherent->getGarAddCollege();
|
|
|
|
$chemin = $this->menuvue->getChemin('Changerlimite');
|
|
|
|
$this->genererVue(array('garantiesadd' => $garantiesadd, 'chemin' => $chemin));
|
|
}
|
|
|
|
public function enregistrer()
|
|
{
|
|
$idAdherent = $_SESSION['idAdherent_C'];
|
|
$this->adherent->changerlimite($idAdherent);
|
|
$this->rediriger("Ficheadherent/".$idAdherent);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|