dolibarr/htdocs/fourn/pre.inc.php

61 lines
1.5 KiB
PHP
Raw Normal View History

2002-05-06 21:10:48 +02:00
<?PHP
2003-01-28 18:43:59 +01:00
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2002-05-06 21:10:48 +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-05-29 17:18:01 +02:00
* $Id$
* $Source$
*
2002-05-06 21:10:48 +02:00
*/
2003-09-11 22:18:51 +02:00
require("../main.inc.php");
2002-05-06 21:10:48 +02:00
2003-06-24 01:42:21 +02:00
function llxHeader($head = "", $urlp = "")
{
2002-05-06 21:10:48 +02:00
global $user, $conf;
/*
*
*
*/
top_menu($head);
2002-05-09 16:57:48 +02:00
$menu = new Menu();
2002-05-06 21:10:48 +02:00
2003-08-04 14:41:27 +02:00
$menu->add(DOL_URL_ROOT."/fourn/index.php", "Fournisseurs");
2002-05-06 21:10:48 +02:00
2003-03-23 19:21:06 +01:00
/*
* S<EFBFBD>curit<EFBFBD> acc<EFBFBD>s client
*/
2003-03-23 19:21:48 +01:00
if ($user->societe_id == 0)
2003-03-23 19:21:06 +01:00
{
2003-10-21 16:56:56 +02:00
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create","Nouvelle soci<63>t<EFBFBD>");
2003-05-13 16:27:40 +02:00
}
2003-09-11 22:18:51 +02:00
$menu->add_submenu("contact.php","Contacts");
2002-05-06 21:10:48 +02:00
2003-08-04 14:41:27 +02:00
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", "Factures");
2002-06-25 19:08:58 +02:00
2003-05-13 16:27:40 +02:00
if ($user->societe_id == 0)
{
2003-09-11 22:18:51 +02:00
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create","Nouvelle");
2003-03-23 19:21:06 +01:00
}
2003-06-24 01:42:21 +02:00
2003-10-08 19:07:24 +02:00
$menu->add(DOL_URL_ROOT."/product/liste.php?type=0","Produits");
2002-05-09 16:57:48 +02:00
left_menu($menu->liste);
2002-05-06 21:10:48 +02:00
}
?>