def
This commit is contained in:
parent
79cc1c4d7f
commit
ee25952839
|
|
@ -15,7 +15,7 @@ class ControleurRoles extends Controleur
|
|||
}
|
||||
public function index()
|
||||
{
|
||||
$profil = $this->utilisateur->getListeProfilCode();
|
||||
$profil = $this->utilisateur->getListeProfilCodeRh();
|
||||
|
||||
$this->genererVue(array('profil' => $profil));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -662,4 +662,18 @@ class Utilisateur extends Modele {
|
|||
$email, $hash, $codeLangue, $actVisible, $AffectionVisible, $user));
|
||||
}
|
||||
|
||||
public function getListeProfilCodeRh()
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user