diff --git a/htdocs/admin/events.php b/htdocs/admin/events.php
index 6092a95d0b9..892e0860cbd 100644
--- a/htdocs/admin/events.php
+++ b/htdocs/admin/events.php
@@ -86,7 +86,7 @@ print ' ';
$head=security_prepare_head();
-dol_fiche_head($head, 'audit', $langs->trans("Security"));
+dol_fiche_head($head, 'audit', $langs->trans("Security"), -1);
$var=true;
diff --git a/htdocs/admin/perms.php b/htdocs/admin/perms.php
index 4302222630c..84cb9ed8bf2 100644
--- a/htdocs/admin/perms.php
+++ b/htdocs/admin/perms.php
@@ -118,7 +118,7 @@ $db->commit();
$head=security_prepare_head();
-dol_fiche_head($head, 'default', $langs->trans("Security"));
+dol_fiche_head($head, 'default', $langs->trans("Security"), -1);
// Show warning about external users
diff --git a/htdocs/admin/proxy.php b/htdocs/admin/proxy.php
index 1f6e45223b4..84836407499 100644
--- a/htdocs/admin/proxy.php
+++ b/htdocs/admin/proxy.php
@@ -96,7 +96,7 @@ print ' ';
$head=security_prepare_head();
-dol_fiche_head($head, 'proxy', $langs->trans("Security"));
+dol_fiche_head($head, 'proxy', $langs->trans("Security"), -1);
if ($conf->use_javascript_ajax)
diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php
index 97cae20377c..3aa0bdf33bf 100644
--- a/htdocs/admin/security.php
+++ b/htdocs/admin/security.php
@@ -198,7 +198,7 @@ print " \n";
$head=security_prepare_head();
-dol_fiche_head($head, 'passwords', $langs->trans("Security"));
+dol_fiche_head($head, 'passwords', $langs->trans("Security"), -1);
$var=false;
diff --git a/htdocs/admin/security_file.php b/htdocs/admin/security_file.php
index f7a776c7249..0114bbb74b8 100644
--- a/htdocs/admin/security_file.php
+++ b/htdocs/admin/security_file.php
@@ -124,7 +124,7 @@ print ' ';
$head=security_prepare_head();
-dol_fiche_head($head, 'file', $langs->trans("Security"));
+dol_fiche_head($head, 'file', $langs->trans("Security"), -1);
// Upload options
diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php
index ac0a1e883eb..9ce79359a7c 100644
--- a/htdocs/admin/security_other.php
+++ b/htdocs/admin/security_other.php
@@ -103,7 +103,7 @@ print ' ';
$head=security_prepare_head();
-dol_fiche_head($head, 'misc', $langs->trans("Security"));
+dol_fiche_head($head, 'misc', $langs->trans("Security"), -1);
// Other Options
diff --git a/htdocs/admin/translation.php b/htdocs/admin/translation.php
index 7d07f7ead94..4dbfc53c821 100644
--- a/htdocs/admin/translation.php
+++ b/htdocs/admin/translation.php
@@ -181,7 +181,7 @@ print ' ';
$head=translation_prepare_head();
-dol_fiche_head($head, $mode, '', 0, '');
+dol_fiche_head($head, $mode, '', -1, '');
if ($mode == 'overwrite')
{
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 1366435f144..1256732999a 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5998,7 +5998,7 @@ class Form
if ($urladvanced) $ret.='';
else $ret.=' ';
}
- $ret.=' ';
+ $ret.=' ';
if ($addlinktofullsize) $ret.=' ';
}
else if ($altfile && file_exists($dir."/".$altfile))
@@ -6009,7 +6009,7 @@ class Form
if ($urladvanced) $ret.='';
else $ret.=' ';
}
- $ret.=' ';
+ $ret.=' ';
if ($addlinktofullsize) $ret.=' ';
}
else
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 3851a173c24..4ca49934bcd 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -2378,7 +2378,7 @@ function img_picto($titlealt, $picto, $morealt = '', $pictoisfullpath = false, $
if (preg_match('/:[^\s0-9]/',$titlealt)) $tmparray=explode(':',$titlealt); // We explode if we have TextA:TextB. Not if we have TextA: TextB
$title=$tmparray[0];
$alt=empty($tmparray[1])?'':$tmparray[1];
- return ' '; // Alt is used for accessibility, title for popup
+ return ' '; // Alt is used for accessibility, title for popup
}
}
diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index 6583ad09b61..bd520676f75 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -828,7 +828,10 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
// Date start
print '
';
- print ''.$langs->trans("DateDebCP").' ('.$langs->trans("FirstDayOfHoliday").') ';
+ print '';
+ print $langs->trans("DateDebCP");
+ print ' ('.$langs->trans("FirstDayOfHoliday").')';
+ print ' ';
print '';
// Si la demande ne vient pas de l'agenda
if (! GETPOST('date_debut_')) {
@@ -844,7 +847,10 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
// Date end
print ' ';
- print ''.$langs->trans("DateFinCP").' ('.$langs->trans("LastDayOfHoliday").') ';
+ print '';
+ print $langs->trans("DateFinCP");
+ print ' ('.$langs->trans("LastDayOfHoliday").')';
+ print ' ';
print '';
// Si la demande ne vient pas de l'agenda
if (! GETPOST('date_fin_')) {
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 3d6e8868bec..6f8e7293efb 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -519,6 +519,12 @@ textarea.centpercent {
.nounderline {
text-decoration: none;
}
+.paddingleft {
+ padding-: 4px;
+}
+.paddingright {
+ padding-: 4px;
+}
.cursorpointer {
cursor: pointer;
}
@@ -1090,7 +1096,8 @@ img.photorefnoborder {
height: 48px;
width: 48px;
object-fit: contain;
- border: 1px solid #CCC;
+ border: 1px solid #AAA;
+ border-radius: 100px;
}
.underrefbanner {
}
@@ -1615,11 +1622,16 @@ img.login, img.printer, img.entity {
color: white;
font-weight: bold;
}
-img.loginphoto {
- border-radius: 2px;
+.userimgatoplogin img.userphoto { /* size for user photo in login bar */
width: 16px;
height: 16px;
}
+img.userphoto { /* size for user photo in lists */
+ border-radius: 2px;
+ width: 18px;
+ height: 18px;
+ vertical-align: middle;
+}
.span-icon-user {
background-image: url();
background-repeat: no-repeat;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index aae0fd7f677..46d410e61cb 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -526,6 +526,12 @@ textarea.centpercent {
.nounderline {
text-decoration: none;
}
+.paddingleft {
+ padding-: 4px;
+}
+.paddingright {
+ padding-: 4px;
+}
.cursorpointer {
cursor: pointer;
}
@@ -1141,7 +1147,8 @@ img.photorefnoborder {
height: 48px;
width: 48px;
object-fit: contain;
- border: 1px solid #CCC;
+ border: 1px solid #AAA;
+ border-radius: 100px;
}
.underrefbanner {
}
@@ -1654,13 +1661,17 @@ img.login, img.printer, img.entity {
color: white;
font-weight: bold;
}
-img.loginphoto {
+.userimgatoplogin img.userphoto { /* size for user photo in login bar */
border-radius: 5px;
- margin-top: -4px;
- width: 20px;
- height: 20px;
+ width: 16px;
+ height: 16px;
+ vertical-align: text-bottom;
+}
+img.userphoto { /* size for user photo in lists */
+ width: 18px;
+ height: 18px;
+ vertical-align: middle;
}
-
.span-icon-user {
background-image: url();
background-repeat: no-repeat;
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index c107c1587ae..4b9c1c9960c 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -1981,77 +1981,77 @@ class User extends CommonObject
function getNomUrl($withpictoimg=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='',$morecss='')
{
global $langs, $conf, $db, $hookmanager;
- global $dolibarr_main_authentication, $dolibarr_main_demo;
- global $menumanager;
+ global $dolibarr_main_authentication, $dolibarr_main_demo;
+ global $menumanager;
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0;
- $result = '';
- $companylink = '';
- $link = '';
+ $result = '';
+ $companylink = '';
+ $link = '';
- $label = '' . $langs->trans("User") . ' ';
- $label.= '';
- $label.= '' . $langs->trans('Name') . ': ' . $this->getFullName($langs,'','');
- if (! empty($this->login))
- $label.= '' . $langs->trans('Login') . ': ' . $this->login;
- $label.= '' . $langs->trans("EMail").': '.$this->email;
- if (! empty($this->admin))
- $label.= '' . $langs->trans("Administrator").' : '.yn($this->admin);
- if (! empty($this->societe_id) ) // Add thirdparty for external users
- {
- $thirdpartystatic = new Societe($db);
- $thirdpartystatic->fetch($this->societe_id);
- if (empty($hidethirdpartylogo)) $companylink = ' '.$thirdpartystatic->getNomUrl(2); // picto only of company
- $company=' ('.$langs->trans("Company").': '.$thirdpartystatic->name.')';
- }
- $type=($this->societe_id?$langs->trans("External").$company:$langs->trans("Internal"));
- $label.= '' . $langs->trans("Type") . ': ' . $type;
- $label.='
';
- if (! empty($this->photo))
- {
- $label.= '
';
+ }
- // Info Login
- if ($infologin)
- {
- $label.= ' ';
- $label.= ''.$langs->trans("Connection").' ';
- $label.= ''.$langs->trans("IPAddress").' : '.$_SERVER["REMOTE_ADDR"];
- if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $label.= ''.$langs->trans("ConnectedOnMultiCompany").': '.$conf->entity.' (user entity '.$this->entity.')';
- $label.= ''.$langs->trans("AuthenticationMode").': '.$_SESSION["dol_authmode"].(empty($dolibarr_main_demo)?'':' (demo)');
- $label.= ''.$langs->trans("ConnectedSince").': '.dol_print_date($this->datelastlogin,"dayhour",'tzuser');
- $label.= ''.$langs->trans("PreviousConnexion").': '.dol_print_date($this->datepreviouslogin,"dayhour",'tzuser');
- $label.= ''.$langs->trans("CurrentTheme").': '.$conf->theme;
- $label.= ''.$langs->trans("CurrentMenuManager").': '.$menumanager->name;
- $s=picto_from_langcode($langs->getDefaultLang());
- $label.= ''.$langs->trans("CurrentUserLanguage").': '.($s?$s.' ':'').$langs->getDefaultLang();
- $label.= ''.$langs->trans("Browser").': '.$conf->browser->name.($conf->browser->version?' '.$conf->browser->version:'').' ('.$_SERVER['HTTP_USER_AGENT'].')';
- $label.= ''.$langs->trans("Layout").': '.$conf->browser->layout;
- $label.= ''.$langs->trans("Screen").': '.$_SESSION['dol_screenwidth'].' x '.$_SESSION['dol_screenheight'];
- if (! empty($conf->browser->phone)) $label.= ''.$langs->trans("Phone").': '.$conf->browser->phone;
- if (! empty($_SESSION["disablemodules"])) $label.= ''.$langs->trans("DisabledModules").': '.join(', ',explode(',',$_SESSION["disablemodules"]));
- }
+ // Info Login
+ if ($infologin)
+ {
+ $label.= ' ';
+ $label.= ''.$langs->trans("Connection").' ';
+ $label.= ''.$langs->trans("IPAddress").' : '.$_SERVER["REMOTE_ADDR"];
+ if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $label.= ''.$langs->trans("ConnectedOnMultiCompany").': '.$conf->entity.' (user entity '.$this->entity.')';
+ $label.= ''.$langs->trans("AuthenticationMode").': '.$_SESSION["dol_authmode"].(empty($dolibarr_main_demo)?'':' (demo)');
+ $label.= ''.$langs->trans("ConnectedSince").': '.dol_print_date($this->datelastlogin,"dayhour",'tzuser');
+ $label.= ''.$langs->trans("PreviousConnexion").': '.dol_print_date($this->datepreviouslogin,"dayhour",'tzuser');
+ $label.= ''.$langs->trans("CurrentTheme").': '.$conf->theme;
+ $label.= ''.$langs->trans("CurrentMenuManager").': '.$menumanager->name;
+ $s=picto_from_langcode($langs->getDefaultLang());
+ $label.= ''.$langs->trans("CurrentUserLanguage").': '.($s?$s.' ':'').$langs->getDefaultLang();
+ $label.= ''.$langs->trans("Browser").': '.$conf->browser->name.($conf->browser->version?' '.$conf->browser->version:'').' ('.$_SERVER['HTTP_USER_AGENT'].')';
+ $label.= ''.$langs->trans("Layout").': '.$conf->browser->layout;
+ $label.= ''.$langs->trans("Screen").': '.$_SESSION['dol_screenwidth'].' x '.$_SESSION['dol_screenheight'];
+ if (! empty($conf->browser->phone)) $label.= ''.$langs->trans("Phone").': '.$conf->browser->phone;
+ if (! empty($_SESSION["disablemodules"])) $label.= ''.$langs->trans("DisabledModules").': '.join(', ',explode(',',$_SESSION["disablemodules"]));
+ }
- if ($option == 'leave') $link.= 'global->MAIN_OPTIMIZEFORTEXTBROWSER))
- {
- $langs->load("users");
- $label=$langs->trans("ShowUser");
- $linkclose.=' alt="'.dol_escape_htmltag($label, 1).'"';
- }
- $linkclose.= ' title="'.dol_escape_htmltag($label, 1).'"';
- $linkclose.= ' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
- }
+ $linkclose="";
+ if (empty($notooltip))
+ {
+ if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
+ {
+ $langs->load("users");
+ $label=$langs->trans("ShowUser");
+ $linkclose.=' alt="'.dol_escape_htmltag($label, 1).'"';
+ }
+ $linkclose.= ' title="'.dol_escape_htmltag($label, 1).'"';
+ $linkclose.= ' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
+ }
if (! is_object($hookmanager))
{
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
@@ -2071,9 +2071,11 @@ class User extends CommonObject
{
$paddafterimage='';
if (abs($withpictoimg) == 1) $paddafterimage='style="margin-right: 3px;"';
- if ($withpictoimg > 0) $picto=''.img_object('', 'user', $paddafterimage.' '.($notooltip?'':'class="classfortooltip"'), 0, 0, $notooltip?0:1).'
';
- else $picto=''.Form::showphoto('userphoto', $this, 0, 0, 0, 'loginphoto', 'mini', 0, 1).'
';
- $result.=$picto;
+ // Only picto
+ if ($withpictoimg > 0) $picto=''.img_object('', 'user', $paddafterimage.' '.($notooltip?'':'class="classfortooltip"'), 0, 0, $notooltip?0:1).'
';
+ // Picto must be a photo
+ else $picto=''.Form::showphoto('userphoto', $this, 0, 0, 0, 'userphoto', 'mini', 0, 1).'
';
+ $result.=$picto;
}
if (abs($withpictoimg) != 2)
{
diff --git a/htdocs/user/hierarchy.php b/htdocs/user/hierarchy.php
index bb558bd56b3..888d4ca5317 100644
--- a/htdocs/user/hierarchy.php
+++ b/htdocs/user/hierarchy.php
@@ -146,8 +146,7 @@ $param="search_statut=".$search_statut;
print ' ';
print '';
print_liste_field_titre($langs->trans("HierarchicView"));
-print ' ';
+print_liste_field_titre('',$_SERVER['PHP_SELF'],"",'',"",'align="center"');
print_liste_field_titre($langs->trans("Status"),$_SERVER['PHP_SELF'],"",'',"",'align="right"');
print_liste_field_titre('',$_SERVER["PHP_SELF"],"",'','','','','','maxwidthsearch ');
print ' ';
diff --git a/htdocs/user/home.php b/htdocs/user/home.php
index a5e9db67867..29ef7dac061 100644
--- a/htdocs/user/home.php
+++ b/htdocs/user/home.php
@@ -62,22 +62,21 @@ print '';
// Search User
-$var=false;
print '
';
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index 623e2df3434..60defe580a7 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -461,12 +461,10 @@ print "\n";
$user2=new User($db);
-$var=True;
$i = 0;
while ($i < min($num,$limit))
{
$obj = $db->fetch_object($result);
- $var=!$var;
$userstatic->id=$obj->rowid;
$userstatic->ref=$obj->label;
@@ -482,18 +480,18 @@ while ($i < min($num,$limit))
$li=$userstatic->getNomUrl(-1,'',0,0,24,1,'login');
- print "
";
+ print " ";
if (! empty($arrayfields['u.login']['checked']))
{
print '';
print $li;
if (! empty($conf->multicompany->enabled) && $obj->admin && ! $obj->entity)
{
- print img_picto($langs->trans("SuperAdministrator"),'redstar');
+ print img_picto($langs->trans("SuperAdministrator"), 'redstar', 'class="valignmiddle paddingleft"');
}
else if ($obj->admin)
{
- print img_picto($langs->trans("Administrator"),'star');
+ print img_picto($langs->trans("Administrator"), 'star', 'class="valignmiddle paddingleft"');
}
print ' ';
}
@@ -584,11 +582,11 @@ while ($i < min($num,$limit))
print $user2->getNomUrl(-1,'',0,0,24,0,'');
if (! empty($conf->multicompany->enabled) && $obj->admin2 && ! $obj->entity2)
{
- print img_picto($langs->trans("SuperAdministrator"),'redstar');
+ print img_picto($langs->trans("SuperAdministrator"), 'redstar', 'class="valignmiddle paddingleft"');
}
else if ($obj->admin2)
{
- print img_picto($langs->trans("Administrator"),'star');
+ print img_picto($langs->trans("Administrator"), 'star', 'class="valignmiddle paddingleft"');
}
}
print '';