[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: pre.inc.php,v 1.7 2005/07/10 18:31:30 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/comm/propal/stats/pre.inc.php,v $ 21 * 22 */ 23 24 /** 25 \file htdocs/comm/propal/stats/pre.inc.php 26 \ingroup propale 27 \brief Fichier de gestion du menu gauche du module propale stats 28 \version $Revision: 1.7 $ 29 */ 30 31 require ("../../../main.inc.php"); 32 require(DOL_DOCUMENT_ROOT."/bargraph.class.php"); 33 34 function llxHeader($head = "", $urlp = "") { 35 global $user, $conf, $langs; 36 37 $langs->load("companies"); 38 39 top_menu($head); 40 41 $menu = new Menu(); 42 43 // Clients 44 $menu->add(DOL_URL_ROOT."/comm/clients.php", $langs->trans("Customers")); 45 if ($user->rights->societe->creer) 46 { 47 $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=c", $langs->trans("MenuNewCustomer")); 48 } 49 $menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=c", $langs->trans("Contacts")); 50 51 // Prospects 52 $menu->add(DOL_URL_ROOT."/comm/prospect/prospects.php", $langs->trans("Prospects")); 53 if ($user->rights->societe->creer) 54 { 55 $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=p", $langs->trans("MenuNewProspect")); 56 } 57 $menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=p", $langs->trans("Contacts")); 58 59 60 $menu->add(DOL_URL_ROOT."/comm/action/index.php", $langs->trans("Actions")); 61 62 63 if ($conf->propal->enabled && $user->rights->propale->lire) 64 { 65 $langs->load("propal"); 66 $menu->add(DOL_URL_ROOT."/comm/propal.php", $langs->trans("Prop")); 67 $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php?viewstatut=0", $langs->trans("PropalsDraft")); 68 $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php?viewstatut=1", $langs->trans("PropalsOpened")); 69 $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php?viewstatut=2,3,4", $langs->trans("PropalStatusClosedShort")); 70 $menu->add_submenu(DOL_URL_ROOT."/comm/propal/stats/", $langs->trans("Statistics")); 71 } 72 73 if ($conf->contrat->enabled) 74 { 75 $langs->load("contracts"); 76 $menu->add(DOL_URL_ROOT."/contrat/index.php", $langs->trans("Contracts")); 77 } 78 79 if ($conf->commande->enabled ) 80 { 81 $langs->load("orders"); 82 $menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders")); 83 } 84 85 if ($user->rights->mailing->lire) 86 { 87 $langs->load("mails"); 88 $menu->add(DOL_URL_ROOT."/comm/mailing/", $langs->trans("EMailings")); 89 } 90 91 if ($conf->fichinter->enabled ) 92 { 93 $langs->load("interventions"); 94 $menu->add(DOL_URL_ROOT."/fichinter/index.php", $langs->trans("Interventions")); 95 } 96 97 if ($conf->produit->enabled || $conf->service->enabled) 98 { 99 $langs->load("products"); 100 $chaine=""; 101 if ($conf->produit->enabled) { $chaine.=$langs->trans("Products"); } 102 if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } 103 if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); } 104 $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); 105 } 106 107 if ($conf->projet->enabled ) 108 { 109 $langs->load("projects"); 110 $menu->add(DOL_URL_ROOT."/projet/index.php", $langs->trans("Projects")); 111 } 112 113 left_menu($menu->liste); 114 } 115 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |