FIX Navigation in list of holiday

This commit is contained in:
Laurent Destailleur 2021-05-26 15:22:49 +02:00
parent 38ef028310
commit 7c41be7f0a

View File

@ -373,7 +373,7 @@ if (!empty($arrayfields['cpl.fk_type']['checked'])) {
// Filter: Previous balance
if (!empty($arrayfields['cpl.prev_solde']['checked'])) {
print '<td class="liste_titre">';
print '<td class="liste_titre right">';
print '<input type="text" class="maxwidth50" name="search_prev_solde" value="'.$search_prev_solde.'">';
print '</td>';
}
@ -385,7 +385,7 @@ if (!empty($arrayfields['variation']['checked'])) {
// Filter: New Balance
if (!empty($arrayfields['cpl.new_solde']['checked'])) {
print '<td class="liste_titre">';
print '<td class="liste_titre right">';
print '<input type="text" class="maxwidth50" name="search_new_solde" value="'.$search_new_solde.'">';
print '</td>';
}
@ -428,12 +428,20 @@ if (!empty($arrayfields['cpl.new_solde']['checked'])) {
print getTitleFieldOfList($selectedfields, 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
print '</tr>';
// TODO: $i = 0;
$i = 1;
$j = 0;
while ($j < ($page * $limit)) {
$obj = next($object->logs);
$j++;
}
$i = 0;
while ($i < min($num, $limit)) {
//TODO: $obj = $db->fetch_object($resql);
$obj = next($object->logs);
$obj = current($object->logs);
if (empty($obj)) {
break;
}
$holidaylogstatic->id = $obj['rowid'];
$holidaylogstatic->date = $obj['date_action'];
@ -511,6 +519,7 @@ while ($i < min($num, $limit)) {
print '</tr>';
$i++;
next($object->logs);
}
if ($log_holiday == '2') {