From 048035a05b443cb6a6ad009e6f02173ec1173a21 Mon Sep 17 00:00:00 2001 From: Grand Philippe Date: Sat, 23 Feb 2013 16:08:35 +0100 Subject: [PATCH] english language standardization --- htdocs/contact/fiche.php | 6 +++--- htdocs/contact/list.php | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 4151a2f078b..b48236acf03 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -633,7 +633,7 @@ else print $object->ref; print ''; - // Name + // Lastname print ''.$langs->trans("Lastname").' / '.$langs->trans("Label").'lastname).'">'; print ''.$langs->trans("Firstname").'firstname).'">'; @@ -811,9 +811,9 @@ else if ($action == 'create_user') { - // Full firstname and name separated with a dot : firstname.name + // Full firstname and lastname separated with a dot : firstname.lastname include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; - $login=dol_buildlogin($object->nom,$object->prenom); + $login=dol_buildlogin($object->lastname,$object->firstname); $generated_password=''; if (! $ldap_sid) // TODO ldap_sid ? diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index fe0187624fe..50853260350 100755 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -35,8 +35,8 @@ $contactid = GETPOST('id','int'); if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'contact', $contactid,''); -$search_nom=GETPOST("search_nom"); -$search_prenom=GETPOST("search_prenom"); +$search_lastname=GETPOST("search_lastname"); +$search_firstname=GETPOST("search_firstname"); $search_societe=GETPOST("search_societe"); $search_poste=GETPOST("search_poste"); $search_phone=GETPOST("search_phone"); @@ -87,8 +87,8 @@ if (! empty($text)) $titre.= " $text"; if (GETPOST('button_removefilter')) { - $search_nom=""; - $search_prenom=""; + $search_lastname=""; + $search_firstname=""; $search_societe=""; $search_poste=""; $search_phone=""; @@ -142,13 +142,13 @@ else if ($search_priv == '1') $sql .= " AND (p.priv='1' AND p.fk_user_creat=".$user->id.")"; } -if ($search_nom) // filtre sur le nom +if ($search_lastname) // filtre sur le nom { - $sql .= " AND p.name LIKE '%".$db->escape($search_nom)."%'"; + $sql .= " AND p.name LIKE '%".$db->escape($search_lastname)."%'"; } -if ($search_prenom) // filtre sur le prenom +if ($search_firstname) // filtre sur le prenom { - $sql .= " AND p.firstname LIKE '%".$db->escape($search_prenom)."%'"; + $sql .= " AND p.firstname LIKE '%".$db->escape($search_firstname)."%'"; } if ($search_societe) // filtre sur la societe { @@ -233,7 +233,7 @@ if ($result) $contactstatic=new Contact($db); $param ='&begin='.urlencode($begin).'&view='.urlencode($view).'&userid='.urlencode($userid).'&contactname='.urlencode($sall); - $param.='&type='.urlencode($type).'&view='.urlencode($view).'&search_nom='.urlencode($search_nom).'&search_prenom='.urlencode($search_prenom).'&search_societe='.urlencode($search_societe).'&search_email='.urlencode($search_email); + $param.='&type='.urlencode($type).'&view='.urlencode($view).'&search_lastname='.urlencode($search_lastname).'&search_firstname='.urlencode($search_firstname).'&search_societe='.urlencode($search_societe).'&search_email='.urlencode($search_email); if ($search_priv == '0' || $search_priv == '1') $param.="&search_priv=".urlencode($search_priv); $num = $db->num_rows($result); @@ -279,10 +279,10 @@ if ($result) // Ligne des champs de filtres print ''; print ''; - print ''; + print ''; print ''; print ''; - print ''; + print ''; print ''; print ''; print '';