dolibarr/htdocs/compta/paiement/pre.inc.php
Rodolphe Quiedeville 72d66b3644 Modif liens
2003-04-26 16:18:14 +00:00

99 lines
2.3 KiB
PHP

<?PHP
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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.php3");
function llxHeader($head = "") {
global $user, $conf;
/*
*
*
*/
top_menu($head);
$menu = new Menu();
$menu->add("/comm/clients.php3", "Clients");
if ($conf->don->enabled)
{
$menu->add("/compta/dons/","Dons");
}
$menu->add("/compta/facture.php3","Factures");
$menu->add_submenu("/compta/paiement.php3","Paiements");
if ($user->comm > 0 && $conf->commercial )
{
$menu->add("/compta/propal.php3","Propales");
}
/*
* Sécurité accés client
*/
if ($user->societe_id == 0)
{
$menu->add("/compta/charges/index.php3","Charges");
$menu->add_submenu("/compta/sociales/","Prest. Sociales");
}
$menu->add("ca.php3","Chiffre d'affaire");
if ($user->societe_id == 0)
{
$menu->add_submenu("/compta/prev.php3","Prévisionnel");
$menu->add_submenu("/compta/comp.php3","Comparatif");
$menu->add_submenu("/compta/exercices.php3","Exercices");
$menu->add_submenu("/compta/casoc.php3","Par société");
}
if ($conf->compta->tva && $user->societe_id == 0)
{
$menu->add("/compta/tva/index.php3","TVA");
}
if ($user->societe_id == 0)
{
$menu->add("/compta/resultat/","Résultats");
$menu->add("/compta/bank/index.php3","Bank");
}
$menu->add("/fourn/index.php3", "Fournisseurs");
if ($user->compta > 0)
{
}
else
{
$menu->clear();
$menu->add("/index.php3","Accueil");
}
left_menu($menu->liste);
}
?>