This commit is contained in:
2026-01-15 10:42:16 +00:00
parent 6543d0e912
commit 43e7d36667
3 changed files with 114 additions and 0 deletions

View File

@@ -130,4 +130,18 @@ class Utilisateur extends Modele {
setcookie('lang', $codeNewLang, time()+365*24*3600, '/');
}
public function getListeProfilCode()
{
if (est_anglophone())
{
$sql = 'SELECT codeProfil AS `code`, CONCAT(libelleEng, " ( ", codeProfil, " )") AS libelle FROM c_profil WHERE (codeSociete=?) ORDER BY libelleEng';
}
else
{
$sql = 'SELECT codeProfil AS `code`, CONCAT(libelle, " ( ", codeProfil, " )") AS libelle FROM c_profil WHERE (codeSociete=?) ORDER BY libelle';
}
$liste = $this->executerRequete($sql, array($_SESSION['codeSociete']));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
}