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

   1  <?php
   2  /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
   3   * Copyright (C) 2004 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: info.php,v 1.13 2005/09/07 21:50:10 eldy Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/contact/info.php,v $
  21   *
  22   */
  23  
  24  /**
  25          \file       htdocs/contact/info.php
  26          \ingroup    societe
  27          \brief      Onglet info d'un contact
  28          \version    $Revision: 1.13 $
  29  */
  30  
  31  require ("./pre.inc.php");
  32  require_once (DOL_DOCUMENT_ROOT."/contact.class.php");
  33  
  34  $langs->load("companies");
  35  
  36  llxHeader();
  37  
  38  
  39  $contact = new Contact($db);
  40  $contact->fetch($_GET["id"], $user);
  41  
  42  
  43  $h=0;
  44  $head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
  45  $head[$h][1] = $langs->trans("General");
  46  $h++;
  47  
  48  $head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
  49  $head[$h][1] = $langs->trans("PersonalInformations");
  50  $h++;
  51  
  52  $head[$h][0] = DOL_URL_ROOT.'/contact/exportimport.php?id='.$_GET["id"];
  53  $head[$h][1] = $langs->trans("ExportImport");
  54  $h++;
  55  
  56  $head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"];
  57  $head[$h][1] = $langs->trans("Info");
  58  $hselected=$h;
  59  $h++;
  60  
  61  dolibarr_fiche_head($head, $hselected, $langs->trans("Contact").": ".$contact->firstname.' '.$contact->name);
  62  
  63  /*
  64   * Visualisation de la fiche
  65   *
  66   */
  67  
  68  print '<table width="100%"><tr><td>';
  69  $contact->info($_GET["id"]);
  70  print '</td></tr></table>';
  71    
  72  if ($contact->socid > 0)
  73  {
  74    $objsoc = new Societe($db);
  75    $objsoc->fetch($contact->socid);
  76    
  77    print $langs->trans("Company").' : '.$objsoc->nom_url.'<br>';
  78  }
  79  
  80  dolibarr_print_object_info($contact);
  81  
  82  print "</div>";
  83  
  84  $db->close();
  85  
  86  llxFooter("<em>Derni&egrave;re modification $Date: 2005/09/07 21:50:10 $ r&eacute;vision $Revision: 1.13 $</em>");
  87  ?>


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