diff --git a/Controleur/ControleurRoles.php b/Controleur/ControleurRoles.php new file mode 100644 index 0000000..ce6f74f --- /dev/null +++ b/Controleur/ControleurRoles.php @@ -0,0 +1,22 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Roles'); + + $this->utilisateur = new Utilisateur(); + } + public function index() + { + $profil = $this->utilisateur->getListeProfilCode(); + + $this->genererVue(array('profil' => $profil)); + } +} \ No newline at end of file diff --git a/Modele/Utilisateur.php b/Modele/Utilisateur.php index 7cedb97..2d1b885 100755 --- a/Modele/Utilisateur.php +++ b/Modele/Utilisateur.php @@ -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); + } } \ No newline at end of file diff --git a/Vue/Roles/index.php b/Vue/Roles/index.php new file mode 100755 index 0000000..574643b --- /dev/null +++ b/Vue/Roles/index.php @@ -0,0 +1,78 @@ +titre = "INTER SANTE - Configuration des Accès"; ?> + +
+ +
+
+ +
+
+

+

+
+
+ +
+
+
+
+ +
+ +
+
+
+
+ + + + +
+
+
+
+
+ +
+
+ +
+

+
+
+ +
+ + \ No newline at end of file