summaryrefslogtreecommitdiffstats
path: root/frontends/php/report1.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-03 10:03:54 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-03 10:03:54 +0000
commit26905a61d0cec458a04a971a6751e18a021d1c92 (patch)
tree5f601cc98feb07330cfc0ba280841929d1a042fe /frontends/php/report1.php
parentbebbe1e18bdd25e6f976f8a39a308e65728b957d (diff)
downloadzabbix-26905a61d0cec458a04a971a6751e18a021d1c92.tar.gz
zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.tar.xz
zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.zip
PHP code cleanup. Use of class Ctable.
git-svn-id: svn://svn.zabbix.com/trunk@2484 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
-rw-r--r--frontends/php/report1.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php
index f140ba65..ac086c0b 100644
--- a/frontends/php/report1.php
+++ b/frontends/php/report1.php
@@ -32,9 +32,9 @@
<?php
show_table_header(S_STATUS_OF_ZABBIX_BIG);
- table_begin();
+ $table = new Ctable();
- table_header(array(S_PARAMETER,S_VALUE));
+ $table->setHeader(array(S_PARAMETER,S_VALUE));
$stats=get_stats();
@@ -44,18 +44,18 @@
{
$str=array("value"=>S_YES,"class"=>"off");
}
- table_row(array(S_ZABBIX_SERVER_IS_RUNNING,$str),$col++);
-
- table_row(array(S_NUMBER_OF_VALUES_STORED,$stats["history_count"]),$col++);
- table_row(array(S_NUMBER_OF_TRENDS_STORED,$stats["trends_count"]),$col++);
- table_row(array(S_NUMBER_OF_ALARMS,$stats["alarms_count"]),$col++);
- table_row(array(S_NUMBER_OF_ALERTS,$stats["alerts_count"]),$col++);
- table_row(array(S_NUMBER_OF_TRIGGERS_ENABLED_DISABLED,$stats["triggers_count"]."(".$stats["triggers_count_enabled"]."/".$stats["triggers_count_disabled"].")"),$col++);
- table_row(array(S_NUMBER_OF_ITEMS_ACTIVE_TRAPPER,$stats["items_count"]."(".$stats["items_count_active"]."/".$stats["items_count_trapper"]."/".$stats["items_count_not_active"]."/".$stats["items_count_not_supported"].")"),$col++);
- table_row(array(S_NUMBER_OF_USERS,$stats["users_count"]),$col++);
- table_row(array(S_NUMBER_OF_HOSTS_MONITORED,$stats["hosts_count"]."(".$stats["hosts_count_monitored"]."/".$stats["hosts_count_not_monitored"]."/".$stats["hosts_count_template"]."/".$stats["hosts_count_deleted"].")"),$col++);
-
- table_end();
+ $table->addRow(array(S_ZABBIX_SERVER_IS_RUNNING,$str),$col++);
+
+ $table->addRow(array(S_NUMBER_OF_VALUES_STORED,$stats["history_count"]),$col++);
+ $table->addRow(array(S_NUMBER_OF_TRENDS_STORED,$stats["trends_count"]),$col++);
+ $table->addRow(array(S_NUMBER_OF_ALARMS,$stats["alarms_count"]),$col++);
+ $table->addRow(array(S_NUMBER_OF_ALERTS,$stats["alerts_count"]),$col++);
+ $table->addRow(array(S_NUMBER_OF_TRIGGERS_ENABLED_DISABLED,$stats["triggers_count"]."(".$stats["triggers_count_enabled"]."/".$stats["triggers_count_disabled"].")"),$col++);
+ $table->addRow(array(S_NUMBER_OF_ITEMS_ACTIVE_TRAPPER,$stats["items_count"]."(".$stats["items_count_active"]."/".$stats["items_count_trapper"]."/".$stats["items_count_not_active"]."/".$stats["items_count_not_supported"].")"),$col++);
+ $table->addRow(array(S_NUMBER_OF_USERS,$stats["users_count"]),$col++);
+ $table->addRow(array(S_NUMBER_OF_HOSTS_MONITORED,$stats["hosts_count"]."(".$stats["hosts_count_monitored"]."/".$stats["hosts_count_not_monitored"]."/".$stats["hosts_count_template"]."/".$stats["hosts_count_deleted"].")"),$col++);
+
+ $table->show();
?>
<?php