';
+ $isactive=(is_numeric($active) && $i == $active) || (! is_numeric($active) && $active == $links[$i][2]);
+
+ $out.='
';
if (isset($links[$i][2]) && $links[$i][2] == 'image')
{
if (!empty($links[$i][0]))
@@ -637,10 +639,9 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p
else if (! empty($links[$i][1]))
{
//print "x $i $active ".$links[$i][2]." z";
- if ((is_numeric($active) && $i == $active)
- || (! is_numeric($active) && $active == $links[$i][2]))
+ if ($isactive)
{
- $out.='
'.$links[$i][1].''."\n";
+ $out.='
'.$links[$i][1].''."\n";
}
else
{
diff --git a/htdocs/theme/amarok/style.css.php b/htdocs/theme/amarok/style.css.php
index a7011f06a68..ad4a2f04c7c 100644
--- a/htdocs/theme/amarok/style.css.php
+++ b/htdocs/theme/amarok/style.css.php
@@ -363,6 +363,9 @@ center .error { padding:8px !important; padding-left:26px !important; padding-ri
.maxwidthonsmartphone { max-width: 100px; }
.linkobject { cursor:pointer; }
+
+.hideonprint { display: none !important; }
+
/* ============================================================================== */
@@ -988,11 +991,11 @@ a.tab {
-webkit-border-top-right-radius:6px;
}
-a.tab#active {
+.tabactive {
color:#232323;
font-weight:bold;
- background-color:#ffffff;
-
+ background-color:#ffffff !important;
+
}
a.tab:hover {color:#333333;}
diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php
index 7942eb87bb9..9f862fbca07 100644
--- a/htdocs/theme/auguria/style.css.php
+++ b/htdocs/theme/auguria/style.css.php
@@ -246,6 +246,10 @@ div.inline-block
.maxwidthonsmartphone { max-width: 100px; }
.linkobject { cursor: pointer; }
+
+.hideonprint { display: none !important; }
+
+
/* ============================================================================== */
/* Styles for dragging lines */
@@ -1082,8 +1086,8 @@ a.tab:visited {
border-: 1px solid #D8D8D8;
border-top: 1px solid #D8D8D8;
}
-a.tab#active {
- background: white;
+div.tabs a.tab:active, .tabactive {
+ background: white !important;
border-bottom: #dee7ec 1px solid;
font-family: ;
color: #436976;
diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php
index 672403fdb1f..608dbc3dae3 100644
--- a/htdocs/theme/bureau2crea/style.css.php
+++ b/htdocs/theme/bureau2crea/style.css.php
@@ -270,6 +270,10 @@ div.inline-block
.maxwidthonsmartphone { max-width: 100px; }
.linkobject { cursor: pointer; }
+
+.hideonprint { display: none !important; }
+
+
/* ============================================================================== */
/* Styles for dragging lines */
@@ -1127,8 +1131,8 @@ div.tabs a.tab {
padding: 0px 10px 0px 10px;
}
-div.tabs a.tab#active {
- background-color: #FFF;
+div.tabs a.tab:active, .tabactive {
+ background-color: #888 !important;
color: #D45416;
border-bottom: 0px;
background-image: none;
diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php
index ef10a847d9a..51bb93c0207 100644
--- a/htdocs/theme/cameleo/style.css.php
+++ b/htdocs/theme/cameleo/style.css.php
@@ -245,6 +245,10 @@ div.inline-block
.maxwidthonsmartphone { max-width: 100px; }
.linkobject { cursor: pointer; }
+
+.hideonprint { display: none !important; }
+
+
/* ============================================================================== */
/* Styles for dragging lines */
@@ -1225,8 +1229,8 @@ background: linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%
}
-div.tabs a.tab#active {
- color: #FFF;
+div.tabs a.tab:active, .tabactive {
+ color: #FFF !important;
padding: 0px 6px 0px 6px;
-moz-border-radius-topleft:8px;
-moz-border-radius-topright:8px;
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 04aa243db61..e1c13988d6e 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -412,6 +412,9 @@ th .button {
.maxwidthonsmartphone { max-width: 100px; }
.linkobject { cursor: pointer; }
+
+.hideonprint { display: none; }
+
/* ============================================================================== */
@@ -1443,7 +1446,7 @@ a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
background-image: none !important;
}
-a.tab#active {
+.tabactive {
/* border-bottom: 1px solid rgb() !important; */
background: rgba(, 0.5) url() 50% 0 repeat-x;