dolibarr/htdocs/compta/pre.inc.php

100 lines
2.5 KiB
PHP
Raw Normal View History

2002-04-30 12:44:42 +02:00
<?PHP
2004-02-02 10:21:34 +01:00
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
2002-04-30 12:44:42 +02:00
*
* 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.
*
2002-06-26 02:03:47 +02:00
* $Id$
* $Source$
*
2002-04-30 12:44:42 +02:00
*/
2003-09-11 22:18:51 +02:00
require("../main.inc.php");
2002-04-30 12:44:42 +02:00
2003-09-10 15:03:59 +02:00
function llxHeader($head = "", $title="") {
2002-05-09 16:57:48 +02:00
global $user, $conf;
2002-04-30 12:44:42 +02:00
2002-05-04 01:01:45 +02:00
/*
*
*
*/
2003-09-10 15:03:59 +02:00
top_menu($head, $title);
2002-05-04 01:01:45 +02:00
2002-05-09 16:57:48 +02:00
$menu = new Menu();
2002-05-04 01:01:45 +02:00
// Les recettes
2003-09-11 22:18:51 +02:00
$menu->add(DOL_URL_ROOT."/compta/clients.php", "Clients");
2003-02-03 13:31:06 +01:00
if ($user->comm > 0 && $conf->commercial->enabled && $conf->propal->enabled)
{
$menu->add(DOL_URL_ROOT."/compta/propal.php","Prop. commerciales");
}
$menu->add(DOL_URL_ROOT."/contrat/","Contrats");
2003-03-23 18:25:47 +01:00
if ($conf->don->enabled)
{
2003-06-18 18:07:40 +02:00
$menu->add(DOL_URL_ROOT."/compta/dons/","Dons");
2003-03-23 18:25:47 +01:00
}
2002-12-20 19:20:06 +01:00
2003-09-11 22:18:51 +02:00
$menu->add(DOL_URL_ROOT."/compta/facture.php","Factures");
2004-02-09 15:15:38 +01:00
$menu->add_submenu(DOL_URL_ROOT."/compta/paiement/liste.php","Paiements");
2003-10-12 20:17:55 +02:00
$menu->add_submenu(DOL_URL_ROOT."/compta/facture/fiche-rec.php","R<EFBFBD>currentes");
2003-11-23 18:48:02 +01:00
$menu->add_submenu(DOL_URL_ROOT."/compta/facture/stats/","Statistiques");
2002-04-30 12:44:42 +02:00
// Les d<>penses
2002-06-18 22:58:44 +02:00
$menu->add(DOL_URL_ROOT."/fourn/index.php", "Fournisseurs");
if ($user->societe_id == 0)
{
$menu->add(DOL_URL_ROOT."/compta/deplacement/", "D<EFBFBD>placement");
}
2003-03-23 16:16:29 +01:00
if ($conf->compta->tva && $user->societe_id == 0)
2002-12-30 21:20:27 +01:00
{
$menu->add(DOL_URL_ROOT."/compta/tva/index.php","TVA");
2002-12-30 21:20:27 +01:00
}
$menu->add(DOL_URL_ROOT."/compta/charges/index.php","Charges");
2002-04-30 12:44:42 +02:00
// Vision des recettes-d<>penses
$menu->add(DOL_URL_ROOT."/compta/bank/","Banques");
if ($user->societe_id == 0)
{
$menu->add(DOL_URL_ROOT."/compta/caisse/index.php","Caisse");
}
2002-06-26 02:03:47 +02:00
$menu->add(DOL_URL_ROOT."/compta/stats/","CA / R<>sultats");
2002-12-12 17:29:47 +01:00
if ($user->compta > 0)
{
2002-06-26 02:03:47 +02:00
2002-12-12 17:29:47 +01:00
}
else
{
$menu->clear();
2003-06-18 18:07:40 +02:00
$menu->add(DOL_URL_ROOT."/","Accueil");
2002-12-12 17:29:47 +01:00
}
2002-06-26 02:03:47 +02:00
2002-05-09 16:57:48 +02:00
left_menu($menu->liste);
2002-04-30 12:44:42 +02:00
}
2002-04-30 17:36:13 +02:00
2002-04-30 12:44:42 +02:00
?>