menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Changeretatadherent"); $this->adherent = new Adherent(); $this->etatpersonne = new Etatpersonne; } public function index() { $idAdherent = $_SESSION['idAdherent_C']; $adherent = $this->adherent->getAdherentId($idAdherent); $oldcodeEtatPersonne = $adherent['codeEtatAdherent']; $etatpersonne = $this->etatpersonne->getListeSuiteFam($oldcodeEtatPersonne); $this->genererVue(array('adherent' => $adherent, 'etatpersonne' => $etatpersonne)); } public function enregistrer() { $idAdherent = $_SESSION['idAdherent_C']; $codeEtatAdherent = $this->requete->getParametreFormulaire("codeEtatAdherent"); $motifEtat = $this->requete->getParametreFormulaire("motifEtat"); $dateEtat = $this->requete->getParametreDate("dateEtat"); $this->adherent->changeretat($idAdherent, $codeEtatAdherent, $motifEtat, $dateEtat); // $this->rediriger("Ficheadherent"); // $this->rediriger("Ficheadherent", $_SESSION['idAdherent_C']); $this->rediriger("Ficheadherent/".$_SESSION['idAdherent_C']); } }