Webgui fixed cables and fuses, parts of code reorganized

This commit is contained in:
thooge committed 2026-10-25 09:03:24 +01:00
1 parent 9d09b1e120
commit 5641e1706f
25 files changed
+497 -427

No files matched your search

+4 -3
View File
@@ -16,6 +16,7 @@ There can be a difference because not all items have a weight entered
require 'globals.inc';
require 'lib/db.inc';
require 'lib/gpc.inc';
require 'lib/form.inc';
$pagetitle = _('Boxes');
@@ -118,7 +119,7 @@ foreach ($res as $row) {
echo '<td>', ($opt_boxtype[$row['boxtype']] ?? ''), "</td>\n";
echo '<td>', format_color(strtoupper($row['color'])), "</td>\n";
echo '<td>', $row['content'], "</td>\n";
echo '<td class="text-end">', format_float($row['weight'], 2), "</td>\n";
echo '<td class="text-end">', format_float($row['weight'], 2, 'kg'), "</td>\n";
// Edit current record button
echo "<td>";
echo '<a title="', _('Edit'), '" href="', $g_scriptname, '?f=edit&id=', $row['boxid'], '"><i class="bi-pencil"></i></a>', "\n";
@@ -126,8 +127,8 @@ foreach ($res as $row) {
echo "</tr>\n";
}
// Table summary
$numrows = count($res);
table_rec_summary($i, $numrows, $numrows, 6);
//$numrows = count($res);
//table_rec_summary(1, $numrows, $numrows, 6);
echo "</table>\n";
form_add_button('box.php');