Initial commit for radiantprestation project
This commit is contained in:
20
Modele/Menu.php
Normal file
20
Modele/Menu.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
class Menu extends Modele {
|
||||
|
||||
public function getMenu($codeProfil)
|
||||
{
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$sql = "call sp_p_get_menu_eng(?, ?);";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = "call sp_p_get_menu(?, ?);";
|
||||
}
|
||||
|
||||
$menu = $this->executerRequete($sql, array($_SESSION['p_codeSociete'],$codeProfil));
|
||||
|
||||
return $menu->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user