Webgui: improve table summary generation

This commit is contained in:
2026-07-18 09:07:17 +02:00
parent 631f1cd2cf
commit 90bfdbc569
19 changed files with 357 additions and 61 deletions
+3 -6
View File
@@ -220,9 +220,7 @@ foreach ($res as $row) {
echo "</tr>\n";
}
// Table summary
echo "<tfoot>\n";
echo '<tr><td colspan="6">', sprintf(_('Records %d to %d of %d'), $i0, $i, $numrows), '</td></tr>', "\n";
echo "</tfoot>\n";
table_rec_summary($i0, $i, $numrows, 6);
echo "</table>\n";
echo $pagination;
@@ -266,9 +264,8 @@ foreach ($res as $row) {
echo "</tr>\n";
}
// Table summary
echo "<tfoot>\n";
echo '<tr><td colspan="2">', sprintf(_('%d records'), count($res)), '</td></tr>', "\n";
echo "</tfoot>\n";
table_rec_summary($i0, $i, count($res), 4);
echo "</table>\n";
form_add_button('task.php');