dolibarr/htdocs/comm/pre.inc.php

86 lines
2.5 KiB
PHP
Raw Normal View History

2002-04-29 20:01:16 +02:00
<?PHP
2004-02-08 00:47:06 +01:00
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2004-02-21 01:08:40 +01:00
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
2002-04-29 20:01:16 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
2003-03-23 16:47:41 +01:00
* $Id$
* $Source$
*
2002-04-29 20:01:16 +02:00
*/
2003-09-11 22:18:51 +02:00
require("../main.inc.php");
2002-04-29 20:01:16 +02:00
function llxHeader($head = "", $urlp = "") {
2002-05-04 01:01:45 +02:00
global $user, $conf;
/*
*
*
*/
top_menu($head);
2002-05-09 16:57:48 +02:00
$menu = new Menu();
2002-04-29 20:01:16 +02:00
2003-09-11 22:18:51 +02:00
$menu->add(DOL_URL_ROOT."/comm/clients.php", "Clients");
2002-04-29 20:01:16 +02:00
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=c", "Contacts");
2002-04-29 20:01:16 +02:00
$menu->add(DOL_URL_ROOT."/comm/prospect/prospects.php", "Prospects");
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=p", "Contacts");
2004-02-08 00:47:06 +01:00
2003-10-14 13:04:56 +02:00
$menu->add(DOL_URL_ROOT."/comm/action/index.php", "Actions");
2002-04-29 20:01:16 +02:00
if ($conf->propal->enabled && $user->rights->propale->lire)
2003-08-06 13:17:10 +02:00
{
$menu->add(DOL_URL_ROOT."/comm/propal.php", "Prop. commerciales");
2003-09-11 22:18:51 +02:00
$menu->add_submenu("propal.php?viewstatut=0", "Brouillons");
$menu->add_submenu("propal.php?viewstatut=1", "Ouvertes");
2003-11-23 14:16:09 +01:00
$menu->add_submenu("./propal/stats/", "Statistiques");
2003-08-06 13:17:10 +02:00
}
2002-04-29 20:01:16 +02:00
$menu->add(DOL_URL_ROOT."/contrat/index.php", "Contrats");
2003-11-07 10:20:07 +01:00
if ($conf->commande->enabled )
{
$menu->add(DOL_URL_ROOT."/commande/index.php", "Commandes");
}
2003-03-23 16:47:41 +01:00
if ($conf->fichinter->enabled )
{
2003-10-14 13:04:56 +02:00
$menu->add(DOL_URL_ROOT."/fichinter/index.php", "Fiches d'intervention");
2003-03-23 16:47:41 +01:00
}
if ($conf->produit->enabled || $conf->service->enabled)
2003-03-23 18:50:03 +01:00
{
$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", "$chaine");
2003-03-23 18:50:03 +01:00
}
2002-04-29 20:01:16 +02:00
if ($conf->projet->enabled )
{
$menu->add(DOL_URL_ROOT."/projet/index.php", "Projets");
}
2002-05-09 16:57:48 +02:00
left_menu($menu->liste);
2002-04-29 20:01:16 +02:00
}
2002-05-09 16:57:48 +02:00
2002-04-29 20:01:16 +02:00
?>