[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 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.20 2005/04/14 13:39:37 rodolphe Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/pre.inc.php,v $ 21 * 22 */ 23 24 /*! 25 \file htdocs/product/pre.inc.php 26 \ingroup product,service 27 \brief Fichier gestionnaire du menu gauche des produits et services 28 \version $Revision: 1.20 $ 29 */ 30 require ("../main.inc.php"); 31 32 $langs->load("products"); 33 34 $user->getrights('produit'); 35 $user->getrights('propale'); 36 $user->getrights('facture'); 37 38 function llxHeader($head = "", $urlp = "", $title="") 39 { 40 global $user, $conf, $langs; 41 $langs->load("products"); 42 $user->getrights("produit"); 43 44 top_menu($head, $title); 45 46 $menu = new Menu(); 47 48 if ($conf->produit->enabled) 49 { 50 $menu->add(DOL_URL_ROOT."/product/index.php?type=0", $langs->trans("Products")); 51 $menu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("List")); 52 53 if ($user->societe_id == 0 && $user->rights->produit->creer) 54 { 55 $menu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=0", $langs->trans("NewProduct")); 56 } 57 } 58 59 if ($conf->service->enabled) 60 { 61 $menu->add(DOL_URL_ROOT."/product/index.php?type=1", $langs->trans("Services")); 62 $menu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=1", $langs->trans("List")); 63 if ($user->societe_id == 0 && $user->rights->produit->creer) 64 { 65 $menu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=1", $langs->trans("NewService")); 66 } 67 } 68 69 if ($conf->boutique->enabled) 70 { 71 $menu->add(DOL_URL_ROOT."/product/osc-liste.php", "Osc"); 72 $menu->add_submenu(DOL_URL_ROOT."/product/osc-liste.php?reqstock=epuise", "Produits Epuisés"); 73 74 $menu->add(DOL_URL_ROOT."/product/osc-reviews.php", $langs->trans("Criticals")); 75 76 $menu->add_submenu(DOL_URL_ROOT."/product/osc-productsbyreviews.php", "Meilleurs produits"); 77 78 $menu->add(DOL_URL_ROOT."/product/album/", "Albums"); 79 $menu->add(DOL_URL_ROOT."/product/groupart/", "Groupes/Artistes"); 80 81 $menu->add(DOL_URL_ROOT."/product/categorie/", $langs->trans("Categories")); 82 } 83 84 if ($conf->fournisseur->enabled) { 85 $langs->load("suppliers"); 86 $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers")); 87 } 88 89 $menu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics")); 90 if ($conf->propal->enabled) 91 { 92 $menu->add_submenu(DOL_URL_ROOT."/product/popuprop.php", $langs->trans("Popularity")); 93 } 94 95 if ($conf->stock->enabled) 96 { 97 $menu->add(DOL_URL_ROOT."/product/stock/", $langs->trans("Stock")); 98 } 99 100 left_menu($menu->liste); 101 /* 102 * 103 * 104 */ 105 106 } 107 ?>
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 |
![]() |