Test menu contextuel
This commit is contained in:
parent
d7e761e877
commit
7c730d62e5
@ -28,15 +28,26 @@
|
|||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "", $title="") {
|
|
||||||
global $user, $conf, $langs;
|
function llxHeader($head = "", $title="", $addons='') {
|
||||||
|
global $user, $langs;
|
||||||
|
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
|
|
||||||
|
if (is_array($addons))
|
||||||
|
{
|
||||||
|
//$menu->add($url, $libelle);
|
||||||
|
|
||||||
|
$menu->add($addons[0][0], $addons[0][1]);
|
||||||
|
}
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
@ -45,11 +56,14 @@ function llxHeader($head = "", $title="") {
|
|||||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("New"));
|
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("New"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->societe->enabled) {
|
|
||||||
|
if ($conf->societe->enabled)
|
||||||
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled)
|
||||||
|
{
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user