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