mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-17 23:11:29 +01:00
100 lines
2.4 KiB
PHP
100 lines
2.4 KiB
PHP
<?PHP
|
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
*
|
|
* 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.php");
|
|
|
|
function llxHeader($head = "", $title="") {
|
|
global $user, $conf;
|
|
|
|
/*
|
|
*
|
|
*
|
|
*/
|
|
top_menu($head, $title);
|
|
|
|
$menu = new Menu();
|
|
|
|
// Les recettes
|
|
|
|
$menu->add(DOL_URL_ROOT."/compta/clients.php", "Clients");
|
|
|
|
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");
|
|
|
|
if ($conf->don->enabled)
|
|
{
|
|
$menu->add(DOL_URL_ROOT."/compta/dons/","Dons");
|
|
}
|
|
|
|
$menu->add(DOL_URL_ROOT."/compta/facture.php","Factures");
|
|
$menu->add_submenu(DOL_URL_ROOT."/compta/paiement/liste.php","Paiements");
|
|
$menu->add_submenu(DOL_URL_ROOT."/compta/facture/fiche-rec.php","Récurrentes");
|
|
$menu->add_submenu(DOL_URL_ROOT."/compta/facture/stats/","Statistiques");
|
|
|
|
// Les dépenses
|
|
|
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", "Fournisseurs");
|
|
|
|
if ($user->societe_id == 0)
|
|
{
|
|
$menu->add(DOL_URL_ROOT."/compta/deplacement/", "Déplacement");
|
|
}
|
|
|
|
if ($conf->compta->tva && $user->societe_id == 0)
|
|
{
|
|
$menu->add("tva/index.php","TVA");
|
|
}
|
|
$menu->add("charges/index.php","Charges");
|
|
|
|
|
|
|
|
// Vision des recettes-dépenses
|
|
|
|
$menu->add("bank/","Banques");
|
|
|
|
if ($user->societe_id == 0)
|
|
{
|
|
$menu->add(DOL_URL_ROOT."/compta/caisse/index.php","Caisse");
|
|
}
|
|
|
|
$menu->add("stats/","CA / Résultats");
|
|
|
|
if ($user->compta > 0)
|
|
{
|
|
|
|
}
|
|
else
|
|
{
|
|
$menu->clear();
|
|
$menu->add(DOL_URL_ROOT."/","Accueil");
|
|
}
|
|
|
|
left_menu($menu->liste);
|
|
|
|
}
|
|
|
|
?>
|