From e8222652419f36701ef87f6bd808d9a0bc0465a7 Mon Sep 17 00:00:00 2001 From: arjen Date: Fri, 21 Feb 2003 08:46:58 +0000 Subject: [PATCH] Improved the table layout. --- src/web/objects.php | 53 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/src/web/objects.php b/src/web/objects.php index d7d7c33..e53e686 100644 --- a/src/web/objects.php +++ b/src/web/objects.php @@ -1,4 +1,4 @@ -database, "SELECT objectid,objectname, log_count, notification_count FROM object ORDER BY objectname"); +?> + + + + + - echo "
ObjectLog entriesParametersNotifications
"; +log_count; - $count_logs = $count_logs + $nr_logs; + $count_logs = $count_logs + $nr_logs; - $r = pg_exec ($this->database, "SELECT count(paramid) FROM parameter WHERE objectid='" - . $u->objectid . "'"); + $r = pg_exec ($this->database, "SELECT count(paramid) FROM parameter WHERE objectid=CAST('" + . $u->objectid . "' AS BIGINT)"); $r = pg_fetch_object($r, 0); $nr_params = $r->count; @@ -129,14 +138,14 @@ class object_page extends page $nr_notifications = $u->notification_count; $count_notifications = $count_notifications + $nr_notifications; ?> - "; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo "

- objectname ?> -
- Log entries - - Parameters - - Notifications +

+ objectname ?>
+
+ objectid'> $nr_logs " ?> + + objectid'> $nr_params " ?> + + objectid'> $nr_notifications " ?>
@@ -146,12 +155,12 @@ class object_page extends page


TOTALS
$count_logs Log entries$count_parameters Parameters$count_notifications Notifications


TOTALS
$count_logs$count_parameters$count_notifications
"; ?> -- 2.11.0