Homogénisation des menus
This commit is contained in:
parent
7b95ae4f8c
commit
c4aaffbbf5
@ -1,5 +1,5 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -21,9 +21,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file htdocs/fourn/commande/pre.inc.php
|
/**
|
||||||
\ingroup compta
|
\file htdocs/fourn/commande/pre.inc.php
|
||||||
\brief Fichier gestionnaire du menu commandes fournisseurs
|
\ingroup compta
|
||||||
|
\brief Fichier gestionnaire du menu commandes fournisseurs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
@ -42,14 +43,15 @@ function llxHeader($head = "", $title = "")
|
|||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/index.php", "Fournisseurs");
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/commande/", $langs->trans("Orders"));
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/commande/liste.php", $langs->trans("List"));
|
|
||||||
|
|
||||||
$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"));
|
||||||
|
|
||||||
|
$menu->add(DOL_URL_ROOT."/fourn/commande/", $langs->trans("Orders"));
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/commande/liste.php", $langs->trans("List"));
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,40 +47,26 @@ function llxHeader($head = "", $title = "", $addons='') {
|
|||||||
$menu->add($addons[0][0], $addons[0][1]);
|
$menu->add($addons[0][0], $addons[0][1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->fournisseur->enabled)
|
|
||||||
{
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
|
||||||
|
|
||||||
// Sécurité accés client
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
||||||
if ($user->societe_id == 0)
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
||||||
{
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($conf->societe->enabled)
|
|
||||||
|
|
||||||
|
$langs->load("bills");
|
||||||
|
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
||||||
|
|
||||||
|
if ($user->societe_id == 0)
|
||||||
{
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled)
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
|
||||||
{
|
|
||||||
$langs->load("bills");
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
|
||||||
|
|
||||||
if ($user->societe_id == 0)
|
|
||||||
{
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill"));
|
|
||||||
}
|
|
||||||
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($conf->commande->enabled)
|
$langs->load("orders");
|
||||||
{
|
$menu->add(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
||||||
$langs->load("orders");
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($conf->produit->enabled || $conf->service->enabled)
|
if ($conf->produit->enabled || $conf->service->enabled)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user