2002-04-30 12:44:42 +02:00
|
|
|
|
<?PHP
|
2003-02-02 14:53:39 +01:00
|
|
|
|
/* Copyright (C) 2001-2003 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
|
|
|
|
*/
|
|
|
|
|
|
require("../main.inc.php3");
|
|
|
|
|
|
|
2002-12-12 17:29:47 +01:00
|
|
|
|
$strmonth[1] = "Janvier";
|
|
|
|
|
|
$strmonth[2] = "Février";
|
|
|
|
|
|
$strmonth[3] = "Mars";
|
|
|
|
|
|
$strmonth[4] = "Avril";
|
|
|
|
|
|
$strmonth[5] = "Mai";
|
|
|
|
|
|
$strmonth[6] = "Juin";
|
|
|
|
|
|
$strmonth[7] = "Juillet";
|
|
|
|
|
|
$strmonth[8] = "Août";
|
|
|
|
|
|
$strmonth[9] = "Septembre";
|
|
|
|
|
|
$strmonth[10] = "Octobre";
|
|
|
|
|
|
$strmonth[11] = "Novembre";
|
|
|
|
|
|
$strmonth[12] = "Décembre";
|
|
|
|
|
|
|
2002-04-30 12:44:42 +02:00
|
|
|
|
function llxHeader($head = "") {
|
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
|
|
|
|
/*
|
|
|
|
|
|
*
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
top_menu($head);
|
|
|
|
|
|
|
2002-05-09 16:57:48 +02:00
|
|
|
|
$menu = new Menu();
|
2002-05-04 01:01:45 +02:00
|
|
|
|
|
2003-02-03 13:31:06 +01:00
|
|
|
|
$menu->add("/comm/clients.php3", "Clients");
|
|
|
|
|
|
|
2003-03-23 18:25:47 +01:00
|
|
|
|
if ($conf->don->enabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
$menu->add("/compta/dons/","Dons");
|
|
|
|
|
|
}
|
2002-12-20 19:20:06 +01:00
|
|
|
|
|
2002-05-11 20:25:26 +02:00
|
|
|
|
$menu->add("/compta/facture.php3","Factures");
|
2002-05-09 16:57:48 +02:00
|
|
|
|
$menu->add_submenu("paiement.php3","Paiements");
|
2002-04-30 12:44:42 +02:00
|
|
|
|
|
2002-12-20 00:17:19 +01:00
|
|
|
|
if ($user->comm > 0 && $conf->commercial )
|
|
|
|
|
|
{
|
|
|
|
|
|
$menu->add("/compta/propal.php3","Propales");
|
|
|
|
|
|
}
|
2002-12-19 19:59:23 +01:00
|
|
|
|
|
2003-03-23 16:16:29 +01:00
|
|
|
|
/*
|
|
|
|
|
|
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
|
|
|
|
|
|
*/
|
|
|
|
|
|
if ($user->societe_id == 0)
|
|
|
|
|
|
{
|
2002-06-18 22:58:44 +02:00
|
|
|
|
|
2003-03-23 16:16:29 +01:00
|
|
|
|
$menu->add("charges/index.php3","Charges");
|
|
|
|
|
|
$menu->add_submenu("sociales/","Prest. Sociales");
|
|
|
|
|
|
}
|
2003-03-23 16:20:40 +01:00
|
|
|
|
$menu->add("ca.php3","Chiffre d'affaire");
|
2002-04-30 12:44:42 +02:00
|
|
|
|
|
2003-03-23 16:16:29 +01:00
|
|
|
|
if ($user->societe_id == 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
$menu->add_submenu("prev.php3","Pr<EFBFBD>visionnel");
|
|
|
|
|
|
$menu->add_submenu("comp.php3","Comparatif");
|
|
|
|
|
|
$menu->add_submenu("exercices.php3","Exercices");
|
2003-03-23 16:20:40 +01:00
|
|
|
|
$menu->add_submenu("casoc.php3","Par soci<63>t<EFBFBD>");
|
2003-03-23 16:16:29 +01:00
|
|
|
|
}
|
2002-06-18 20:21:12 +02:00
|
|
|
|
|
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("tva/index.php3","TVA");
|
|
|
|
|
|
}
|
2002-04-30 12:44:42 +02:00
|
|
|
|
|
2003-03-23 16:16:29 +01:00
|
|
|
|
if ($user->societe_id == 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
$menu->add("resultat/","R<EFBFBD>sultats");
|
2002-04-30 12:44:42 +02:00
|
|
|
|
|
2003-03-23 16:16:29 +01:00
|
|
|
|
$menu->add("bank/index.php3","Bank");
|
|
|
|
|
|
}
|
2002-04-30 12:44:42 +02:00
|
|
|
|
|
2002-05-13 19:43:45 +02:00
|
|
|
|
|
2003-02-02 14:53:39 +01:00
|
|
|
|
$menu->add("/fourn/index.php3", "Fournisseurs");
|
|
|
|
|
|
|
2003-03-23 19:25:35 +01:00
|
|
|
|
/*
|
|
|
|
|
|
* $menu->add("ligne.php3","Compta");
|
|
|
|
|
|
* $menu->add_submenu("ligne.php3","Lignes");
|
|
|
|
|
|
* $menu->add_submenu("config.php3","Configuration");
|
|
|
|
|
|
*/
|
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();
|
|
|
|
|
|
$menu->add("/index.php3","Accueil");
|
|
|
|
|
|
}
|
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
|
|
|
|
?>
|