summaryrefslogtreecommitdiffstats
path: root/frontends/php/report1.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
commit28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89 (patch)
tree8281ccd48964ee0dd11c5ea689091fa3cef706fb /frontends/php/report1.php
parent495799b2aa61aab23d74d7faa110a0cd09d59bf0 (diff)
downloadzabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.gz
zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.xz
zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.zip
- developed group permission system (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3371 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
-rw-r--r--frontends/php/report1.php27
1 files changed, 9 insertions, 18 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php
index df230d87..80ddafc9 100644
--- a/frontends/php/report1.php
+++ b/frontends/php/report1.php
@@ -19,24 +19,19 @@
**/
?>
<?php
- include "include/config.inc.php";
+ require_once "include/config.inc.php";
$page["title"] = "S_STATUS_OF_ZABBIX";
$page["file"] = "report1.php";
- show_header($page["title"],0,0);
-?>
-<?php
- update_profile("web.menu.reports.last",$page["file"]);
-?>
+include_once "include/page_header.php";
+?>
<?php
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
- $fields=array(
- );
+ $fields=array();
check_fields($fields);
?>
-
<?php
show_table_header(S_STATUS_OF_ZABBIX_BIG);
@@ -46,12 +41,7 @@
$status=get_status();
- if($status["zabbix_server"] == S_YES)
- $style = "off";
- else
- $style = "on";
-
- $table->AddRow(array(S_ZABBIX_SERVER_IS_RUNNING,new CSpan($status["zabbix_server"],$style)));
+ $table->AddRow(array(S_ZABBIX_SERVER_IS_RUNNING,new CSpan($status["zabbix_server"], ($status["zabbix_server"] == S_YES ? "off" : "on"))));
$table->AddRow(array(S_VALUES_STORED,$status["history_count"]));
$table->AddRow(array(S_TRENDS_STORED,$status["trends_count"]));
$table->AddRow(array(S_NUMBER_OF_HOSTS,array($status["hosts_count"]."(",
@@ -70,11 +60,12 @@
new CSpan($status["triggers_count_unknown"],"unknown"),"/",
new CSpan($status["triggers_count_off"],"off"),"]"
)));
- $table->AddRow(array(S_NUMBER_OF_ALARMS,$status["alarms_count"]));
+ $table->AddRow(array(S_NUMBER_OF_ALARMS,$status["events_count"]));
$table->AddRow(array(S_NUMBER_OF_ALERTS,$status["alerts_count"]));
$table->Show();
?>
-
<?php
- show_page_footer();
+
+include_once "include/page_footer.php";
+
?>