diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 10644578702..e8da753c2fe 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -7417,7 +7417,7 @@ class Form
// Bom:bom/class/bom.class.php:0:t.status=1:ref
// Bom:bom/class/bom.class.php:0:(t.status:=:1):ref
$InfoFieldList = explode(":", $objectdesc, 4);
- $vartmp = $InfoFieldList[3];
+ $vartmp = (empty($InfoFieldList[3]) ? '' : $InfoFieldList[3]);
$reg = array();
if (preg_match('/^.*:(\w*)$/', $vartmp, $reg)) {
$InfoFieldList[4] = $reg[1]; // take the sort field
diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index 1107c3b8d34..4e0d3da467e 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -1083,12 +1083,14 @@ class FormOther
* @param int $invert Invert
* @param string $option Option
* @param string $morecss More CSS
+ * @param bool $addjscombo Add js combo
* @return string
+ * @deprecated
*/
- public function select_year($selected = '', $htmlname = 'yearid', $useempty = 0, $min_year = 10, $max_year = 5, $offset = 0, $invert = 0, $option = '', $morecss = 'valignmiddle maxwidth75imp')
+ public function select_year($selected = '', $htmlname = 'yearid', $useempty = 0, $min_year = 10, $max_year = 5, $offset = 0, $invert = 0, $option = '', $morecss = 'valignmiddle maxwidth75imp', $addjscombo = false)
{
// phpcs:enable
- print $this->selectyear($selected, $htmlname, $useempty, $min_year, $max_year, $offset, $invert, $option, $morecss);
+ print $this->selectyear($selected, $htmlname, $useempty, $min_year, $max_year, $offset, $invert, $option, $morecss, $addjscombo);
}
/**
diff --git a/htdocs/core/menus/standard/auguria.lib.php b/htdocs/core/menus/standard/auguria.lib.php
index 87a68f081b4..556ee3e609a 100644
--- a/htdocs/core/menus/standard/auguria.lib.php
+++ b/htdocs/core/menus/standard/auguria.lib.php
@@ -64,10 +64,10 @@ function print_auguria_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout
// Show/Hide vertical menu. The hamburger icon for .menuhider action.
if ($mode != 'jmobile' && $mode != 'topnb' && $usemenuhider && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
$showmode = 1;
- $classname = 'class="tmenu menuhider"';
+ $classname = 'class="tmenu menuhider nohover"';
$idsel = 'menu';
- $menu->add('#', (!empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE) ? '' : ''), 0, $showmode, $atarget, "xxx", '', 0, $id, $idsel, $classname);
+ $menu->add('#', (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1 ? '' : ''), 0, $showmode, $atarget, "xxx", '', 0, $id, $idsel, $classname);
}
$num = count($newTabMenu);
@@ -236,7 +236,7 @@ function print_text_menu_entry_auguria($text, $showmode, $url, $id, $idsel, $cla
if ($showmode == 1) {
print '';
- print '';
+ print '';
print '';
if (empty($conf->global->THEME_TOPMENU_DISABLE_TEXT)) {
print '';
@@ -246,9 +246,9 @@ function print_text_menu_entry_auguria($text, $showmode, $url, $id, $idsel, $cla
print '';
}
} elseif ($showmode == 2) {
- print '';
- print '';
- print '';
+ print '
';
+ print '';
+ print '
';
if (empty($conf->global->THEME_TOPMENU_DISABLE_TEXT)) {
print '';
print '';
diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php
index 9d84faca7b2..f81fc3ae482 100644
--- a/htdocs/core/menus/standard/eldy.lib.php
+++ b/htdocs/core/menus/standard/eldy.lib.php
@@ -64,10 +64,10 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
// Show/Hide vertical menu. The hamburger icon for .menuhider action.
if ($mode != 'jmobile' && $mode != 'topnb' && $usemenuhider && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
$showmode = 1;
- $classname = 'class="tmenu menuhider"';
+ $classname = 'class="tmenu menuhider nohover"';
$idsel = 'menu';
- $menu->add('#', (!empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE) ? '' : ''), 0, $showmode, $atarget, "xxx", '', 0, $id, $idsel, $classname);
+ $menu->add('#', (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1 ? '' : ''), 0, $showmode, $atarget, "xxx", '', 0, $id, $idsel, $classname);
}
$menu_arr = array();
@@ -632,7 +632,7 @@ function print_text_menu_entry($text, $showmode, $url, $id, $idsel, $classname,
//$conf->global->THEME_TOPMENU_DISABLE_TEXT=1;
if ($showmode == 1) {
print '';
- print '';
+ print '';
print '';
if (empty($conf->global->THEME_TOPMENU_DISABLE_TEXT)) {
print '';
@@ -642,9 +642,9 @@ function print_text_menu_entry($text, $showmode, $url, $id, $idsel, $classname,
print '';
}
} elseif ($showmode == 2) {
- print '';
- print '';
- print '';
+ print '';
+ print '';
+ print '
';
if (empty($conf->global->THEME_TOPMENU_DISABLE_TEXT)) {
print '';
print '';
diff --git a/htdocs/core/menus/standard/empty.php b/htdocs/core/menus/standard/empty.php
index 48b94462130..cc9db4cb769 100644
--- a/htdocs/core/menus/standard/empty.php
+++ b/htdocs/core/menus/standard/empty.php
@@ -102,7 +102,7 @@ class MenuManager
// Show/Hide vertical menu
if ($mode != 'jmobile' && $mode != 'topnb' && $usemenuhider && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
$showmode = 1;
- $classname = 'class="tmenu menuhider"';
+ $classname = 'class="tmenu menuhider nohover"';
$idsel = 'menu';
$this->menu->add('#', '', 0, $showmode, $atarget, "xxx", '', 0, $id, $idsel, $classname);
@@ -517,8 +517,8 @@ function print_text_menu_entry_empty($text, $showmode, $url, $id, $idsel, $class
$classnametxt = str_replace('class="', 'class="tmenulabel ', $classname);
if ($showmode == 1) {
- print '';
- print '
';
+ print '';
+ print '';
print '';
if (empty($conf->global->THEME_TOPMENU_DISABLE_TEXT)) {
print '';
@@ -529,15 +529,15 @@ function print_text_menu_entry_empty($text, $showmode, $url, $id, $idsel, $class
}
}
if ($showmode == 2) {
- print '';
- print '';
- print '';
+ print '';
+ print '';
+ print '
';
if (empty($conf->global->THEME_TOPMENU_DISABLE_TEXT)) {
- print '';
+ print '';
print '';
print $text;
print '';
- print '';
+ print '';
}
}
}
diff --git a/htdocs/intracommreport/card.php b/htdocs/intracommreport/card.php
index c769b89f9b8..7cc41646732 100644
--- a/htdocs/intracommreport/card.php
+++ b/htdocs/intracommreport/card.php
@@ -151,7 +151,7 @@ if ($action == 'create') {
print '';
// Label
- print '| '.$langs->trans("Label").' | |
';
+ print '| '.$langs->trans("Label").' | |
';
// Declaration
print '| '.$langs->trans("Declaration")." | \n";
@@ -164,8 +164,8 @@ if ($action == 'create') {
print $langs->trans("AnalysisPeriod");
print ' | ';
print '';
- print $formother->select_month($month ? date('M') : $month, 'month', 0, 1, 'widthauto valignmiddle ');
- print $formother->select_year($year ? date('Y') : $year, 'year', 0, 3, 3);
+ print $formother->select_month($month ? date('M') : $month, 'month', 0, 1, 'widthauto valignmiddle ', true);
+ print $formother->selectyear($year ? date('Y') : $year, 'year', 0, 3, 3, 0, 0, '', '', true);
print ' | ';
print '
';
diff --git a/htdocs/theme/eldy/dropdown.inc.php b/htdocs/theme/eldy/dropdown.inc.php
index 6bd8ede6331..6ef8706f476 100644
--- a/htdocs/theme/eldy/dropdown.inc.php
+++ b/htdocs/theme/eldy/dropdown.inc.php
@@ -197,7 +197,7 @@ button.dropdown-item.global-search-item {
}
div#topmenu-global-search-dropdown, div#topmenu-bookmark-dropdown, div#topmenu-quickadd-dropdown {
- global->THEME_TOPMENU_DISABLE_IMAGE)) { ?>
+
line-height: 46px;
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 68bad918155..d132a742899 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -2587,8 +2587,7 @@ button.ui-button.ui-corner-all.ui-widget:focus {
/* For mainmenu, we always load the img */
div.mainmenu.menu {
- background-image: url();
-
+
}
#mainmenutd_menu a.tmenuimage {
display: unset;
@@ -2601,20 +2600,40 @@ a.tmenuimage:hover{
text-decoration: none;
}
-/*
+
+/* To show text of top menu on hover only (THEME_TOPMENU_DISABLE_IMAGE == 2) */
+
+
.tmenulabel:not(.menuhider), .tmenulabel:not(.menuhider):before {
display: none;
}
-.tmenuimage:not(.menuhider), .tmenuimage:not(.menuhider):before {
- font-size: 1.5em;
+a.tmenuimage:not(.menuhider), a.tmenuimage:not(.menuhider):before,
+div.tmenuimage:not(.menuhider), div.tmenuimage:not(.menuhider):before,
+span.tmenuimage:not(.menuhider), span.tmenuimage:not(.menuhider):before {
+ font-size: 1.3em;
+ margin-top: 10px !important;
}
+
+
.tmenudiv:hover .tmenulabel:not(.menuhider), .tmenudiv:hover .tmenulabel:not(.menuhider):before {
display: initial !important;
}
-.tmenudiv:hover .tmenuimage:not(.menuhider), .tmenudiv:hover .tmenulabel:not(.menuhider):before {
+.tmenudiv:hover .tmenuimage:not(.menuhider), .tmenudiv:hover .tmenuimage:not(.menuhider):before {
font-size: 1.1em !important;
+ margin-top: 0px !important;
}
-*/
+
+
+li.tmenu:hover .tmenulabel:not(.menuhider), li.tmenu:hover .tmenulabel:not(.menuhider):before {
+ display: initial !important;
+}
+li.tmenu:hover .tmenuimage:not(.menuhider), li.tmenu:hover .tmenuimage:not(.menuhider):before {
+ font-size: 1.1em !important;
+ margin-top: 0px !important;
+}
+
+
+
/* Do not load menu img for other if hidden to save bandwidth */
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index dc94669d54f..40a03a0db5b 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -276,7 +276,7 @@ $heightmenu = 50; /* height of top menu, part with image */
$heightmenu2 = 49; /* height of top menu, part with login */
$disableimages = 0;
$maxwidthloginblock = 180;
-if (!empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE)) {
+if (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1) {
$disableimages = 1; $maxwidthloginblock = $maxwidthloginblock + 50; $minwidthtmenu = 0;
}
diff --git a/htdocs/theme/md/dropdown.inc.php b/htdocs/theme/md/dropdown.inc.php
index a95f8a0be34..4bf13e52384 100644
--- a/htdocs/theme/md/dropdown.inc.php
+++ b/htdocs/theme/md/dropdown.inc.php
@@ -201,7 +201,7 @@ button.dropdown-item.global-search-item {
}
div#topmenu-global-search-dropdown, div#topmenu-quickadd-dropdown, div#topmenu-bookmark-dropdown {
- line-height: global->THEME_TOPMENU_DISABLE_IMAGE) ? '46' : '35' ); ?>px;
+ line-height: px;
}
a.top-menu-dropdown-link {
padding: 8px;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index d5619f362fb..0dbec9bc073 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -2438,7 +2438,7 @@ $heightmenu = 48; /* height of top menu, part with image */
$heightmenu2 = 48; /* height of top menu, ârt with login */
$disableimages = 0;
$maxwidthloginblock = 110;
-if (!empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE)) {
+if (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1) {
$heightmenu = 30; $disableimages = 1; $maxwidthloginblock = 180; $minwidthtmenu = 0;
}
?>
@@ -2623,98 +2623,21 @@ a.tmenuimage:focus, .mainmenu.topmenuimage:focus {
outline: none;
}
-/* Do not load menu img if hidden to save bandwidth */
-
-
-
-
div.mainmenu.home{
- background-image: url();
background-position-x: center;
}
-div.mainmenu.billing {
- background-image: url();
-}
-
-div.mainmenu.accountancy {
- background-image: url();
-}
-
-div.mainmenu.agenda {
- background-image: url();
-}
-
-div.mainmenu.bank {
- background-image: url();
-}
-
-div.mainmenu.cashdesk {
- background-image: url();
-}
-
-div.mainmenu.takepos {
- background-image: url();
-}
-
-div.mainmenu.companies {
- background-image: url();
-}
-
-div.mainmenu.commercial {
- background-image: url();
-}
-
-div.mainmenu.ecm {
- background-image: url();
-}
-
-div.mainmenu.externalsite {
- background-image: url();
-}
-
-div.mainmenu.ftp {
- background-image: url();
-}
-
-div.mainmenu.hrm {
- background-image: url();
-}
-
-div.mainmenu.members {
- background-image: url();
-}
-
div.mainmenu.menu {
- background-image: url();
top: 10px;
left: 1px;
}
-div.mainmenu.products {
- background-image: url();
-}
-div.mainmenu.mrp {
- background-image: url();
-}
-div.mainmenu.project {
- background-image: url();
-}
-
-div.mainmenu.ticket {
- background-image: url();
-}
-
-div.mainmenu.tools {
- background-image: url();
-}
-
-div.mainmenu.website {
- background-image: url();
-}
+/* Do not load menu img if hidden to save bandwidth */
+
+
'name of class for div')