dolibarr/htdocs/adherents/pre.inc.php

63 lines
1.6 KiB
PHP
Raw Normal View History

2002-12-19 19:59:23 +01:00
<?PHP
2002-12-28 19:12:22 +01:00
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2002-12-19 19:59:23 +01: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-12-28 19:12:22 +01:00
* $Id$
* $Source$
*
2002-12-19 19:59:23 +01:00
*/
2003-03-05 18:34:22 +01:00
require($GLOBALS["DOCUMENT_ROOT"]."/main.inc.php3");
2002-12-19 19:59:23 +01:00
2002-12-28 19:12:22 +01:00
function llxHeader($head = "") {
2002-12-19 19:59:23 +01:00
global $user, $conf;
/*
*
*
*/
top_menu($head);
$menu = new Menu();
2002-12-29 21:31:51 +01:00
$menu->add("index.php","Adherents");
2002-12-30 22:05:46 +01:00
$menu->add_submenu("liste.php?statut=1","Adh<EFBFBD>rents <20> ce jour");
$menu->add_submenu("liste.php?statut=-1","Adh<EFBFBD>sions <20> valider");
$menu->add_submenu("liste.php?statut=0","Adh<EFBFBD>sions r<>sili<6C>es");
2002-12-29 21:31:51 +01:00
2002-12-29 22:07:42 +01:00
if ($user->admin)
{
2002-12-30 22:05:46 +01:00
$menu->add("fiche.php?action=create","Nouvel adh<64>rent");
2002-12-29 22:07:42 +01:00
}
2002-12-30 22:05:46 +01:00
2003-03-05 18:34:22 +01:00
$menu->add("/public/adherents/","Espace adherents public");
2002-12-30 22:05:46 +01:00
2002-12-29 21:31:51 +01:00
$menu->add("cotisations.php","Cotisations");
2002-12-28 19:12:22 +01:00
2002-12-29 22:07:42 +01:00
if ($user->admin)
{
2003-02-14 18:14:29 +01:00
$menu->add("index.php","Configuration");
$menu->add_submenu("type.php","Type d'adh<64>rent");
$menu->add_submenu("options.php","Champs optionnels");
2002-12-29 22:07:42 +01:00
}
2002-12-19 19:59:23 +01:00
left_menu($menu->liste);
2002-12-28 19:12:22 +01:00
}
2002-12-19 19:59:23 +01:00
?>