[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2002,2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: pre.inc.php,v 1.13 2005/12/08 23:13:56 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/user/pre.inc.php,v $ 21 */ 22 23 /** 24 \file htdocs/user/pre.inc.php 25 \brief Gestionnaire menu fichier users 26 \version $Revision: 1.13 $ 27 */ 28 29 require ("../main.inc.php"); 30 31 $user->getrights('user'); 32 33 function llxHeader($head = "", $title = "") 34 { 35 global $user,$langs; 36 37 top_menu($head, $title); 38 39 $menu = new Menu(); 40 41 if ($user->rights->user->user->lire || $user->admin) 42 { 43 $menu->add(DOL_URL_ROOT."/user/home.php", $langs->trans("Users")); 44 $menu->add_submenu(DOL_URL_ROOT."/user/", $langs->trans("List")); 45 } 46 47 if($user->rights->user->user->creer || $user->admin) 48 { 49 $menu->add_submenu(DOL_URL_ROOT."/user/fiche.php?&action=create", $langs->trans("NewUser")); 50 } 51 52 if ($user->rights->user->user->lire || $user->admin) 53 { 54 $menu->add(DOL_URL_ROOT."/user/home.php", $langs->trans("Groups")); 55 $menu->add_submenu(DOL_URL_ROOT."/user/group/", $langs->trans("List")); 56 } 57 58 if($user->rights->user->user->creer || $user->admin) 59 { 60 $menu->add_submenu(DOL_URL_ROOT."/user/group/fiche.php?&action=create", $langs->trans("NewGroup")); 61 } 62 63 64 left_menu($menu->liste); 65 } 66 67 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |