diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php
index 9a887bf9fdb..723784d9a5d 100644
--- a/htdocs/contact/class/contact.class.php
+++ b/htdocs/contact/class/contact.class.php
@@ -908,7 +908,7 @@ class Contact extends CommonObject
*/
function getNomUrl($withpicto=0,$option='',$maxlen=0,$moreparam='')
{
- global $langs;
+ global $conf, $langs;
$result='';
$label = '' . $langs->trans("ShowContact") . '';
@@ -923,7 +923,14 @@ class Contact extends CommonObject
$label.= '
' . $langs->trans("Phone") . ': '.join(', ',$phonelist);
$label.= '
' . $langs->trans("Address") . ': '.dol_format_address($this, 1, ' ', $langs);
- $link = '';
+ $link = 'global->MAIN_OPTIMIZEFORTEXTBROWSER))
+ {
+ $label=$langs->trans("ShowContact");
+ $link.=' alt="'.dol_escape_htmltag($label, 1).'"';
+ }
+ $link.= ' title="'.dol_escape_htmltag($label, 1).'"';
+ $link.= ' class="classfortooltip">';
$linkend='';
if ($option == 'xxx')
diff --git a/htdocs/core/boxes/box_contacts.php b/htdocs/core/boxes/box_contacts.php
index 18a09af6ace..a1fc2768ba1 100644
--- a/htdocs/core/boxes/box_contacts.php
+++ b/htdocs/core/boxes/box_contacts.php
@@ -63,8 +63,9 @@ class box_contacts extends ModeleBoxes
if ($user->rights->societe->lire)
{
$sql = "SELECT sp.rowid as id, sp.lastname, sp.firstname, sp.civility as civility_id, sp.datec, sp.tms, sp.fk_soc, sp.statut as status";
- $sql.= ", s.nom as socname";
- $sql.= ", s.code_client";
+ $sql.= ", sp.address, sp.zip, sp.town, sp.phone, sp.phone_perso, sp.phone_mobile";
+ $sql.= ", s.nom as socname, s.name_alias";
+ $sql.= ", s.client, s.fournisseur, s.code_client, s.code_fournisseur";
$sql.= " FROM ".MAIN_DB_PREFIX."socpeople as sp";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON sp.fk_soc = s.rowid";
if (! $user->rights->societe->client->voir && ! $user->societe_id) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@@ -93,10 +94,21 @@ class box_contacts extends ModeleBoxes
$contactstatic->firstname=$objp->firstname;
$contactstatic->civility_id=$objp->civility_id;
$contactstatic->statut=$objp->status;
- $societestatic->id = $objp->fk_soc;
- $societestatic->code_client = $objp->code_client;
+ $contactstatic->phone_pro = $objp->phone;
+ $contactstatic->phone_perso = $objp->phone_perso;
+ $contactstatic->phone_mobile = $objp->phone_mobile;
+ $contactstatic->address = $objp->address;
+ $contactstatic->zip = $objp->zip;
+ $contactstatic->town = $objp->town;
+
+ $societestatic->id = $objp->fk_soc;
$societestatic->name = $objp->socname;
-
+ $societestatic->name_alias = $objp->name_alias;
+ $societestatic->code_client = $objp->code_client;
+ $societestatic->code_fournisseur = $objp->code_fournisseur;
+ $societestatic->client = $objp->client;
+ $societestatic->fournisseur = $objp->fournisseur;
+
$this->info_box_contents[$line][] = array(
'td' => 'align="left"',
'text' => $contactstatic->getNomUrl(1),
diff --git a/htdocs/index.php b/htdocs/index.php
index 5db358aa34b..818da8f9ecd 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -103,7 +103,7 @@ print '
';
* Informations area
*/
-print '
';
+print '';
print '| '.$langs->trans("Informations").' |
';
print '';
print '| '.$langs->trans("User").' | '.$user->getNomUrl(0).' |
';
@@ -129,7 +129,7 @@ $langs->load("contracts");
if (empty($user->societe_id))
{
print '
';
- print '';
+ print '';
print '';
print '| '.$langs->trans("DolibarrStateBoard").' | ';
print ' | ';
diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang
index e3fd6fadeec..3e93a48d7b5 100644
--- a/htdocs/langs/en_US/companies.lang
+++ b/htdocs/langs/en_US/companies.lang
@@ -305,7 +305,7 @@ ListOfCustomersContacts=List of customer contacts
ListOfSuppliersContacts=List of supplier contacts
ListOfCompanies=List of companies
ListOfThirdParties=List of third parties
-ShowCompany=Show company
+ShowCompany=Show thirdparty
ShowContact=Show contact
ContactsAllShort=All (No filter)
ContactType=Contact type
diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index 1f5f10c9178..fb99f819af2 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -1824,10 +1824,13 @@ class Societe extends CommonObject
}
if (! empty($this->name))
+ {
$label.= '
' . $langs->trans('Name') . ': '. $this->name;
- if (! empty($this->code_client))
+ if (! empty($this->name_alias)) $label.=' ('.$this->name_alias.')';
+ }
+ if (! empty($this->code_client) && $this->client)
$label.= '
' . $langs->trans('CustomerCode') . ': '. $this->code_client;
- if (! empty($this->code_fournisseur))
+ if (! empty($this->code_fournisseur) && $this->fournisseur)
$label.= '
' . $langs->trans('SupplierCode') . ': '. $this->code_fournisseur;
if (! empty($this->logo))
@@ -1841,7 +1844,16 @@ class Societe extends CommonObject
// Add type of canvas
$link.=(!empty($this->canvas)?'&canvas='.$this->canvas:'').'"';
- $link.=($notooltip?'':' title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip"');
+ if (empty($notooltip))
+ {
+ if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
+ {
+ $label=$langs->trans("ShowCompany");
+ $link.=' alt="'.dol_escape_htmltag($label, 1).'"';
+ }
+ $link.= ' title="'.dol_escape_htmltag($label, 1).'"';
+ $link.=' class="classfortooltip"';
+ }
$link.='>';
$linkend='';
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index ae985b22be5..a165a735f84 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -1911,7 +1911,17 @@ class User extends CommonObject
}
$link.= 'global->MAIN_OPTIMIZEFORTEXTBROWSER))
+ {
+ $langs->load("users");
+ $label=$langs->trans("ShowUser");
+ $link.=' alt="'.dol_escape_htmltag($label, 1).'"';
+ }
+ $link.= ' title="'.dol_escape_htmltag($label, 1).'"';
+ $link.= ' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
+ }
$link.= '>';
$linkend='';
@@ -1927,7 +1937,9 @@ class User extends CommonObject
}
if (abs($withpictoimg) != 2)
{
- $result.=''.$this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen).'
';
+ if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) $result.='';
+ $result.=$this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen);
+ if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) $result.='
';
}
$result.=$linkend;
//if ($withpictoimg == -1) $result.='';