From: arjen Date: Fri, 21 Feb 2003 08:46:58 +0000 (+0000) Subject: Improved the table layout. X-Git-Tag: V0_0_5~9 X-Git-Url: http://www.andromeda.nl/gitweb/?p=gnucomo.git;a=commitdiff_plain;h=e8222652419f36701ef87f6bd808d9a0bc0465a7 Improved the table layout. --- 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
"; ?>