dolibarr/htdocs/compta/pre.inc.php3

115 lines
2.7 KiB
PHP
Raw Normal View History

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&eacute;vrier";
$strmonth[3] = "Mars";
$strmonth[4] = "Avril";
$strmonth[5] = "Mai";
$strmonth[6] = "Juin";
$strmonth[7] = "Juillet";
$strmonth[8] = "Ao&ucirc;t";
$strmonth[9] = "Septembre";
$strmonth[10] = "Octobre";
$strmonth[11] = "Novembre";
$strmonth[12] = "D&eacute;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");
2002-12-20 19:20:06 +01:00
$menu->add("/compta/dons/","Dons");
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
2002-06-19 13:16:45 +02:00
$menu->add("charges/index.php3","Charges");
2002-06-20 15:23:17 +02:00
$menu->add_submenu("sociales/","Prest. Sociales");
2002-06-18 22:58:44 +02:00
2002-05-09 16:57:48 +02:00
$menu->add("ca.php3","Chiffres d'affaires");
2002-04-30 12:44:42 +02:00
2002-05-09 16:57:48 +02:00
$menu->add_submenu("prev.php3","Pr<EFBFBD>visionnel");
$menu->add_submenu("comp.php3","Comparatif");
2002-09-25 20:08:58 +02:00
$menu->add_submenu("exercices.php3","Exercices");
2002-04-30 12:44:42 +02:00
2002-05-09 16:57:48 +02:00
$menu->add_submenu("casoc.php3","Par soci<63>t<EFBFBD>");
2002-07-29 12:26:12 +02:00
// $menu->add_submenu("pointmort.php3","Point mort");
2002-06-18 20:21:12 +02:00
2002-12-30 21:20:27 +01:00
if ($conf->compta->tva)
{
$menu->add("tva/index.php3","TVA");
}
2002-04-30 12:44:42 +02:00
2002-06-19 00:23:44 +02:00
$menu->add("resultat/","R<EFBFBD>sultats");
2002-12-19 19:59:23 +01:00
2002-04-30 12:44:42 +02:00
2002-05-09 16:57:48 +02:00
$menu->add("bank/index.php3","Bank");
2002-04-30 12:44:42 +02:00
2002-12-12 17:29:47 +01:00
if ($conf->voyage)
{
2002-05-11 20:25:26 +02:00
2002-12-12 17:29:47 +01:00
$menu->add("voyage/index.php3","Voyages");
2002-05-13 19:43:45 +02:00
2002-12-12 17:29:47 +01:00
$menu->add_submenu("voyage/index.php3","Voyages");
$menu->add_submenu("voyage/reduc.php3","Reduc");
}
2002-05-13 19:43:45 +02:00
2003-02-02 14:53:39 +01:00
$menu->add("/fourn/index.php3", "Fournisseurs");
2002-05-13 19:43:45 +02:00
$menu->add("ligne.php3","Compta");
$menu->add_submenu("ligne.php3","Lignes");
$menu->add_submenu("config.php3","Configuration");
2002-04-30 12:44:42 +02:00
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
?>