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
+2 -3
View File
@@ -115,9 +115,8 @@ foreach ($res as $row) {
echo "</tr>\n";
}
// Table summary
echo "<tfoot>\n";
echo '<tr><td colspan="4">', sprintf(_('%d records'), count($res)), '</td></tr>', "\n";
echo "</tfoot>\n";
$numrows = count($res);
table_rec_summary($i, $numrows, $numrows, 5);
echo "</table>\n";
form_add_button('box.php');