diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index bb4fac685a8..7abe2e50236 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3150,8 +3150,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
// Define $color
$arrayconvpictotocolor = array(
- 'address'=>'#37a', 'building'=>'#37a', 'bom'=>'#a69944',
- 'companies'=>'#37a', 'company'=>'#37a', 'contact'=>'#37a', 'dynamicprice'=>'#a69944',
+ 'address'=>'#aaa', 'building'=>'#aaa', 'bom'=>'#a69944',
+ 'companies'=>'#aaa', 'company'=>'#aaa', 'contact'=>'#37a', 'dynamicprice'=>'#a69944',
'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'help'=>'#bbb', 'listlight'=>'#999',
'dolly'=>'#a69944', 'dollyrevert'=>'#a69944', 'lot'=>'#a69944',
'map-marker-alt'=>'#aaa', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
@@ -8473,8 +8473,7 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
$tag = (empty($attr['href']) ? 'span' : 'a');
- $button = '';
- $button .= '<'.$tag.' '.$compiledAttributes.'>';
+ $button = '<'.$tag.' '.$compiledAttributes.'>';
$button .= '';
if (!empty($params['forcenohideoftext'])) {
$button .= ''.$label.'';
diff --git a/htdocs/core/lib/treeview.lib.php b/htdocs/core/lib/treeview.lib.php
index 076e5ba644e..14538a15b0c 100644
--- a/htdocs/core/lib/treeview.lib.php
+++ b/htdocs/core/lib/treeview.lib.php
@@ -180,8 +180,7 @@ function tree_recur($tab, $pere, $rang, $iddivjstree = 'iddivjstree', $donoreset
// And now we search all its sons of lower level
tree_recur($tab, $tab[$x], $rang + 1, 'iddivjstree', 0, $showfk);
print '';
- } elseif (!empty($tab[$x]['rowid']) && $tab[$x]['fk_menu'] == -1 && $tab[$x]['fk_mainmenu'] == $pere['mainmenu'] && $tab[$x]['fk_leftmenu'] == $pere['leftmenu'])
- {
+ } elseif (!empty($tab[$x]['rowid']) && $tab[$x]['fk_menu'] == -1 && $tab[$x]['fk_mainmenu'] == $pere['mainmenu'] && $tab[$x]['fk_leftmenu'] == $pere['leftmenu']) {
//print 'rang='.$rang.'-x='.$x." rowid=".$tab[$x]['rowid']." tab[x]['fk_leftmenu'] = ".$tab[$x]['fk_leftmenu']." leftmenu pere = ".$pere['leftmenu']."
\n";
if (empty($ulprinted) && !empty($pere['rowid']))
{
diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php
index edf757d96b0..cdf3996c46c 100644
--- a/htdocs/modulebuilder/template/class/myobject.class.php
+++ b/htdocs/modulebuilder/template/class/myobject.class.php
@@ -813,7 +813,7 @@ class MyObject extends CommonObject
}
/**
- * Return label of the status
+ * Return the label of the status
*
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
* @return string Label of status
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index ecaffd51644..5c0ff331b87 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -1665,7 +1665,7 @@ div.fiche>table:first-child {
margin-bottom: 15px;
}
div.fiche>table.table-fiche-title {
- margin-bottom: 7px;
+ margin-bottom: 12px;
}
div.fichecenter {
width: 100%;
@@ -3345,10 +3345,10 @@ table.hidepaginationnext .paginationnext {
.tabBar .arearef .pagination.paginationref {
max-width: calc(30%);
}
-.paginationafterarrows a.btnTitlePlus {
+.paginationafterarrows a.btnTitlePlus, .titre_right a.btnTitlePlus {
border: 1px solid var(--btncolorborder);
}
-.paginationafterarrows a.btnTitlePlus:hover span:before {
+.paginationafterarrows a.btnTitlePlus:hover span:before, .titre_right a.btnTitlePlus:hover span:before {
/* text-shadow: 0px 0px 5px #ccc; */
/* filter: invert(0.3); */
font-size: 1.07em;
@@ -4108,7 +4108,7 @@ table.table-fiche-title .col-title div.titre{
line-height: 40px;
}
table.table-fiche-title {
- margin-bottom: 5px;
+ margin-bottom: 12px;
}
diff --git a/htdocs/theme/eldy/info-box.inc.php b/htdocs/theme/eldy/info-box.inc.php
index e2de2f87d51..7617d0037d3 100644
--- a/htdocs/theme/eldy/info-box.inc.php
+++ b/htdocs/theme/eldy/info-box.inc.php
@@ -284,7 +284,7 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
color: #599caf !important;
}
.bg-infobox-contrat, .bg-infobox-ticket{
- color: #46a676 !important;
+ color: #3bbfa8 !important;
}
.bg-infobox-bank_account{
color: #b0bb39 !important;
@@ -319,7 +319,7 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
color: #599caf !important;
}
.infobox-contrat, .infobox-ticket{
- color: #46a676 !important;
+ color: #3bbfa8 !important;
}
.infobox-bank_account{
color: #b0bb39 !important;
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 3672462fe0f..53a7abe5dac 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -2392,9 +2392,9 @@ class User extends CommonObject
}
/**
- * Return label of status of user (active, inactive)
+ * Return the label of the status of user (active, inactive)
*
- * @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
+ * @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
* @return string Label of status
*/
public function getLibStatut($mode = 0)
@@ -2404,7 +2404,7 @@ class User extends CommonObject
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
- * Return label of a status of user (active, inactive)
+ * Return the label of a status of user (active, inactive)
*
* @param int $status Id status
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
diff --git a/htdocs/user/hierarchy.php b/htdocs/user/hierarchy.php
index 5278835be3c..6918d1638e4 100644
--- a/htdocs/user/hierarchy.php
+++ b/htdocs/user/hierarchy.php
@@ -126,11 +126,13 @@ if (!is_array($user_arbo) && $user_arbo < 0)
}
$li .= ' ('.$val['login'].($entitystring ? ' - '.$entitystring : '').')';
+ $entry = '
| '.$li.' | '.$userstatic->getLibStatut(2).' |
';
+
$data[] = array(
'rowid'=>$val['rowid'],
'fk_menu'=>$val['fk_user'],
'statut'=>$val['statut'],
- 'entry'=>'| '.$li.' | '.$userstatic->getLibStatut(3).' |
'
+ 'entry'=>$entry
);
}
@@ -146,7 +148,9 @@ if (!is_array($user_arbo) && $user_arbo < 0)
$newcardbutton .= dolGetButtonTitle($langs->trans('NewUser'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/user/card.php?action=create'.($mode == 'employee' ? '&employee=1' : '').'&leftmenu=');
}
- $morehtmlright .= dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-list paddingleft', DOL_URL_ROOT.'/user/list.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''));
+ $morehtmlright .= dolGetButtonTitle($langs->trans("List"), '', 'fa fa-list paddingleft imgforviewmode', DOL_URL_ROOT.'/user/list.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''));
+ $param = array('morecss'=>'marginleftonly btnTitleSelected');
+ $morehtmlright .= dolGetButtonTitle($langs->trans("HierarchicView"), '', 'fa fa-stream paddingleft imgforviewmode', DOL_URL_ROOT.'/user/hierarchy.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''), '', 1, $param);
print load_fiche_titre($title, $morehtmlright.' '.$newcardbutton, 'user');
@@ -186,13 +190,13 @@ if (!is_array($user_arbo) && $user_arbo < 0)
if ($nbofentries > 0)
{
- print '| ';
+ print ' |
| ';
tree_recur($data, $data[0], 0);
print ' | ';
print ' | ';
print '
';
} else {
- print '';
+ print '
';
print '';
print '| '.img_picto_common('', 'treemenu/branchbottom.gif').' | ';
print '';
diff --git a/htdocs/user/list.php b/htdocs/user/list.php
index 84447ea9781..9f452962685 100644
--- a/htdocs/user/list.php
+++ b/htdocs/user/list.php
@@ -195,8 +195,6 @@ $htmlother = new FormOther($db);
$user2 = new User($db);
-$buttonviewhierarchy = '';
-
$sql = "SELECT DISTINCT u.rowid, u.lastname, u.firstname, u.admin, u.fk_soc, u.login, u.email, u.api_key, u.accountancy_code, u.gender, u.employee, u.photo,";
$sql .= " u.datelastlogin, u.datepreviouslogin,";
$sql .= " u.ldap_sid, u.statut, u.entity,";
@@ -318,7 +316,10 @@ print '';
print '';
print '';
-$morehtmlright .= dolGetButtonTitle($langs->trans("HierarchicView"), '', 'fa fa-sitemap paddingleft', DOL_URL_ROOT.'/user/hierarchy.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''));
+$param = array('morecss'=>'btnTitleSelected');
+$morehtmlright .= dolGetButtonTitle($langs->trans("List"), '', 'fa fa-list paddingleft imgforviewmode', DOL_URL_ROOT.'/user/list.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''), '', 1, $param);
+$param = array('morecss'=>'marginleftonly');
+$morehtmlright .= dolGetButtonTitle($langs->trans("HierarchicView"), '', 'fa fa-stream paddingleft imgforviewmode', DOL_URL_ROOT.'/user/hierarchy.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''), '', 1, $param);
print_barre_liste($text, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num, $nbtotalofrecords, 'user', 0, $morehtmlright.' '.$newcardbutton, '', $limit, 0, 0, 1);
|
|