database, "SELECT statvalue FROM object_statistics WHERE objectid=CAST('" . $objectid . "' AS BIGINT) AND statname='parameters'"); $stat = pg_fetch_object($r, 0); $this->nr_parameters = $stat->statvalue; $r = pg_exec ($this->database, "SELECT statvalue FROM object_statistics WHERE objectid=CAST('" . $objectid . "' AS BIGINT) AND statname='removed_parameters'"); $stat = pg_fetch_object($r, 0); $this->removed_parameters = $stat->statvalue; // Gather statistics on notifications $r = pg_exec ($this->database, "SELECT statvalue FROM object_statistics WHERE objectid=CAST('" . $objectid . "' AS BIGINT) AND statname='notifications'"); $stat = pg_fetch_object($r, 0); $this->nr_notifications = $stat->statvalue; $r = pg_exec ($this->database, "SELECT statvalue FROM object_statistics WHERE objectid=CAST('" . $objectid . "' AS BIGINT) AND statname='closed_notifications'"); $stat = pg_fetch_object($r, 0); $this->closed_notifications = $stat->statvalue; // Gather statistics on log entries $r = pg_exec ($this->database, "SELECT statvalue FROM object_statistics WHERE objectid=CAST('" . $objectid . "' AS BIGINT) AND statname='logs'"); $stat = pg_fetch_object($r, 0); $this->nr_logs = $stat->statvalue; } function Body() { clientscripts(); echo "
Object | Log entries | Parameters | Notifications | |
---|---|---|---|---|
objectname ?> | objectid'> $this->nr_logs " ?> | objectid'>" . $this->nr_parameters . " (" . $this->removed_parameters . " removed)" ?> | objectid'>" . $this->nr_notifications . " (" . $this->closed_notifications . " closed)" ?> | TOTALS | ";
echo "$count_logs | "; echo "$count_parameters ($removed_parameters removed) | "; echo "$count_notifications ($closed_notifications closed) | "; echo "
Showpage(); ?>