[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: pre.inc.php,v 1.2 2005/09/02 22:02:15 eldy Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/fourn/paiement/pre.inc.php,v $ 20 * 21 */ 22 23 /** 24 \file htdocs/fourn/paiement/pre.inc.php 25 \ingroup fournisseur,facture 26 \brief Fichier gestionnaire du menu paiements factures fournisseurs 27 */ 28 29 require ("../../main.inc.php"); 30 require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.class.php"; 31 require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.facture.class.php"; 32 $user->getrights('fournisseur'); 33 34 function llxHeader($head = "", $title = "", $addons='') { 35 global $user, $conf, $langs; 36 37 $langs->load("suppliers"); 38 $langs->load("propal"); 39 40 top_menu($head, $title); 41 42 $menu = new Menu(); 43 44 45 if (is_array($addons)) 46 { 47 //$menu->add($url, $libelle); 48 49 $menu->add($addons[0][0], $addons[0][1]); 50 } 51 52 53 if ($conf->fournisseur->enabled) 54 { 55 if ($user->rights->societe->lire) 56 { 57 $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers")); 58 } 59 60 // Sécurité accés client 61 if ($user->societe_id == 0 && $user->rights->societe->creer) 62 { 63 $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier")); 64 } 65 } 66 67 if ($conf->societe->enabled) 68 { 69 if ($user->rights->societe->lire) 70 { 71 $menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts")); 72 } 73 } 74 75 76 $langs->load("bills"); 77 if ($user->rights->fournisseur->facture->lire) 78 { 79 $menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills")); 80 } 81 82 83 if ($user->rights->fournisseur->facture->creer) 84 { 85 $menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill")); 86 } 87 if ($user->rights->fournisseur->facture->lire) 88 { 89 $menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments")); 90 } 91 92 93 $langs->load("orders"); 94 if ($user->rights->fournisseur->commande->lire) 95 { 96 $menu->add(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders")); 97 } 98 99 100 if ($conf->produit->enabled || $conf->service->enabled) 101 { 102 $menu->add(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("Products")); 103 } 104 105 left_menu($menu->liste); 106 } 107 108 109 ?>
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 |
![]() |