Informations
" . $_SESSION["member"] .""."
".
"Déconnexion";
} else {
$userline.="inconnu.";
}
print $userline;
?>
addItem("index","Sommaire","index.php");
$actionMenu->setItemLevel("index",3);
$daMenu=new SecureMenu("Demandes d'Achats",0);
$daMenu->addItem("DAajoute","Création","DAajoute.php");
$daMenu->setItemLevel("DAajoute",1);
$daMenu->addItem("DAliste","Gestion Demandes d'achat","DAliste.php");
$daMenu->setItemLevel("DAliste",1);
$daMenu->addItem("DAstock","Gestion des stocks","DAstock.php");
$daMenu->setItemLevel("DAstock",1);
$fournMenu=new SecureMenu("Fournisseurs",0);
$fournMenu->addItem("Faddsup","Gestion fournisseurs","fournisseurs.php");
$fournMenu->setItemLevel("Faddsup",2);
$fournMenu->addItem("Paddsup","Gestion produits","produits.php");
$fournMenu->setItemLevel("Paddsup",2);
$commMenu=new SecureMenu("Commandes",0);
$commMenu->addItem("Ccreate","Création commande","commandes.php");
$commMenu->setItemLevel("Ccreate",2);
//$commMenu->addItem("Csuiv","Suivi commande","Csuivi.php");
//$commMenu->setItemLevel("Csuiv",2);
if ($_SESSION["member"] and $_SESSION["userInfo"]){
$actionMenu->setCurrentLevel($_SESSION["userInfo"]->getAccessLevel());
$daMenu->setCurrentLevel($_SESSION["userInfo"]->getAccessLevel());
$fournMenu->setCurrentLevel($_SESSION["userInfo"]->getAccessLevel());
$commMenu->setCurrentLevel($_SESSION["userInfo"]->getAccessLevel());
print $actionMenu->toHTML();
print $daMenu->toHTML();
print $fournMenu->toHTML();
print $commMenu->toHTML();
}
?>