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_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 ' | '; - print 'Téléphone | '; + print ''.$langs->trans("Phone").' | '; if ($_GET["view"] == 'phone') { - print 'Portable | '; - print 'Fax | '; + print ''.$langs->trans("Mobile").' | '; + print ''.$langs->trans("Fax").' | '; } else { - print ''.$langs->trans("EMail").' | '; } print "'.$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 ' | '; }