ezaz
This commit is contained in:
parent
272d5dbd9d
commit
c1424e0d06
23
Controleur/ControleurAjaxmenusprofilrh.php
Normal file
23
Controleur/ControleurAjaxmenusprofilrh.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Utilisateur.php';
|
||||
|
||||
class ControleurAjaxmenusprofilrh extends Controleur
|
||||
{
|
||||
private $utilisateur;
|
||||
|
||||
public function __construct() {
|
||||
$this->utilisateur = new Utilisateur();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codeProfil = $this->requete->getParametreFormulaire("codeProfil");
|
||||
//
|
||||
$menus = $this->utilisateur->getListeProfilRh($codeProfil);
|
||||
|
||||
$this->genererVueAjax(array(
|
||||
'menus' => $menus
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
@ -45132,7 +45132,7 @@ function ajax_menus_profil()
|
|||
donnees = 'codeProfil='+codeProfil;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxmenusprofil/",
|
||||
url: $("#racineWeb").val()+"Ajaxmenusprofilrh/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
|
|
|
|||
|
|
@ -756,4 +756,22 @@ class Utilisateur extends Modele {
|
|||
|
||||
return $menu->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getListeProfilRh($codeProfil)
|
||||
{
|
||||
|
||||
if (est_anglophone())
|
||||
{
|
||||
$sql = "call sp_c_get_liste_menus_profil_rh_eng(?, ?);";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = "call sp_c_get_liste_menus_profil_rh(?, ?);";
|
||||
}
|
||||
|
||||
$menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil));
|
||||
|
||||
return $menu->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
}
|
||||
}
|
||||
3
Vue/Ajaxmenusprofilrh/index.php
Normal file
3
Vue/Ajaxmenusprofilrh/index.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<SELECT style="font-size:10pt;" class="form-control" id="codeVue" NAME="codeVue">
|
||||
<?php liste_options($menus,""); ?>
|
||||
</SELECT>
|
||||
|
|
@ -263,7 +263,7 @@ controlerPlafondBeneficiaire : <?= $_SESSION['controlerPlafondBeneficiaire'] ?>
|
|||
<script src="Js/datepicker-fr.js"></script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2026.03.09.16"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.03.09.17"></script>
|
||||
|
||||
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>" > </script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user