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