diff --git a/htdocs/contact/index.php b/htdocs/contact/index.php index ab254db7e2b..4e1e8d813ff 100644 --- a/htdocs/contact/index.php +++ b/htdocs/contact/index.php @@ -21,8 +21,20 @@ * $Source$ * */ + + +/*! + \file htdocs/contact/index.php + \ingroup societe + \brief Page liste des contacts + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("companies"); + + /* * Sécurité accés client */ @@ -138,23 +150,23 @@ if ($result) } print '

'; print ''; - print ''; + print ''; if ($_GET["view"] == 'phone') { - print ''; - print ''; + print ''; + print ''; } else { - print ''; + print ''; } print "\n"; @@ -191,11 +203,17 @@ if ($result) } else { - print ''; }
'; - print_liste_field_titre("Nom","index.php","lower(p.name)", $begin); + print_liste_field_titre($langs->trans("Lastname"),"index.php","lower(p.name)", $begin); print ""; - print_liste_field_titre("Prénom","index.php","lower(p.firstname)", $begin); + print_liste_field_titre($langs->trans("Firstname"),"index.php","lower(p.firstname)", $begin); print ""; - print_liste_field_titre("Société","index.php","lower(s.nom)", $begin); + print_liste_field_titre($langs->trans("Company"),"index.php","lower(s.nom)", $begin); print 'Téléphone'.$langs->trans("Phone").'PortableFax'.$langs->trans("Mobile").''.$langs->trans("Fax").'email'.$langs->trans("EMail").'
'.$obj->email.' '; - if (!valid_email($obj->email)) - { - print "Email Invalide !"; - } + print ''; + if (! $obj->email) { + print ' '; + } + elseif (! ValidEmail($obj->email)) + { + print "Email Invalide !"; + } + else { + print ''.$obj->email.''; + } print '