';
-if ($vessel->shipyard) {
+if ($vessel->shipyard && $vessel->shipyard > 0) {
if ($vessel->shipyard == -3) {
echo _('Custom-build');
} else {
diff --git a/webgui/inventory.php b/webgui/inventory.php
index 901094e..43f9a01 100644
--- a/webgui/inventory.php
+++ b/webgui/inventory.php
@@ -268,9 +268,7 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('Records %d to %d of %d'), $i0, $i, $numrows), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, $numrows, 7);
echo "\n";
echo $pagination;
diff --git a/webgui/maintenance.php b/webgui/maintenance.php
index 93694bf..6a22b5d 100644
--- a/webgui/maintenance.php
+++ b/webgui/maintenance.php
@@ -199,9 +199,7 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('Records %d to %d of %d'), $i0, $i, $numrows), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, $numrows, 6);
echo "\n";
echo $pagination;
diff --git a/webgui/measurement.php b/webgui/measurement.php
index 220d5ce..13ecdac 100644
--- a/webgui/measurement.php
+++ b/webgui/measurement.php
@@ -237,9 +237,8 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('%d records'), count($res)), ' |
', "\n";
-echo "\n";
+$numrows = count($res);
+table_rec_summary($i, $numrows, $numrows, 7);
echo "\n";
echo $pagination;
diff --git a/webgui/projects.php b/webgui/projects.php
index 733fada..9d2b68e 100644
--- a/webgui/projects.php
+++ b/webgui/projects.php
@@ -220,9 +220,7 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('Records %d to %d of %d'), $i0, $i, $numrows), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, $numrows, 6);
echo "\n";
echo $pagination;
@@ -266,9 +264,8 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('%d records'), count($res)), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, count($res), 4);
+
echo "\n";
form_add_button('task.php');
diff --git a/webgui/provisions.php b/webgui/provisions.php
index fc1cefe..3e0a8f7 100644
--- a/webgui/provisions.php
+++ b/webgui/provisions.php
@@ -217,9 +217,7 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('Records %d to %d of %d'), $i0, $i, $numrows), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, $numrows, 8);
echo "\n";
echo $pagination;
diff --git a/webgui/shapes/sigma36.svg b/webgui/shapes/sigma36.svg
new file mode 100644
index 0000000..ee8ee73
--- /dev/null
+++ b/webgui/shapes/sigma36.svg
@@ -0,0 +1,304 @@
+
+
+
+
diff --git a/webgui/storage.php b/webgui/storage.php
index ca2600b..4b4aa06 100644
--- a/webgui/storage.php
+++ b/webgui/storage.php
@@ -139,9 +139,9 @@ foreach ($res as $row) {
echo "\n";
echo "\n";
}
-echo "
\n";
-echo '| ', sprintf(_('%d records'), count($res)), ' |
', "\n";
-echo "\n";
+// Table summary
+$numrows = count($res);
+table_rec_summary($i, $numrows, $numrows, 5);
echo "\n";
form_add_button($g_scriptname);
@@ -179,9 +179,8 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('%d records'), count($res)), ' |
', "\n";
-echo "\n";
+$numrows = count($res);
+table_rec_summary($i, $numrows, $numrows, 4);
echo "\n";
form_add_button('box.php');
diff --git a/webgui/tag.php b/webgui/tag.php
index a639a81..2fd9f03 100644
--- a/webgui/tag.php
+++ b/webgui/tag.php
@@ -140,9 +140,7 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('%d records'), count($res)), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, $numrows, 6);
echo "\n";
form_add_button($g_scriptname);
diff --git a/webgui/task.php b/webgui/task.php
index e6c4f83..449f58b 100644
--- a/webgui/task.php
+++ b/webgui/task.php
@@ -241,9 +241,7 @@ foreach ($res as $row) {
echo "\n";
}
// Table summary
-echo "
\n";
-echo '| ', sprintf(_('%d records'), count($res)), ' |
', "\n";
-echo "\n";
+table_rec_summary($i0, $i, $numrows, 6);
echo "\n";
// additional pagination at bottom