[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?PHP 2 /* Copyright (C) 2001-2005 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.13 2005/08/13 21:23:02 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/fourn/commande/pre.inc.php,v $ 21 * 22 */ 23 24 /** 25 \file htdocs/fourn/commande/pre.inc.php 26 \ingroup compta 27 \brief Fichier gestionnaire du menu commandes fournisseurs 28 */ 29 30 require ("../../main.inc.php"); 31 $langs->load("orders"); 32 $langs->load("suppliers"); 33 $langs->load("companies"); 34 $user->getrights('fournisseur'); 35 36 require_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.class.php"); 37 require_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"); 38 39 function llxHeader($head = "", $title = "", $help_url='', $addons='') 40 { 41 global $user, $langs; 42 $langs->load("orders"); 43 /* 44 * 45 * 46 */ 47 top_menu($head, $title); 48 49 $menu = new Menu(); 50 51 if (is_array($addons)) 52 { 53 $menu->add($addons[0][0], $addons[0][1]); 54 } 55 if ($user->societe_id == 0 && $user->rights->societe->lire) 56 { 57 $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers")); 58 $menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts")); 59 } 60 61 $langs->load("bills"); 62 if ($user->rights->fournisseur->facture->lire) 63 { 64 $menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills")); 65 } 66 if ($user->rights->fournisseur->commande->lire) 67 { 68 $menu->add(DOL_URL_ROOT."/fourn/commande/", $langs->trans("Orders")); 69 $menu->add_submenu(DOL_URL_ROOT."/fourn/commande/liste.php", $langs->trans("List")); 70 } 71 72 left_menu($menu->liste,$help_url); 73 } 74 75 ?>
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 |
![]() |