39 lines
793 B
PHP
Executable File
39 lines
793 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();
|
|
|
|
$this->genererVue(array('garantiesadd' => $garantiesadd));
|
|
}
|
|
|
|
public function enregistrer()
|
|
{
|
|
$idAdherent = $_SESSION['idAdherent_C'];
|
|
$this->adherent->changerlimite($idAdherent);
|
|
$this->rediriger("Ficheadherent/".$idAdherent);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|