dolibarr/htdocs/contact/info.php

88 lines
2.2 KiB
PHP
Raw Normal View History

<?php
2004-01-31 12:35:05 +01:00
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
2004-01-31 12:35:05 +01:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*
*/
2004-10-23 02:46:54 +02:00
2004-12-25 19:37:40 +01:00
/**
2004-11-11 22:19:50 +01:00
\file htdocs/contact/info.php
2004-10-23 02:46:54 +02:00
\ingroup societe
2004-11-11 22:19:50 +01:00
\brief Onglet info d'un contact
2004-10-23 02:46:54 +02:00
\version $Revision$
*/
2004-01-31 12:35:05 +01:00
require("./pre.inc.php");
require("../contact.class.php");
2004-10-23 02:46:54 +02:00
2004-11-11 22:19:50 +01:00
$langs->load("companies");
2004-10-23 02:46:54 +02:00
2004-01-31 12:35:05 +01:00
llxHeader();
$contact = new Contact($db);
$contact->fetch($_GET["id"], $user);
$h=0;
2004-12-10 12:28:07 +01:00
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
2004-12-25 19:37:40 +01:00
$head[$h][1] = $langs->trans("General");
$h++;
2004-12-10 12:28:07 +01:00
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
2004-12-25 19:37:40 +01:00
$head[$h][1] = $langs->trans("PersonalInformations");
$h++;
2004-12-10 12:28:07 +01:00
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("VCard");
$h++;
2004-12-10 12:28:07 +01:00
$head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Info");
$hselected=$h;
$h++;
dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
2004-01-31 12:35:05 +01:00
/*
* Visualisation de la fiche
*
*/
print '<table width="100%"><tr><td>';
2004-01-31 12:35:05 +01:00
$contact->info($_GET["id"]);
print '</td></tr></table>';
2004-01-31 12:35:05 +01:00
if ($contact->socid > 0)
{
$objsoc = new Societe($db);
$objsoc->fetch($contact->socid);
2004-10-23 02:46:54 +02:00
print $langs->trans("Company").' : '.$objsoc->nom_url.'<br>';
2004-01-31 12:35:05 +01:00
}
2004-01-31 18:32:25 +01:00
dolibarr_print_object_info($contact);
2004-01-31 12:35:05 +01:00
print "<br></div>";
2004-01-31 12:35:05 +01:00
$db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
?>