From e150aaf28bd6c51448e1abb093337728865d3ae8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 26 Apr 2003 14:22:20 +0000 Subject: [PATCH] Nouveau fichier --- htdocs/compta/paiement/pre.inc.php | 106 +++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 htdocs/compta/paiement/pre.inc.php diff --git a/htdocs/compta/paiement/pre.inc.php b/htdocs/compta/paiement/pre.inc.php new file mode 100644 index 00000000000..366dca6d74a --- /dev/null +++ b/htdocs/compta/paiement/pre.inc.php @@ -0,0 +1,106 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + * + */ +require("../../main.inc.php3"); + +function llxHeader($head = "") { + global $user, $conf; + + + /* + * + * + */ + top_menu($head); + + $menu = new Menu(); + + $menu->add("/comm/clients.php3", "Clients"); + + if ($conf->don->enabled) + { + $menu->add("/compta/dons/","Dons"); + } + + $menu->add("/compta/facture.php3","Factures"); + $menu->add_submenu("paiement.php3","Paiements"); + + if ($user->comm > 0 && $conf->commercial ) + { + $menu->add("/compta/propal.php3","Propales"); + } + + /* + * Sécurité accés client + */ + if ($user->societe_id == 0) + { + + $menu->add("charges/index.php3","Charges"); + $menu->add_submenu("sociales/","Prest. Sociales"); + } + $menu->add("ca.php3","Chiffre d'affaire"); + + if ($user->societe_id == 0) + { + $menu->add_submenu("prev.php3","Prévisionnel"); + $menu->add_submenu("comp.php3","Comparatif"); + $menu->add_submenu("exercices.php3","Exercices"); + $menu->add_submenu("casoc.php3","Par société"); + } + + + if ($conf->compta->tva && $user->societe_id == 0) + { + $menu->add("tva/index.php3","TVA"); + } + + if ($user->societe_id == 0) + { + $menu->add("resultat/","Résultats"); + + $menu->add("bank/index.php3","Bank"); + } + + + $menu->add("/fourn/index.php3", "Fournisseurs"); + + /* + * $menu->add("ligne.php3","Compta"); + * $menu->add_submenu("ligne.php3","Lignes"); + * $menu->add_submenu("config.php3","Configuration"); + */ + + if ($user->compta > 0) + { + + } + else + { + $menu->clear(); + $menu->add("/index.php3","Accueil"); + } + + left_menu($menu->liste); + +} + +?>