diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 4a0b183f3a2..002ef9d455b 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -21,6 +21,14 @@ * $Source$ * */ + +/*! + \file htdocs/contact/fiche.php + \ingroup companies + \brief Page de la fiche contact + \version $Revision$ +*/ + require("./pre.inc.php"); require_once("../contact.class.php"); require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php"); @@ -138,6 +146,7 @@ if ($_GET["action"] == 'delete') } + /* * Onglets */ @@ -218,10 +227,6 @@ if ($_GET["action"] == 'create') print '
| Société : '.$objsoc->nom_url.' |
| '.$langs->trans("Company").' : '.$objsoc->nom_url.' |
| Titre : '.$contact->civilite." "; - print ' |
| Nom : '.$contact->name.' '.$contact->firstname ." "; - + print ' |
| '.$langs->trans("Name").' : '.$contact->name.' '.$contact->firstname ." "; if ($contact->poste) print 'Poste : '.$contact->poste ." "; - if ($contact->email) - print 'Email : '.$contact->email ." "; - - /* - * Pas le temps de comprendre les 2 regexp - * je laisse les deux, vu ce que cela coute ;-) - */ - - if (!ValidEmail($contact->email)) + if ($contact->email) { + print $langs->trans("EMail").' : '.$contact->email ." "; + + if (!ValidEmail($contact->email)) { - print "Email invalide ! "; + print "".$langs->trans("ErrorBadEMail",$contact->email)." "; } - - if (!valid_email($contact->email)) - { - print "Email invalide, syntaxe incorrecte ! "; - } - - /* - * Risque de poser des problèmes en cas de non connexion au Réseau - * TODO : ajouter une option pour désactiver ce test - * - */ - - if (!check_mail($contact->email)) + + /* + * Pose des problèmes en cas de non connexion au Réseau + * et en cas ou la fonction checkdnsrr n'est pas disponible dans php + * (cas fréquent sur certains hébergeurs) + */ + /* + if (!check_mail($contact->email)) { print "Email invalide, nom de domaine incorrecte ! "; } + */ + } + + /* * */ @@ -371,7 +368,7 @@ else print 'Portable : '.$contact->phone_mobile." "; if($contact->fax) - print 'Fax : '.$contact->fax." "; + print $langs->trans("Fax").' : '.$contact->fax." "; print ' |