2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2020-12-21 02:27:05 +01:00
parent f8ff8c63b6
commit 0a19f3cf5b

View File

@@ -141,7 +141,7 @@ class box_scheduled_jobs extends ModeleBoxes
foreach ($resultarray as $line => $value) {
$this->info_box_contents[$line][] = array(
'td' => 'class="tdoverflowmax100"',
'td' => 'class="tdoverflowmax200"',
'text' => $resultarray[$line][0]
);
@@ -154,18 +154,18 @@ class box_scheduled_jobs extends ModeleBoxes
'textnoformat' => (empty($resultarray[$line][2]) ? '' : $form->textwithpicto(dol_print_date($resultarray[$line][2], "dayhoursec"), $langs->trans("CurrentTimeZone")))
);
$this->info_box_contents[$line][] = array(
'td' => 'class="right" ',
'td' => 'class="center" ',
'textnoformat' => $resultarray[$line][4]
);
$line++;
}
$this->info_box_contents[$line][] = array(
'td' => 'class="tdoverflowmax200" colspan="2"',
'td' => 'class="tdoverflowmax300" colspan="3"',
'text' => $langs->trans("NumberScheduledJobError")
);
$this->info_box_contents[$line][] = array(
'td' => 'class="right" colspan="2"',
'textnoformat' => ($nbjobsinerror ? '<span class="error"><a href="'.DOL_URL_ROOT.'/cron/list.php?search_lastresult='.urlencode('<>0').'">'.$nbjobsinerror.img_error() : '<span class="opacitymedium">'.$langs->trans("None").'</span></a></span>')
'td' => 'class="center"',
'textnoformat' => (!$nbjobsinerror ? '<span class="error"><a href="'.DOL_URL_ROOT.'/cron/list.php?search_lastresult='.urlencode('<>0').'">'.$nbjobsinerror.img_error() : '<div class="center badge-status4">0</div></a></span>')
);
} else {
$this->info_box_contents[0][0] = array(