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>
|
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
|
|
|
|
|
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
|
|
|
|
|
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-02 10:21:34 +01:00
|
|
|
|
$menu->add_submenu(DOL_URL_ROOT."/compta/paiement/index.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
|
|
|
|
|
2003-05-16 11:45:17 +02:00
|
|
|
|
if ($user->comm > 0 && $conf->commercial && MAIN_MODULE_PROPALE)
|
2002-12-20 00:17:19 +01:00
|
|
|
|
{
|
2003-10-27 15:24:45 +01:00
|
|
|
|
$menu->add(DOL_URL_ROOT."/compta/propal.php","Prop. commerciales");
|
2002-12-20 00:17:19 +01:00
|
|
|
|
}
|
2002-12-19 19:59:23 +01:00
|
|
|
|
|
2003-08-03 20:04:31 +02:00
|
|
|
|
$menu->add(DOL_URL_ROOT."/contrat/","Contrats");
|
|
|
|
|
|
|
2002-06-18 22:58:44 +02:00
|
|
|
|
|
2003-06-29 10:58:28 +02:00
|
|
|
|
$menu->add("stats/","Chiffre d'affaire");
|
2003-03-23 16:16:29 +01:00
|
|
|
|
|
|
|
|
|
|
if ($conf->compta->tva && $user->societe_id == 0)
|
2002-12-30 21:20:27 +01:00
|
|
|
|
{
|
2003-08-25 12:17:21 +02:00
|
|
|
|
$menu->add("tva/index.php","TVA");
|
2002-12-30 21:20:27 +01:00
|
|
|
|
}
|
2002-04-30 12:44:42 +02:00
|
|
|
|
|
2003-11-03 09:44:04 +01:00
|
|
|
|
if ($user->societe_id == 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
$menu->add(DOL_URL_ROOT."/compta/caisse/index.php","Caisse");
|
2003-02-02 14:53:39 +01:00
|
|
|
|
|
2003-11-03 09:44:04 +01:00
|
|
|
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", "Fournisseurs");
|
|
|
|
|
|
}
|
2002-06-26 02:03:47 +02:00
|
|
|
|
|
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
|
|
|
|
|
2003-11-03 09:44:04 +01:00
|
|
|
|
if ($user->societe_id == 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
$menu->add(DOL_URL_ROOT."/compta/deplacement/", "D<EFBFBD>placement");
|
|
|
|
|
|
}
|
2003-09-02 19:43:52 +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
|
|
|
|
?>
|