[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/telephonie/ligne/ -> pre.inc.php (source)

   1  <?PHP
   2  /* Copyright (C) 2004 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.13 2005/09/12 13:41:04 rodolphe Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/ligne/pre.inc.php,v $
  20   *
  21   */
  22  require ("../../main.inc.php");
  23  require(DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");
  24  
  25  $user->getrights('telephonie');
  26  
  27  function llxHeader($head = "", $title="") {
  28    global $user, $conf;
  29  
  30    /*
  31     *
  32     *
  33     */
  34    top_menu($head, $title);
  35  
  36    $menu = new Menu();
  37  
  38    $menu->add(DOL_URL_ROOT."/telephonie/index.php", "Telephonie");
  39  
  40    if (TELEPHONIE_MODULE_SIMULATION == 1)
  41      {
  42        $menu->add(DOL_URL_ROOT."/telephonie/simulation/fiche.php", "Simulation");
  43        $menu->add_submenu(DOL_URL_ROOT."/telephonie/simulation/fiche.php?action=create", "Nouvelle");
  44      }
  45  
  46    $menu->add(DOL_URL_ROOT."/telephonie/client/index.php", "Clients");
  47  
  48    $menu->add(DOL_URL_ROOT."/telephonie/contrat/", "Contrats");
  49  
  50    $menu->add(DOL_URL_ROOT."/telephonie/ligne/index.php", "Lignes");
  51    $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/liste.php", "Liste");
  52    if ($user->rights->telephonie->ligne_commander)    
  53      $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/commande/liste.php", "A commander");
  54    if ($user->rights->telephonie->ligne_commander)    
  55      $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/listecommande.php", "En commande");
  56  
  57    //  $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/communications.php", "Communications");
  58  
  59    if (TELEPHONIE_MODULE_GROUPES == 1 && $user->rights->telephonie->configurer)
  60      $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/groupe.php", "Groupes");
  61  
  62    if (TELEPHONIE_MODULE_NUMDATA == 1 && $user->rights->telephonie->configurer)
  63      $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/numdata.php", "Numéros data");
  64  
  65    if ($user->rights->telephonie->ligne_commander)    
  66      $menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
  67  
  68    if ($user->rights->telephonie->stats->lire)
  69      $menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
  70  
  71    if ($user->rights->telephonie->facture->lire)
  72      $menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
  73  
  74    $menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");
  75  
  76    if ($user->rights->telephonie->fournisseur->lire)
  77      $menu->add(DOL_URL_ROOT."/telephonie/fournisseur/", "Fournisseurs");
  78  
  79    if ($user->rights->telephonie->ca->lire)
  80      $menu->add(DOL_URL_ROOT."/telephonie/ca/", "Chiffre d'affaire");
  81  
  82    left_menu($menu->liste);
  83  }
  84  
  85  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics