[ 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.11 2005/07/10 18:31:30 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/comm/propal/pre.inc.php,v $ 21 * 22 */ 23 24 /** 25 \file htdocs/comm/propal/pre.inc.php 26 \ingroup propale 27 \brief Fichier de gestion du menu gauche du module propale 28 \version $Revision: 1.11 $ 29 */ 30 31 require ("../../main.inc.php"); 32 33 function llxHeader($head = "", $urlp = "") { 34 global $user, $conf, $langs; 35 36 $langs->load("companies"); 37 38 top_menu($head); 39 40 $menu = new Menu(); 41 42 // Clients 43 $menu->add(DOL_URL_ROOT."/comm/clients.php", $langs->trans("Customers")); 44 if ($user->rights->societe->creer) 45 { 46 $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=c", $langs->trans("MenuNewCustomer")); 47 } 48 $menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=c", $langs->trans("Contacts")); 49 50 // Prospects 51 $menu->add(DOL_URL_ROOT."/comm/prospect/prospects.php", $langs->trans("Prospects")); 52 if ($user->rights->societe->creer) 53 { 54 $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=p", $langs->trans("MenuNewProspect")); 55 } 56 $menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=p", $langs->trans("Contacts")); 57 58 59 $menu->add(DOL_URL_ROOT."/comm/action/index.php", $langs->trans("Actions")); 60 61 62 if ($conf->propal->enabled && $user->rights->propale->lire) 63 { 64 $langs->load("propal"); 65 $menu->add(DOL_URL_ROOT."/comm/propal.php", $langs->trans("Prop")); 66 $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php?viewstatut=0", $langs->trans("PropalsDraft")); 67 $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php?viewstatut=1", $langs->trans("PropalsOpened")); 68 $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php?viewstatut=2,3,4", $langs->trans("PropalStatusClosedShort")); 69 $menu->add_submenu(DOL_URL_ROOT."/comm/propal/stats/", $langs->trans("Statistics")); 70 } 71 72 if ($conf->contrat->enabled) 73 { 74 $langs->load("contracts"); 75 $menu->add(DOL_URL_ROOT."/contrat/index.php", $langs->trans("Contracts")); 76 } 77 78 if ($conf->commande->enabled ) 79 { 80 $langs->load("orders"); 81 $menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders")); 82 } 83 84 if ($conf->fichinter->enabled ) 85 { 86 $langs->load("interventions"); 87 $menu->add(DOL_URL_ROOT."/fichinter/index.php", $langs->trans("Interventions")); 88 } 89 90 if ($conf->produit->enabled || $conf->service->enabled) 91 { 92 $langs->load("products"); 93 $chaine=""; 94 if ($conf->produit->enabled) { $chaine.=$langs->trans("Products"); } 95 if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } 96 if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); } 97 $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); 98 } 99 100 if ($conf->projet->enabled ) 101 { 102 $langs->load("projects"); 103 $menu->add(DOL_URL_ROOT."/projet/index.php", $langs->trans("Projects")); 104 } 105 106 left_menu($menu->liste); 107 108 } 109 110 111 ?>
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 |
![]() |