diff --git a/htdocs/core/lib/agenda.lib.php b/htdocs/core/lib/agenda.lib.php index 919a72c5ec5..ad40ba84938 100644 --- a/htdocs/core/lib/agenda.lib.php +++ b/htdocs/core/lib/agenda.lib.php @@ -441,8 +441,14 @@ function actions_prepare_head($object) // Tab to link resources if ($conf->resource->enabled) { + include_once DOL_DOCUMENT_ROOT.'/resource/class/dolresource.class.php'; + $resource=new DolResource($db); + $head[$h][0] = DOL_URL_ROOT.'/resource/element_resource.php?element=action&element_id='.$object->id; + $listofresourcelinked = $resource->getElementResources($object->element, $object->id); + $nbResources=count($listofresourcelinked); $head[$h][1] = $langs->trans("Resources"); + if ($nbResources > 0) $head[$h][1].= ' '.($nbResources).''; $head[$h][2] = 'resources'; $h++; } diff --git a/htdocs/core/menus/standard/auguria.lib.php b/htdocs/core/menus/standard/auguria.lib.php index 5a853baad51..f7cf130a9a3 100644 --- a/htdocs/core/menus/standard/auguria.lib.php +++ b/htdocs/core/menus/standard/auguria.lib.php @@ -128,7 +128,7 @@ function print_start_menu_entry_auguria($idsel,$classname,$showmode) if ($showmode) { print '
| '.dol_print_date($date,'day').' | '; - print ''.$userstatic->getNomUrl('1').' | '; + print ''.$userstatic->getNomUrl('1', 'leave').' | '; print ''.$approbatorstatic->getNomUrl('1').' | '; print ''; $label=$alltypeleaves[$infos_CP['fk_type']]['label']; diff --git a/htdocs/hrm/hrm.php b/htdocs/hrm/hrm.php index 2a23c7e19c9..bce42359453 100644 --- a/htdocs/hrm/hrm.php +++ b/htdocs/hrm/hrm.php @@ -189,7 +189,7 @@ if (! empty($conf->holiday->enabled) && $user->rights->holiday->read) $userstatic->firstname=$obj->firstname; print ' |
| '.$holidaystatic->getNomUrl(1).' | '; - print ''.$userstatic->getNomUrl(1).' | '; + print ''.$userstatic->getNomUrl(1, 'leave').' | '; print ''.$typeleaves[$obj->fk_type]['label'].' | '; $starthalfday=($obj->halfday == -1 || $obj->halfday == 2)?'afternoon':'morning'; diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index f7adb19112e..87794b92392 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -757,14 +757,16 @@ class Dolresource extends CommonObject } - /* + /** * Return an array with resources linked to the element - * - * + * + * @param string $element Element + * @param int $element_id Id + * @param string $resource_type Type + * @return array Aray of resources */ function getElementResources($element,$element_id,$resource_type='') { - // Links beetween objects are stored in this table $sql = 'SELECT rowid, resource_id, resource_type, busy, mandatory'; $sql.= ' FROM '.MAIN_DB_PREFIX.'element_resources'; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 3a82b25deeb..97e8a32e758 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -792,12 +792,12 @@ img.photoref { /* ============================================================================== */ global->THEME_ELDY_DISABLE_IMAGE)) { $disableimages = 1; $maxwidthloginblock = 180; } +if (! empty($conf->global->THEME_ELDY_DISABLE_IMAGE)) { $disableimages = 1; $maxwidthloginblock = 180; $minwidthtmenu=0; } ?> div#id-top { @@ -814,7 +814,7 @@ div#id-top { background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgba(255,255,255,.1)), color-stop(1, rgba(0,0,0,.4)) ); - height: 28px; + height: 34px; height: px; @@ -829,6 +829,12 @@ div#tmenu_tooltip { } +div.tmenusep { + + display: none; + } ?> +} + div.tmenudiv { display:none; @@ -933,12 +939,13 @@ div.tmenuleft } div.tmenucenter { - padding-top: px; padding-left: 0px; padding-right: 0px; - height: 24px; + padding-top: 8px; + height: 26px; + padding-top: 2px; height: px; width: 100%; @@ -948,7 +955,12 @@ div.menu_titre { } .mainmenuaspan { + + padding-left: 4px; + padding-right: 2px; + padding-right: 4px; + } div.mainmenu { @@ -1185,7 +1197,7 @@ div.login_block { position: absolute; text-align: right; : 5px; - top: 3px; + top: 2px; font-weight: bold; max-width: px; @@ -4229,8 +4241,11 @@ img.demothumb { } } /* rule to reduce top menu - 2nd reduction */ -@media only screen and (max-width: px) +@media only screen and (max-width: px) { + div.mainmenu { + height: 23px; + } div.tmenucenter { max-width: px; /* size of viewport */ text-overflow: clip; @@ -4245,12 +4260,17 @@ img.demothumb { } } /* rule to reduce top menu - 3rd reduction */ -@media only screen and (max-width: 570px) +@media only screen and (max-width: 605px) { /* Reduce login top right info */ .usertextatoplogin { display: none; } + .help { + + display: none; + + } div#tmenu_tooltip { display:none; @@ -4259,13 +4279,19 @@ img.demothumb { } div.login_block { - top: 4px; - max-width: 82px; + top: 2px; + + max-width: 100px; + + max-width: 82px; + } li.tmenu, li.tmenusel { min-width: 30px; } - + div.mainmenu { + height: 23px; + } div.tmenucenter { text-overflow: clip; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 4f9e1c24554..7fbaad9150c 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -843,12 +843,12 @@ img.photoref { /* ============================================================================== */ global->THEME_MD_DISABLE_IMAGE)) { $heightmenu = 30; $disableimages = 1; $maxwidthloginblock = 180; } +if (! empty($conf->global->THEME_MD_DISABLE_IMAGE)) { $heightmenu = 30; $disableimages = 1; $maxwidthloginblock = 180; $minwidthtmenu=0; } ?> div#tmenu_tooltip { @@ -875,6 +875,12 @@ div#tmenu_tooltip { } +div.tmenusep { + + display: none; + } ?> +} + div.tmenudiv { display:none; @@ -972,7 +978,10 @@ li.tmenusel, li.tmenu:hover { opacity: .50; /* show only a slight shadow */ } .tmenuend .tmenuleft { width: 0px; } -/* .tmenuend { display: none; } */ +/* .tmenuend { display: none; } We keep tmenuend it to show background for rest of line */ +.tmenuend .tmenucenter { + width: 1px; +} div.tmenuleft { float: ; @@ -987,10 +996,15 @@ div.tmenuleft } div.tmenucenter { - padding-top: px; padding-left: 0px; padding-right: 0px; + + padding-top: 10px; + height: 26px; + + padding-top: 2px; height: px; + width: 100%; } div.menu_titre { @@ -998,7 +1012,12 @@ div.menu_titre { } .mainmenuaspan { + + padding-left: 4px; + padding-right: 2px; + padding-right: 4px; + } div.mainmenu { @@ -4072,6 +4091,7 @@ img.demothumb { /* nboftopmenuentries = , fontsize= */ +/* disableimages = */ /* rule to reduce top menu - 1st reduction */ @media only screen and (max-width: px) { @@ -4119,10 +4139,6 @@ img.demothumb { /* rule to reduce top menu - 3rd reduction */ @media only screen and (max-width: 570px) { - /* Reduce login top right info */ - .usertextatoplogin { - display: none; - } div#tmenu_tooltip { display:none; @@ -4130,10 +4146,6 @@ img.demothumb { /* padding-: 78px; */ } - div.login_block { - top: 9px; - } - li.tmenu, li.tmenusel { min-width: 30px; } diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 85c1e0e63da..51945677694 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1991,7 +1991,10 @@ class User extends CommonObject if (! empty($_SESSION["disablemodules"])) $label.= '