Update define_holiday.php
This commit is contained in:
parent
5b5a2e9804
commit
78c1e8dfbe
@ -173,6 +173,10 @@ llxHeader('', $langs->trans('CPTitreMenu'));
|
|||||||
|
|
||||||
|
|
||||||
$typeleaves=$holiday->getTypes(1, 1);
|
$typeleaves=$holiday->getTypes(1, 1);
|
||||||
|
$result = $holiday->updateBalance(); // Create users into table holiday if they don't exists. TODO Remove this whif we use field into table user.
|
||||||
|
if ($result < 0) {
|
||||||
|
setEventMessages($holiday->error, $holiday->errors, 'errors');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
@ -189,14 +193,12 @@ print load_fiche_titre($langs->trans('MenuConfCP'), '', 'title_hrm.png');
|
|||||||
|
|
||||||
print '<div class="info">'.$langs->trans('LastUpdateCP').': '."\n";
|
print '<div class="info">'.$langs->trans('LastUpdateCP').': '."\n";
|
||||||
$lastUpdate = $holiday->getConfCP('lastUpdate');
|
$lastUpdate = $holiday->getConfCP('lastUpdate');
|
||||||
if ($lastUpdate)
|
if ($lastUpdate) {
|
||||||
{
|
print '<strong>'.dol_print_date($db->jdate($lastUpdate), 'dayhour').'</strong>';
|
||||||
$monthLastUpdate = $lastUpdate[4].$lastUpdate[5];
|
print '<br>'.$langs->trans("MonthOfLastMonthlyUpdate").': <strong>'.$langs->trans('Month'.substr($lastUpdate, 4, 2)).' '.substr($lastUpdate, 0, 4).'</strong>'."\n";
|
||||||
$yearLastUpdate = $lastUpdate[0].$lastUpdate[1].$lastUpdate[2].$lastUpdate[3];
|
} else {
|
||||||
print '<strong>'.dol_print_date($db->jdate($holiday->getConfCP('lastUpdate')), 'dayhour', 'tzuser').'</strong>';
|
print $langs->trans('None');
|
||||||
print '<br>'.$langs->trans("MonthOfLastMonthlyUpdate").': <strong>'.$yearLastUpdate.'-'.$monthLastUpdate.'</strong>'."\n";
|
|
||||||
}
|
}
|
||||||
else print $langs->trans('None');
|
|
||||||
print "</div><br>\n";
|
print "</div><br>\n";
|
||||||
|
|
||||||
$result = $holiday->updateBalance(); // Create users into table holiday if they don't exists. TODO Remove this whif we use field into table user.
|
$result = $holiday->updateBalance(); // Create users into table holiday if they don't exists. TODO Remove this whif we use field into table user.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user