Le menu des prospects accessible depuis l'espace "commercial" est persistent.

This commit is contained in:
Laurent Destailleur 2004-02-21 02:11:39 +00:00
parent 2bac2df02b
commit 93c1c9b213
2 changed files with 44 additions and 3 deletions

View File

@ -32,15 +32,50 @@ function llxHeader($head = "", $urlp = "") {
$menu = new Menu();
$menu->add(DOL_URL_ROOT."/comm/prospect/index.php", "Prospects");
$menu->add(DOL_URL_ROOT."/comm/clients.php", "Clients");
$menu->add_submenu(DOL_URL_ROOT."/comm/prospect/prospects.php", "Liste");
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=c", "Contacts");
$menu->add_submenu(DOL_URL_ROOT."/comm/prospect/contact.php", "Contacts");
$menu->add(DOL_URL_ROOT."/comm/prospect/prospects.php", "Prospects");
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=p", "Contacts");
$menu->add(DOL_URL_ROOT."/comm/action/index.php", "Actions");
if ($conf->propal->enabled && $user->rights->propale->lire)
{
$menu->add(DOL_URL_ROOT."/comm/propal.php", "Prop. commerciales");
$menu->add_submenu("propal.php?viewstatut=0", "Brouillons");
$menu->add_submenu("propal.php?viewstatut=1", "Ouvertes");
$menu->add_submenu("./propal/stats/", "Statistiques");
}
$menu->add(DOL_URL_ROOT."/contrat/index.php", "Contrats");
if ($conf->commande->enabled )
{
$menu->add(DOL_URL_ROOT."/commande/index.php", "Commandes");
}
if ($conf->fichinter->enabled )
{
$menu->add(DOL_URL_ROOT."/fichinter/index.php", "Fiches d'intervention");
}
if ($conf->produit->enabled || $conf->service->enabled)
{
$chaine="";
if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; }
$menu->add(DOL_URL_ROOT."/product/index.php", "Produits/Services");
}
if ($conf->projet->enabled )
{
$menu->add(DOL_URL_ROOT."/projet/index.php", "Projets");
}
left_menu($menu->liste);
}

View File

@ -22,6 +22,12 @@
*/
require("./pre.inc.php");
$user->getrights('propale');
$user->getrights('fichinter');
$user->getrights('commande');
$user->getrights('projet');
/*
* Sécurité accés client
*/