diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 9bbb684e831..e1a5468cfb9 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -921,7 +921,11 @@ class Contact extends CommonObject //if ($this->civility_id) $label.= '
' . $langs->trans("Civility") . ': '.$this->civility_id; // TODO Translate cibilty_id code $label.= '
' . $langs->trans("Poste") . ': '.$this->poste; $label.= '
' . $langs->trans("EMail") . ': '.$this->email; - $label.= '
' . $langs->trans("Phone") . ': '.join(', ',array($this->phone_pro,$this->phone_mobile,$this->phone_perso)); + $phonelist=array(); + if ($this->phone_pro) $phonelist[]=$this->phone_pro; + if ($this->phone_mobile) $phonelist[]=$this->phone_mobile; + if ($this->phone_pesro) $phonelist[]=$this->phone_perso; + $label.= '
' . $langs->trans("Phone") . ': '.join(', ',$phonelist); $label.= '
' . $langs->trans("Address") . ': '.dol_format_address($this, 1, ' ', $langs); $link = ''; diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index 11d46ad3fc4..29c95334a3f 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -131,7 +131,7 @@ $formother=new FormOther($db); $sql = "SELECT s.rowid as socid, s.nom as name,"; $sql.= " p.rowid as cidp, p.lastname as lastname, p.statut, p.firstname, p.poste, p.email, p.skype,"; -$sql.= " p.phone, p.phone_mobile, p.fax, p.fk_pays, p.priv, p.tms,"; +$sql.= " p.phone as phone_pro, p.phone_mobile, p.phone_perso, p.fax, p.fk_pays, p.priv, p.tms,"; $sql.= " co.code as country_code"; $sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_country as co ON co.rowid = p.fk_pays"; @@ -311,7 +311,7 @@ if ($result) print_liste_field_titre($langs->trans("DateModificationShort"),$_SERVER["PHP_SELF"],"p.tms", $begin, $param, 'align="center"', $sortfield,$sortorder); print_liste_field_titre($langs->trans("ContactVisibility"),$_SERVER["PHP_SELF"],"p.priv", $begin, $param, 'align="center"', $sortfield,$sortorder); print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"p.statut", $begin, $param, 'align="center"', $sortfield,$sortorder); - print ' '; + print_liste_field_titre(''); print "\n"; // Ligne des champs de filtres @@ -377,6 +377,10 @@ if ($result) $contactstatic->firstname=''; $contactstatic->id=$obj->cidp; $contactstatic->statut=$obj->statut; + $contactstatic->poste=$obj->poste; + $contactstatic->phone_pro=$obj->phone_pro; + $contactstatic->phone_perso=$obj->phone_perso; + $contactstatic->phone_mobile=$obj->phone_mobile; print $contactstatic->getNomUrl(1,'',20); print ''; @@ -403,7 +407,7 @@ if ($result) } // Phone - print ''.dol_print_phone($obj->phone,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').''; + print ''.dol_print_phone($obj->phone_pro,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').''; // Phone mobile print ''.dol_print_phone($obj->phone_mobile,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').''; // Fax diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 331352812ca..35f634481eb 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5146,11 +5146,11 @@ class Form */ global $dolibarr_main_url_root; $ret.=''; - $ret.='Gravatar avatar'; // gravatar need md5 hash + $ret.='Gravatar avatar'; // gravatar need md5 hash } else { - $ret.='No photo'; + $ret.='No photo'; } } diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 1ccb594e472..98679f5be37 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1442,6 +1442,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a $toprightmenu.=$user->getPhotoUrl(16,16,'loginphoto'); $toprightmenu.=''; + // Login name with tooltip $toprightmenu.='
'; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index df1a9741d56..0e59d540573 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -2551,7 +2551,7 @@ div.dolgraph div.legend table tbody tr { height: auto; } } .photowithmargin { margin-bottom: 2px; - margin-top: 2px; + margin-top: 10px; } .photowithmargin { -webkit-box-shadow: 0px 0px 3px #777; diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 9d29659bb68..f40f47adb80 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1855,7 +1855,7 @@ class User extends CommonObject if (! empty($this->photo)) { $label.= '
'; - $label.= Form::showphoto('userphoto', $this, 80); + $label.= Form::showphoto('userphoto', $this, 80, 0, 0, 'photowithmargin photologintooltip'); $label.= '
'; }