[ 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/compta/ -> pre.inc.php (source)

   1  <?php
   2  /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
   3   * Copyright (C) 2004-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.49 2005/12/03 17:55:50 eldy Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/compta/pre.inc.php,v $
  21   */
  22  
  23  /**   
  24        \file           htdocs/compta/pre.inc.php
  25        \ingroup      compta
  26        \brief          Fichier gestionnaire du menu compta
  27  */
  28  
  29  require ("../main.inc.php");
  30  
  31  
  32  function llxHeader($head = "", $title="", $help_url='')
  33  {
  34      global $user, $conf, $langs;
  35  
  36      $user->getrights('banque');
  37  
  38      top_menu($head, $title);
  39  
  40      $menu = new Menu();
  41  
  42      // Les recettes
  43      if ($conf->societe->enabled)
  44      {
  45          $langs->load("commercial");
  46          $menu->add(DOL_URL_ROOT."/compta/clients.php", $langs->trans("Customers"));
  47      }
  48  
  49      if ($conf->propal->enabled)
  50      {
  51          $langs->load("propal");
  52          $menu->add(DOL_URL_ROOT."/compta/propal.php",$langs->trans("Prop"));
  53      }
  54  
  55      if ($conf->contrat->enabled)
  56      {
  57          $langs->load("contracts");
  58          $menu->add(DOL_URL_ROOT."/contrat/",$langs->trans("Contracts"));
  59      }
  60  
  61      if ($conf->don->enabled)
  62      {
  63          $langs->load("donations");
  64          $menu->add(DOL_URL_ROOT."/compta/dons/",$langs->trans("Donations"));
  65      }
  66  
  67      if ($conf->facture->enabled)
  68      {
  69          $langs->load("bills");
  70          $menu->add(DOL_URL_ROOT."/compta/facture.php",$langs->trans("Bills"));
  71          $menu->add_submenu(DOL_URL_ROOT."/compta/facture/impayees.php",$langs->trans("Unpayed"));
  72          $menu->add_submenu(DOL_URL_ROOT."/compta/paiement/liste.php",$langs->trans("Payments"));
  73  
  74          if (! defined(FACTURE_DISABLE_RECUR) || ! FACTURE_DISABLE_RECUR)
  75          {
  76              $menu->add_submenu(DOL_URL_ROOT."/compta/facture/fiche-rec.php","Récurrentes");
  77          }
  78  
  79          $menu->add_submenu(DOL_URL_ROOT."/compta/facture/stats/", $langs->trans("Statistics"));
  80      }
  81  
  82  
  83      if ($conf->commande->enabled && $conf->facture->enabled)
  84      {
  85          $langs->load("orders");
  86          $menu->add(DOL_URL_ROOT."/compta/commande/liste.php?leftmenu=orders&afacturer=1", $langs->trans("MenuOrdersToBill"));
  87      }
  88  
  89      // Les dépenses
  90      if ($conf->fournisseur->enabled)
  91      {
  92          $langs->load("suppliers");
  93          $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
  94      }
  95  
  96      if ($conf->deplacement->enabled && $user->societe_id == 0)
  97      {
  98          $langs->load("trips");
  99          $menu->add(DOL_URL_ROOT."/compta/deplacement/", $langs->trans("Trips"));
 100      }
 101  
 102      if ($conf->compta->enabled && $conf->compta->tva && $user->societe_id == 0)
 103      {
 104          $menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT"));
 105      }
 106  
 107      if ($conf->compta->enabled)
 108      {
 109          $menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges"));
 110      }
 111  
 112  
 113      // Vision des recettes-dépenses
 114      if ($conf->banque->enabled && $user->rights->banque->lire)
 115      {
 116          $langs->load("banks");
 117          $menu->add(DOL_URL_ROOT."/compta/bank/",$langs->trans("Bank"));
 118      }
 119  
 120      $menu->add(DOL_URL_ROOT."/compta/stats/",$langs->trans("Reportings"));
 121  
 122      if ($conf->prelevement->enabled)
 123      {
 124          $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrders"));
 125      }
 126  
 127      $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
 128  
 129      if ($user->rights->compta->ventilation->parametrer)
 130      {
 131          $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
 132      }
 133  
 134  
 135      left_menu($menu->liste, $help_url);
 136  }
 137  
 138  ?>


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