From 890b66c16f5ca5c5bddbb2829111bad69f5f394b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 31 Jan 2004 11:35:05 +0000 Subject: [PATCH] Correction bug --- htdocs/contact/info.php | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 htdocs/contact/info.php diff --git a/htdocs/contact/info.php b/htdocs/contact/info.php new file mode 100644 index 00000000000..a9abede2a33 --- /dev/null +++ b/htdocs/contact/info.php @@ -0,0 +1,64 @@ + + * + * 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$ + * + */ +require("./pre.inc.php"); +require("../contact.class.php"); +/* + * + * + */ +llxHeader(); + +print '
'; +print 'Général'; +print 'Informations personnelles'; +print 'VCard'; +print 'Info'; +print '
'; +print '
'; + +/* + * Visualisation de la fiche + * + */ + +$contact = new Contact($db); +$contact->fetch($_GET["id"], $user); +$contact->info($_GET["id"]); + +print_fiche_titre ("Contact : ". $contact->firstname.' '.$contact->name); + +if ($contact->socid > 0) +{ + $objsoc = new Societe($db); + $objsoc->fetch($contact->socid); + + print 'Société : '.$objsoc->nom.'
'; +} +print "Créé par : " . $contact->user_creation->fullname . '
'; +print "Date de création : " . strftime("%A %d %B %Y %H:%M:%S",$contact->date_creation) . '
'; +print "Modifié par : " . '
'; +print "Date de modification : " . strftime("%A %d %B %Y %H:%M:%S",$contact->date_modification) . '
'; + +$db->close(); + +llxFooter("Dernière modification $Date$ révision $Revision$"); +?>