From 46ae8942a9cf3a2f1772ee4ca6a7df68362baa4f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Feb 2005 20:22:38 +0000 Subject: [PATCH] New: Personalisation des picto. --- htdocs/fourn/contact.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/htdocs/fourn/contact.php b/htdocs/fourn/contact.php index 60c5ccfa163..a9b01222893 100644 --- a/htdocs/fourn/contact.php +++ b/htdocs/fourn/contact.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * 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 @@ -20,6 +20,7 @@ * $Source$ * */ + require("./pre.inc.php"); $langs->load("companies"); @@ -54,10 +55,8 @@ $offset = $limit * $page ; /* - * * Mode liste * - * */ $sql = "SELECT s.idp, s.nom, st.libelle as stcomm, p.idp as cidp, p.name, p.firstname, p.email, p.phone "; @@ -110,8 +109,7 @@ if ($result) { print ''.$obj->name.''; print ''.$obj->firstname.''; - print ' '; - print "idp\">$obj->nom\n"; + print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.''; print "$obj->email \n"; print ''.$obj->phone.''; @@ -120,10 +118,11 @@ if ($result) { } print ""; $db->free(); -} else { - print_barre_liste("Liste des contacts $label",$page, "contact.php"); - - print $db->error(); + +} +else +{ + dolibarr_print_error($db); } $db->close();