';
+ $boxwork.='| ';
+ //$boxwork.=$langs->trans("Meteo");
+ //$boxwork.=' | ';
+ $text='';
+ if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate",$totallate).')';
+ $options='height="64px"';
+ if ($rowspan <= 2) $options='height="24"'; // Weather logo is smaller if dashboard has few elements
+ else if ($rowspan <= 3) $options='height="48"'; // Weather logo is smaller if dashboard has few elements
+ $boxwork.=showWeather($totallate,$text,$options);
+ $boxwork.=' | ';
+ /*$boxwork.='';
+ if ($board->nbtodolate > 0) $boxwork.=img_picto($textlate,"warning");
+ else $boxwork.=' ';
+ $boxwork.=' | ';*/
+ $boxwork.='
';
+ $showweather=0;
+}
+
+
// Show dashboard
foreach($valid_dashboardlines as $board)
{
$var=!$var;
- $boxwork.= '| '.$board->img.' '.$board->label.' | ';
$boxwork.= ''.$board->nbtodo.' | ';
$boxwork.= '';
$textlate = $langs->trans("NActionsLate",$board->nbtodolate);
- $textlate .= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
- $boxwork.= '';
+ $textlate.= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
+ $boxwork.= '';
+ $boxwork.= '';
$boxwork.= $board->nbtodolate;
- $boxwork.= '';
+ $boxwork.= '';
+ $boxwork.= '';
$boxwork.=' | ';
- $boxwork.='';
- if ($board->nbtodolate > 0) $boxwork.=img_picto($textlate,"warning");
- else $boxwork.=' ';
+ $boxwork.=' | ';
+ if ($board->nbtodolate > 0) $boxwork.=img_picto($textlate, "warning", 'class="valignmiddle"').' ';
$boxwork.=' | ';
/*print '';
print ' (>'.ceil($board->warning_delay).' '.$langs->trans("days").')';
print ' | ';*/
-
+ /*
if ($showweather)
{
$boxwork.='';
@@ -563,7 +588,7 @@ foreach($valid_dashboardlines as $board)
$boxwork.=showWeather($totallate,$text,$options);
$boxwork.=' | ';
$showweather=0;
- }
+ }*/
$boxwork.='
';
$boxwork.="\n";
}