dolibarr/htdocs/user/pre.inc.php

55 lines
1.4 KiB
PHP
Raw Normal View History

2004-10-20 23:06:45 +02:00
<?php
2002-05-06 21:10:48 +02:00
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2005-01-02 14:11:07 +01:00
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
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-12-18 19:02:06 +01:00
* $Id$
* $Source$
2002-05-06 21:10:48 +02:00
*/
2005-01-02 14:11:07 +01:00
/**
\file htdocs/user/pre.inc.php
\brief Gestionnaire menu fichier users
\version $Revision$
*/
2003-09-11 22:18:51 +02:00
require("../main.inc.php");
2002-05-06 21:10:48 +02:00
2003-06-29 13:49:56 +02:00
function llxHeader($head = "", $urlp = "")
{
2005-01-02 14:11:07 +01:00
global $user,$langs;
2002-05-06 21:10:48 +02:00
/*
*
*
*/
top_menu($head);
2002-05-09 16:57:48 +02:00
$menu = new Menu();
2002-05-06 21:10:48 +02:00
2005-01-02 14:11:07 +01:00
$menu->add(DOL_URL_ROOT."/user/", $langs->trans("Users"));
2002-12-23 00:06:25 +01:00
if($user->admin)
{
2005-01-02 15:49:04 +01:00
$menu->add_submenu(DOL_URL_ROOT."/user/fiche.php?&amp;action=create", $langs->trans("NewUser"));
2002-12-23 00:06:25 +01:00
}
2002-05-06 21:10:48 +02:00
2002-05-09 16:57:48 +02:00
left_menu($menu->liste);
2002-05-06 21:10:48 +02:00
}
?>