From d68401e8defcffaa08d3490a81ca812056b78bb8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 2 Feb 2004 13:11:17 +0000 Subject: [PATCH] Ajout fonction pour imprimer les infos sur un objet --- htdocs/lib/functions.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 2bebb622d88..e9af3ca3b36 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -25,6 +25,14 @@ $yn[0] = "non"; $yn[1] = "oui"; +Function dolibarr_print_object_info($object) +{ + print "Créé par : " . $object->user_creation->fullname . '
'; + print "Date de création : " . strftime("%A %d %B %Y %H:%M:%S",$object->date_creation) . '
'; + print "Modifié par : " . '
'; + print "Date de modification : " . strftime("%A %d %B %Y %H:%M:%S",$object->date_modification) . '
'; +} + Function dolibarr_print_phone($phone) { if (strlen(trim($phone)) == 10) @@ -481,7 +489,7 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so print_fleche_navigation($page,$file,$options, $nextpage); - print '

'; + print ''; } /*