[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?PHP 2 /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: pre.inc.php,v 1.11 2005/09/12 13:36:21 rodolphe Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/pre.inc.php,v $ 20 * 21 */ 22 require ("../main.inc.php"); 23 require(DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php"); 24 $user->getrights('telephonie'); 25 26 function llxHeader($head = "", $title="") { 27 global $user; 28 29 /* 30 * 31 * 32 */ 33 top_menu($head, $title); 34 35 $menu = new Menu(); 36 37 if ($user->rights->telephonie->adsl->lire && TELEPHONIE_MODULE_ADSL == 1) 38 $menu->add(DOL_URL_ROOT."/telephonie/adsl/", "ADSL"); 39 40 $menu->add(DOL_URL_ROOT."/telephonie/index.php", "Telephonie"); 41 42 if (TELEPHONIE_MODULE_SIMULATION == 1) 43 { 44 $menu->add(DOL_URL_ROOT."/telephonie/simulation/fiche.php", "Simulation"); 45 $menu->add_submenu(DOL_URL_ROOT."/telephonie/simulation/fiche.php?action=create", "Nouvelle"); 46 } 47 48 49 50 $menu->add(DOL_URL_ROOT."/telephonie/client/index.php", "Clients"); 51 if ($user->rights->telephonie->ligne->creer) 52 $menu->add_submenu(DOL_URL_ROOT."/telephonie/client/new.php", "Nouveau client"); 53 54 $menu->add(DOL_URL_ROOT."/telephonie/contrat/", "Contrats"); 55 56 $menu->add(DOL_URL_ROOT."/telephonie/ligne/index.php", "Lignes"); 57 58 if ($user->rights->telephonie->ligne_commander) 59 $menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes"); 60 61 if ($user->rights->telephonie->facture->lire) 62 $menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures"); 63 64 if ($user->rights->telephonie->stats->lire) 65 $menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques"); 66 67 $menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs"); 68 69 $menu->add(DOL_URL_ROOT."/telephonie/distributeurs/", "Distributeurs"); 70 71 if ($user->rights->telephonie->fournisseur->lire) 72 $menu->add(DOL_URL_ROOT."/telephonie/fournisseur/index.php", "Fournisseurs"); 73 74 if ($user->rights->telephonie->service->lire) 75 $menu->add(DOL_URL_ROOT."/telephonie/service/", "Services"); 76 77 if ($user->rights->telephonie->ca->lire) 78 $menu->add(DOL_URL_ROOT."/telephonie/ca/", "Chiffre d'affaire"); 79 80 if ($user->rights->telephonie->configurer) 81 $menu->add(DOL_URL_ROOT."/telephonie/config/", "Configuration"); 82 83 left_menu($menu->liste); 84 } 85 86 ?>
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 |
![]() |