production/Controleur/ControleurAjaxchargernumeroadherent.php
2025-12-02 11:29:44 +00:00

55 lines
687 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
class ControleurAjaxchargernumeroadherent extends Controleur {
private $adherent;
public function __construct() {
$this->adherent = new Adherent();
}
public function index() {
$numero = $this->requete->getParametreFormulaire("numero");
if ($numero=="vide" || $numero=="") {
$adherents = $this->adherent->getadherentvide();
}else{
$adherents = $this->adherent->trouverAdherent($numero);
}
//var_dump($actes);
$this->genererVueAjax(array('adherents' => $adherents));
}
}