[ 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/societe/ -> info.php (source)

   1  <?php
   2  /* Copyright (C) 2004-2005 Laurent Destailleur  <eldy@users.sourceforge.net>
   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: info.php,v 1.2 2005/12/02 13:21:51 hregis Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/societe/info.php,v $
  20   */
  21  
  22  /**
  23          \file       htdocs/societe/info.php
  24          \ingroup    societe
  25          \brief      Page des informations d'une societe
  26          \version    $Revision: 1.2 $
  27  */
  28  
  29  require ("./pre.inc.php");
  30  require_once  (DOL_DOCUMENT_ROOT."/societe.class.php");
  31  
  32  $langs->load("companies");
  33  $langs->load("other");
  34  
  35  llxHeader();
  36  
  37  
  38  /*
  39   * Visualisation de la fiche
  40   *
  41   */
  42  
  43  $soc = new Societe($db);
  44  $soc->id = $_GET["socid"];
  45  $soc->fetch($_GET["socid"]);
  46  $soc->info($_GET["socid"]);
  47  
  48  $h=0;
  49  
  50  $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$soc->id;
  51  $head[$h][1] = $langs->trans("Company");
  52  $h++;
  53  
  54  if ($soc->client==1)
  55  {
  56      $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id;
  57      $head[$h][1] = $langs->trans("Customer");
  58      $h++;
  59  }
  60  if ($soc->client==2)
  61  {
  62      $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$soc->id;
  63      $head[$h][1] = $langs->trans("Prospect");
  64      $h++;
  65  }
  66  if ($soc->fournisseur)
  67  {
  68      $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$soc->id;
  69      $head[$h][1] = $langs->trans("Supplier");;
  70      $h++;
  71  }
  72  
  73  if ($conf->compta->enabled) {
  74      $langs->load("compta");
  75      $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$soc->id;
  76      $head[$h][1] = $langs->trans("Accountancy");
  77      $h++;
  78  }
  79  
  80  $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$soc->id;
  81  $head[$h][1] = $langs->trans("Note");
  82  $h++;
  83  
  84  if ($user->societe_id == 0)
  85  {
  86      $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$soc->id;
  87      $head[$h][1] = $langs->trans("Documents");
  88      $h++;
  89  }
  90  
  91  $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id;
  92  $head[$h][1] = $langs->trans("Notifications");
  93  $h++;
  94  
  95  $head[$h][0] = DOL_URL_ROOT.'/societe/info.php?socid='.$soc->id;
  96  $head[$h][1] = $langs->trans("Info");
  97  $hselected=$h;
  98  $h++;
  99  
 100  dolibarr_fiche_head($head, $hselected, $soc->nom);
 101  
 102  
 103  print '<table width="100%"><tr><td>';
 104  dolibarr_print_object_info($soc);
 105  print '</td></tr></table>';
 106  
 107  print '</div>';
 108  
 109  // Juste pour éviter bug IE qui réorganise mal div précédents si celui-ci absent
 110  print '<div class="tabsAction">';
 111  print '</div>';
 112  
 113  $db->close();
 114  
 115  llxFooter('$Date: 2005/12/02 13:21:51 $ - $Revision: 1.2 $');
 116  ?>


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