diff --git a/Vue/Usersrhclient/index.php b/Vue/Usersrhclient/index.php new file mode 100755 index 0000000..3bad282 --- /dev/null +++ b/Vue/Usersrhclient/index.php @@ -0,0 +1,81 @@ +titre = "INTER SANTE - Liste Utilisateurs portail RH"; + $idClient = $this->nettoyer($client['idClient']); + $nomClient = $this->nettoyer($client['nomClient']); +?> + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Login
nettoyer($user_client['codeUtilisateur']) ?> nettoyer($user_client['utilisateur']) ?> " onClick="javascript:reinitpaswd_client('');"> " onClick="javascript:reinitpaswd_client('');"> " onClick="javascript:desactiver_user_client('');"> " onClick="javascript:activer_user_client('');"> Désactiver?") ?>" onClick="javascript:gerer_acces_actes_client('', '');"> Activer?") ?>" onClick="javascript:gerer_acces_actes_client('', '');"> Désactiver?") ?>" onClick="javascript:gerer_acces_affection_client('', '');"> Activer?") ?>" onClick="javascript:gerer_acces_affection_client('', '');"> + " onClick="javascript:afficher_users_client_id();" style='font-size:9pt;' > +
+
+
+ +
+
+ diff --git a/radiantproduction/Controleur/ControleurUsersrhclient.php b/radiantproduction/Controleur/ControleurUsersrhclient.php new file mode 100755 index 0000000..09d5ffd --- /dev/null +++ b/radiantproduction/Controleur/ControleurUsersrhclient.php @@ -0,0 +1,26 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Usersrhclient"); + + $this->client = new Client(); + + } + public function index() { + $idClient = $_SESSION['idClient_C']; + + $client = $this->client->getClientId($idClient); + + $users = $this->client->getusersrhclient($idClient); + + $this->genererVue(array('client' => $client, 'users' => $users)); + } +} \ No newline at end of file diff --git a/radiantproduction/Modele/Client.php b/radiantproduction/Modele/Client.php index 2de56de..dc0a5e4 100644 --- a/radiantproduction/Modele/Client.php +++ b/radiantproduction/Modele/Client.php @@ -287,4 +287,13 @@ class Client extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getusersrhclient($idClient) + { + $sql = 'call sp_c_get_users_rh(?)'; + + $resultat = $this->executerRequete($sql, array($idClient)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file