diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php
index 079ecd01e03..e5b609e36d1 100644
--- a/htdocs/holiday/define_holiday.php
+++ b/htdocs/holiday/define_holiday.php
@@ -159,8 +159,8 @@ foreach($listUsers as $users)
print '
'.$users['rowid'].' | ';
print '';
$userstatic->id=$users['rowid'];
- $userstatic->nom=$users['name'];
- $userstatic->prenom=$users['firstname'];
+ $userstatic->lastname=$users['lastname'];
+ $userstatic->firstname=$users['firstname'];
print $userstatic->getNomUrl(1);
print ' | ';
print '';
diff --git a/htdocs/holiday/fiche.php b/htdocs/holiday/fiche.php
index 4e2375acca3..8602163b583 100644
--- a/htdocs/holiday/fiche.php
+++ b/htdocs/holiday/fiche.php
@@ -288,7 +288,7 @@ if ($action == 'confirm_send')
$subject = $societeName." - ".$langs->transnoentitiesnoconv("HolidaysToValidate");
// Content
- $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->prenom.",\n";
+ $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->firstname.",\n";
$message.= "\n";
$message.= "Veuillez trouver ci-dessous une demande de congés payés à valider.\n";
@@ -319,7 +319,7 @@ if ($action == 'confirm_send')
}
$message.= "\n";
- $message.= "- ".$langs->transnoentitiesnoconv("Name")." : ".$expediteur->prenom." ".$expediteur->nom."\n";
+ $message.= "- ".$langs->transnoentitiesnoconv("Name")." : ".$expediteur->firstname." ".$expediteur->lastname."\n";
$message.= "- ".$langs->transnoentitiesnoconv("Period")." : ".dol_print_date($cp->date_debut,'day')." ".$langs->transnoentitiesnoconv("To")." ".dol_print_date($cp->date_fin,'day')."\n";
$message.= "- ".$langs->transnoentitiesnoconv("Link")." : ".$dolibarr_main_url_root."/holiday/fiche.php?id=".$cp->rowid."\n\n";
$message.= "\n";
@@ -397,10 +397,10 @@ if($action == 'confirm_valid')
$subject = $societeName." - ".$langs->transnoentitiesnoconv("HolidaysValidated");
// Content
- $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->prenom.",\n";
+ $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->firstname.",\n";
$message.= "\n";
$message.= "Votre demande de congés payés du ".dol_print_date($cp->date_debut,'day')." au ".dol_print_date($cp->date_fin,'day')." vient d'être validée!\n";
- $message.= "- ".$langs->transnoentitiesnoconv("ValidatedBy")." : ".$expediteur->prenom." ".$expediteur->nom."\n";
+ $message.= "- ".$langs->transnoentitiesnoconv("ValidatedBy")." : ".$expediteur->firstname." ".$expediteur->lastname."\n";
$message.= "- ".$langs->transnoentitiesnoconv("Link")." : ".$dolibarr_main_url_root."/holiday/fiche.php?id=".$cp->rowid."\n\n";
$message.= "\n";
@@ -465,11 +465,11 @@ if ($action == 'confirm_refuse')
$subject = $societeName." - ".$langs->transnoentitiesnoconv("HolidaysRefused");
// Content
- $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->prenom.",\n";
+ $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->firstname.",\n";
$message.= "\n";
$message.= "Votre demande de congés payés ".dol_print_date($cp->date_debut,'day')." ".$langs->transnoentitiesnoconv("To")." ".dol_print_date($cp->date_fin,'day')." vient d'être refusée pour le motif suivant :\n";
$message.= $_POST['detail_refuse']."\n\n";
- $message.= "- ".$langs->transnoentitiesnoconv("ModifiedBy")." : ".$expediteur->prenom." ".$expediteur->nom."\n";
+ $message.= "- ".$langs->transnoentitiesnoconv("ModifiedBy")." : ".$expediteur->firstname." ".$expediteur->lastname."\n";
$message.= "- ".$langs->transnoentitiesnoconv("Link")." : ".$dolibarr_main_url_root."/holiday/fiche.php?id=".$cp->rowid."\n\n";
$message.= "\n";
@@ -536,10 +536,10 @@ if ($action == 'confirm_cancel' && $_GET['confirm'] == 'yes')
$subject = $societeName." - ".$langs->transnoentitiesnoconv("HolidaysCanceled");
// Content
- $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->prenom.",\n";
+ $message = $langs->transnoentitiesnoconv("Hello")." ".$destinataire->firstname.",\n";
$message.= "\n";
$message.= "Votre demande de congés ".dol_print_date($cp->date_debut,'day')." ".$langs->transnoentitiesnoconv("To")." ".dol_print_date($cp->date_fin,'day')." va été annulée.\n";
- $message.= "- ".$langs->transnoentitiesnoconv("ModifiedBy")." : ".$expediteur->prenom." ".$expediteur->nom."\n";
+ $message.= "- ".$langs->transnoentitiesnoconv("ModifiedBy")." : ".$expediteur->firstname." ".$expediteur->lastname."\n";
$message.= "- ".$langs->transnoentitiesnoconv("Link")." : ".$dolibarr_main_url_root."/holiday/fiche.php?id=".$cp->rowid."\n\n";
$message.= "\n";
diff --git a/htdocs/holiday/index.php b/htdocs/holiday/index.php
index 16d2edddf7e..d084c0ce2ef 100644
--- a/htdocs/holiday/index.php
+++ b/htdocs/holiday/index.php
@@ -211,12 +211,12 @@ if ($id > 0)
print ' | ';
print '';
- // Nom
+ // LastName
print '| '.$langs->trans("LastName").' | ';
print ''.$fuser->lastname.' | ';
print "
\n";
- // Prenom
+ // FirstName
print '| '.$langs->trans("FirstName").' | ';
print ''.$fuser->firstname.' | ';
print "
\n";
diff --git a/htdocs/holiday/month_report.php b/htdocs/holiday/month_report.php
index 940a870c781..de0ae3a9960 100644
--- a/htdocs/holiday/month_report.php
+++ b/htdocs/holiday/month_report.php
@@ -126,7 +126,7 @@ if($num == '0') {
print '';
print '| '.$holidaystatic->getNomUrl(1).' | ';
- print ''.$user->nom.' '.$user->prenom.' | ';
+ print ''.$user->lastname.' '.$user->firstname.' | ';
print ''.dol_print_date($start_date,'day');
print ' | ';
print ''.dol_print_date($end_date,'day');
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index 19988738e8e..682c46f75a9 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -412,8 +412,8 @@ if ($id > 0 || ! empty($ref))
else
{
$userstatic->id = $task_time->fk_user;
- $userstatic->nom = $task_time->name;
- $userstatic->prenom = $task_time->firstname;
+ $userstatic->lastname = $task_time->lastname;
+ $userstatic->firstname = $task_time->firstname;
print $userstatic->getNomUrl(1);
}
print ' | ';
diff --git a/htdocs/public/donations/donateurs_code.php b/htdocs/public/donations/donateurs_code.php
index 508b0c55fcf..f354cffe8a1 100644
--- a/htdocs/public/donations/donateurs_code.php
+++ b/htdocs/public/donations/donateurs_code.php
@@ -54,7 +54,7 @@ $langs->load("donations");
llxHeaderVierge();
-$sql = "SELECT d.datedon as datedon, d.nom, d.prenom, d.amount, d.public, d.societe";
+$sql = "SELECT d.datedon as datedon, d.lastname, d.firstname, d.amount, d.public, d.societe";
$sql.= " FROM ".MAIN_DB_PREFIX."don as d";
$sql.= " WHERE d.fk_statut in (2, 3) ORDER BY d.datedon DESC";
@@ -84,7 +84,7 @@ if ($resql)
print "
";
if ($objp->public)
{
- print "| ".$objp->prenom." ".$objp->nom." ".$objp->societe." | \n";
+ print "".$objp->firstname." ".$objp->lastname." ".$objp->societe." | \n";
}
else
{
diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php
index 5d2ef581a7a..078994e3f9a 100644
--- a/htdocs/public/members/new.php
+++ b/htdocs/public/members/new.php
@@ -187,7 +187,7 @@ if ($action == 'add')
$error+=1;
$errmsg .= $langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Lastname"))."
\n";
}
- if (empty($_POST["prenom"]))
+ if (empty($_POST["firstname"]))
{
$error+=1;
$errmsg .= $langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Firstname"))."
\n";
@@ -223,8 +223,8 @@ if ($action == 'add')
$adh = new Adherent($db);
$adh->statut = -1;
$adh->public = $_POST["public"];
- $adh->prenom = $_POST["prenom"];
- $adh->nom = $_POST["nom"];
+ $adh->firstname = $_POST["firstname"];
+ $adh->lastname = $_POST["lastname"];
$adh->civilite_id = $_POST["civilite_id"];
$adh->societe = $_POST["societe"];
$adh->address = $_POST["address"];
@@ -448,9 +448,9 @@ else
print '
| '.$langs->trans('UserTitle').' | ';
print $formcompany->select_civility(GETPOST('civilite_id'),'civilite_id').' |
'."\n";
// Lastname
-print '| '.$langs->trans("Lastname").' * | |
'."\n";
+print '| '.$langs->trans("Lastname").' * | |
'."\n";
// Firstname
-print '| '.$langs->trans("Firstname").' * | |
'."\n";
+print '| '.$langs->trans("Firstname").' * | |
'."\n";
// Company
print '| '.$langs->trans("Company").' | |
'."\n";
// Address
diff --git a/htdocs/public/members/public_list.php b/htdocs/public/members/public_list.php
index 13fced8eda2..00d09e67112 100644
--- a/htdocs/public/members/public_list.php
+++ b/htdocs/public/members/public_list.php
@@ -101,14 +101,14 @@ if (! $sortfield) { $sortfield="nom"; }
llxHeaderVierge($langs->trans("ListOfValidatedPublicMembers"));
-$sql = "SELECT rowid, prenom, nom, societe, cp as zip, town, email, naiss, photo";
+$sql = "SELECT rowid, firstname, lastname, societe, cp as zip, town, email, naiss, photo";
$sql.= " FROM ".MAIN_DB_PREFIX."adherent";
$sql.= " WHERE entity = ".$entity;
$sql.= " AND statut = 1";
$sql.= " AND public = 1";
$sql.= $db->order($sortfield,$sortorder);
$sql.= $db->plimit($conf->liste_limit+1, $offset);
-//$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, cp, town, d.email, t.libelle as type, d.morphy, d.statut, t.cotisation";
+//$sql = "SELECT d.rowid, d.firstname, d.lastname, d.societe, cp, town, d.email, t.libelle as type, d.morphy, d.statut, t.cotisation";
//$sql .= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."adherent_type as t";
//$sql .= " WHERE d.fk_adherent_type = t.rowid AND d.statut = $statut";
//$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset);
@@ -124,8 +124,8 @@ if ($result)
print '';
print '';
- print '| '.$langs->trans("Firstname").'';
- print ' '.$langs->trans("Lastname").'';
+ print ' | '.$langs->trans("Firstname").'';
+ print ' '.$langs->trans("Lastname").'';
print ' / '.$langs->trans("Company").' | '."\n";
//print_liste_field_titre($langs->trans("DateToBirth"),"public_list.php","naiss",'',$param,$sortfield,$sortorder); // est-ce nécessaire ??
print_liste_field_titre($langs->trans("EMail"),"public_list.php","email",'',$param,$sortfield,$sortorder);
@@ -140,7 +140,7 @@ if ($result)
$objp = $db->fetch_object($result);
$var=!$var;
print "
";
- print '| '.$objp->prenom.' '.$objp->nom.($objp->societe?' / '.$objp->societe:'').' | '."\n";
+ print ''.$objp->firstname.' '.$objp->lastname.($objp->societe?' / '.$objp->societe:'').' | '."\n";
//print "$objp->naiss | \n"; // est-ce nécessaire ??
print ''.$objp->email.' | '."\n";
print ''.$objp->zip.' | '."\n";
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index 11056d4381a..c196327e5a2 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -112,11 +112,11 @@ if (empty($reshook))
{
$object->particulier = GETPOST("private");
- $object->name = empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)?GETPOST('prenom').' '.GETPOST('nom'):GETPOST('nom').' '.GETPOST('prenom');
+ $object->name = empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)?GETPOST('firstname').' '.GETPOST('nom'):GETPOST('nom').' '.GETPOST('firstname');
$object->civilite_id = GETPOST('civilite_id');
// Add non official properties
$object->name_bis = GETPOST('nom');
- $object->firstname = GETPOST('prenom');
+ $object->firstname = GETPOST('firstname');
}
else
{
@@ -748,7 +748,7 @@ else
// If javascript on, we show option individual
if ($conf->use_javascript_ajax)
{
- print '
| '.$langs->trans('FirstName').' | | ';
+ print '
| '.$langs->trans('FirstName').' | | ';
print ' |
';
print '| '.$langs->trans("UserTitle").' | ';
print $formcompany->select_civility($object->civility_id).' | ';