Import initial du projet Production
This commit is contained in:
17
Modele/Etatadherent.php
Executable file
17
Modele/Etatadherent.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Etatadherent extends Modele {
|
||||
|
||||
public function getEtatsAdherent($idAdherent) {
|
||||
$sql = 'select A.*, E.libelle AS etatadherent,
|
||||
ifnull(concat(nom," ",prenoms), A.user) as utilisateur
|
||||
from etatadherent A
|
||||
LEFT JOIN etatpersonne E ON (E.codeEtatPersonne=A.codeEtatAdherent)
|
||||
left join utilisateur U on (U.codeUtilisateur=A.user)
|
||||
where (A.idAdherent=?) order by A.dateEtat, A.id';
|
||||
|
||||
$liste = $this->executerRequete($sql, array($idAdherent));
|
||||
return $liste->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user