menuvue = new Menuvueprofil(); $this->menuvue->getMenuVue("Tacheadherent"); $this->tache = new Tachesante(); $this->acteurtache_dest = (new Acteurtache())->getListe_adherent(); // $this->typtachesante = (new Typtachesante())->getListe(); $this->typtachesante = (new Typtachesante())->getListeAdherent(); $this->etattachesante = (new Etattachesante())->getListe(); } public function index() { $codeInitiateur=""; // $codeDestinataire=$_SESSION['codeTypeUtilisateur']; $codeDestinataire=""; //if($_SESSION['codeTypeUtilisateur']=='PR') //$codeDestinataire=$_SESSION['codePrestataireUtilisateur']; $codeTypTache=""; $codeEtatTache="0"; if (isset($_POST['codeEtatTache'])) { $codeInitiateur = $this->requete->getParametreFormulaire("codeInitiateur"); $codeDestinataire = $this->requete->getParametreFormulaire("codeDestinataire"); $codeTypTache = $this->requete->getParametreFormulaire("codeTypTache"); $codeEtatTache = $this->requete->getParametreFormulaire("codeEtatTache"); } $taches = $this->tache->afficherTachesadherent($codeDestinataire, $codeTypTache, $codeEtatTache); $this->genererVue(array('taches' => $taches, 'acteurtache_dest' => $this->acteurtache_dest, 'codeDestinataire' => $codeDestinataire, 'typtachesante' => $this->typtachesante, 'etattachesante' => $this->etattachesante, 'codeEtatTache' => $codeEtatTache, 'codeTypTache' => $codeTypTache)); } public function pointerTache() { $idTache = $this->requete->getParametre("id"); $this->tache->pointerTache($idTache); $this->executerAction("index"); } }