56 lines
1.2 KiB
PHP
Executable File
56 lines
1.2 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Adherent.php';
|
|
|
|
class ControleurAjaxhabilitationadherent extends Controleur {
|
|
private $adherent;
|
|
|
|
public function __construct() {
|
|
$this->adherent = new Adherent();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
public function reinitpaswd()
|
|
{
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAdherent");
|
|
|
|
$this->adherent->reinitpaswd($idAdherent);
|
|
}
|
|
|
|
public function desactiver()
|
|
{
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAdherent");
|
|
|
|
$this->adherent->desactiver($idAdherent);
|
|
}
|
|
|
|
public function activer()
|
|
{
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAdherent");
|
|
|
|
$this->adherent->activer($idAdherent);
|
|
}
|
|
|
|
/*
|
|
public function gereraccesactes()
|
|
{
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAdherent");
|
|
$actVisible = $this->requete->getParametreFormulaire("actVisible");
|
|
|
|
if($actVisible=="1")
|
|
{
|
|
$actVisible = "0";
|
|
}
|
|
else
|
|
{
|
|
$actVisible = "1";
|
|
}
|
|
|
|
$this->adherent->gereraccesactes($idAdherent, $actVisible);
|
|
}
|
|
*/
|
|
} |