Clean code

This commit is contained in:
Laurent Destailleur 2018-10-01 00:40:02 +02:00
parent adc36e7d63
commit 5f897eb7ee
4 changed files with 14 additions and 13 deletions

View File

@ -4265,7 +4265,7 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
// Left
//if ($picto && $titre) print '<td class="nobordernopadding hideonsmartphone" width="40" align="left" valign="middle">'.img_picto('', $picto, 'id="pictotitle"', $pictoisfullpath).'</td>';
print '<td class="nobordernopadding valignmiddle">';
if ($picto && $titre) print img_picto('', $picto, 'class="hideonsmartphone valignmiddle opacityhigh widthpictotitle" id="pictotitle"', $pictoisfullpath);
if ($picto && $titre) print img_picto('', $picto, 'class="hideonsmartphone valignmiddle opacityhigh pictotitle widthpictotitle"', $pictoisfullpath);
print '<div class="titre inline-block">'.$titre;
if (!empty($titre) && $savtotalnboflines >= 0 && (string) $savtotalnboflines != '') print ' ('.$totalnboflines.')';
print '</div></td>';

View File

@ -36,10 +36,7 @@ $place = GETPOST('place');
if ($place=="") $place="0";
$action = GETPOST('action');
$langs->load("main");
$langs->load("bills");
$langs->load("orders");
$langs->load("commercial");
$langs->loadLangs(array("bills","orders","commercial","cashdesk"));
/*

View File

@ -264,7 +264,7 @@ body {
<?php print 'direction: '.$langs->trans("DIRECTION").";\n"; ?>
}
.thumbstat, a.tab { font-weight: bold !important; }
.thumbstat { font-weight: bold !important; }
th a { font-weight: <?php echo ($useboldtitle?'bold':'normal'); ?> !important; }
a.tab { font-weight: bold !important; }
@ -5060,7 +5060,7 @@ dl.dropdown {
.dropdown dd ul li {
white-space: nowrap;
font-weight: normal;
padding: 4px 8px 4px 8px;
padding: 7px 8px 7px 8px;
/* color: rgb(<?php print $colortext; ?>); */
color: #000;
}
@ -5078,7 +5078,7 @@ dl.dropdown {
color: #888;
}
.dropdown dd ul li a:hover {
background-color:#fff;
background-color:#eee;
}

View File

@ -100,7 +100,7 @@ $dol_no_mouse_hover=$conf->dol_no_mouse_hover;
//$user->conf->THEME_ELDY_ENABLE_PERSONALIZED=0;
//var_dump($user->conf->THEME_ELDY_RGB);
$useboldtitle=(isset($conf->global->THEME_ELDY_USEBOLDTITLE)?$conf->global->THEME_ELDY_USEBOLDTITLE:1);
$useboldtitle=(isset($conf->global->THEME_ELDY_USEBOLDTITLE)?$conf->global->THEME_ELDY_USEBOLDTITLE:0);
$borderwidth=2;
// Case of option always editable
@ -257,7 +257,8 @@ body {
<?php print 'direction: '.$langs->trans("DIRECTION").";\n"; ?>
}
th a, .thumbstat, a.tab { font-weight: bold !important; }
.thumbstat { font-weight: bold !important; }
th a { font-weight: <?php echo ($useboldtitle?'bold':'normal'); ?> !important; }
a.tab { font-weight: bold !important; }
a:link, a:visited, a:hover, a:active { font-family: <?php print $fontlist ?>; font-weight: normal; color: rgb(<?php print $colortextlink; ?>); text-decoration: none; }
@ -4895,7 +4896,7 @@ dl.dropdown {
box-shadow: 1px 1px 10px #aaa;
display:none;
right:0px; /* pop is align on right */
padding: 2px 15px 2px 5px;
padding: 0 0 0 0;
position:absolute;
top:2px;
list-style:none;
@ -4905,9 +4906,12 @@ dl.dropdown {
.dropdown dd ul li {
white-space: nowrap;
font-weight: normal;
padding: 4px;
padding: 7px 8px 7px 8px;
color: #000;
}
.dropdown dd ul li:hover {
background: #eee;
}
.dropdown dd ul li input[type="checkbox"] {
margin-right: 3px;
}
@ -4919,7 +4923,7 @@ dl.dropdown {
color: #888;
}
.dropdown dd ul li a:hover {
background-color:#fff;
background-color: #eee;
}