| [ 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.6 2005/09/03 10:29:34 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/compta/commande/pre.inc.php,v $ 21 */ 22 23 /** 24 \file htdocs/compta/commande/pre.inc.php 25 \ingroup compta,commande 26 \brief Fichier gestionnaire du menu commande de compta 27 */ 28 29 require ("../../main.inc.php"); 30 require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); 31 32 $langs->load("orders"); 33 34 $user->getrights('commande'); 35 36 37 function llxHeader($head = "", $title="", $help_url='') 38 { 39 global $user, $conf, $langs; 40 41 $user->getrights('banque'); 42 43 top_menu($head, $title); 44 45 $menu = new Menu(); 46 47 // Les recettes 48 49 $langs->load("commercial"); 50 $menu->add(DOL_URL_ROOT."/compta/clients.php", $langs->trans("Customers")); 51 52 if ($conf->propal->enabled) 53 { 54 $langs->load("propal"); 55 $menu->add(DOL_URL_ROOT."/compta/propal.php",$langs->trans("Prop")); 56 } 57 58 if ($conf->contrat->enabled) 59 { 60 $langs->load("contracts"); 61 $menu->add(DOL_URL_ROOT."/contrat/",$langs->trans("Contracts")); 62 } 63 64 if ($conf->don->enabled) 65 { 66 $langs->load("donations"); 67 $menu->add(DOL_URL_ROOT."/compta/dons/",$langs->trans("Donations")); 68 } 69 70 if ($conf->facture->enabled) 71 { 72 $langs->load("bills"); 73 $menu->add(DOL_URL_ROOT."/compta/facture.php",$langs->trans("Bills")); 74 $menu->add_submenu(DOL_URL_ROOT."/compta/facture/impayees.php",$langs->trans("Unpayed")); 75 $menu->add_submenu(DOL_URL_ROOT."/compta/paiement/liste.php",$langs->trans("Payments")); 76 77 if (! defined(FACTURE_DISABLE_RECUR) || ! FACTURE_DISABLE_RECUR) 78 { 79 $menu->add_submenu(DOL_URL_ROOT."/compta/facture/fiche-rec.php","Récurrentes"); 80 } 81 82 $menu->add_submenu(DOL_URL_ROOT."/compta/facture/stats/", $langs->trans("Statistics")); 83 } 84 85 86 if ($conf->commande->enabled && $conf->facture->enabled) 87 { 88 $langs->load("orders"); 89 $menu->add(DOL_URL_ROOT."/compta/commande/liste.php?leftmenu=orders&afacturer=1", $langs->trans("MenuOrdersToBill")); 90 } 91 92 93 // Les dépenses 94 if ($conf->fournisseur->enabled) 95 { 96 $langs->load("suppliers"); 97 $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers")); 98 } 99 100 if ($conf->deplacement->enabled && $user->societe_id == 0) 101 { 102 $menu->add(DOL_URL_ROOT."/compta/deplacement/", "Déplacement"); 103 } 104 105 if ($conf->compta->enabled && $conf->compta->tva && $user->societe_id == 0) 106 { 107 $menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT")); 108 } 109 110 if ($conf->compta->enabled) 111 { 112 $menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges")); 113 } 114 115 116 // Vision des recettes-dépenses 117 if ($conf->banque->enabled && $user->rights->banque->lire) 118 { 119 $langs->load("banks"); 120 $menu->add(DOL_URL_ROOT."/compta/bank/",$langs->trans("Bank")); 121 } 122 123 $menu->add(DOL_URL_ROOT."/compta/stats/",$langs->trans("Reportings")); 124 125 if ($conf->prelevement->enabled) 126 { 127 $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrders")); 128 } 129 130 $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); 131 132 if ($user->rights->compta->ventilation->parametrer) 133 { 134 $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param")); 135 } 136 137 138 left_menu($menu->liste, $help_url); 139 } 140 141 ?>
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 |
|