summaryrefslogtreecommitdiffstats
path: root/frontends/php/warning.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-24 11:53:06 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-24 11:53:06 +0000
commit2b8703fbe10a01e92ba737d233faffc3727341a4 (patch)
treefb2a98a5b00863c133b7c18a0eed2f40d570474b /frontends/php/warning.php
parentfe41bf62d79f697b051e75aa4b65889ac133d5e0 (diff)
downloadzabbix-2b8703fbe10a01e92ba737d233faffc3727341a4.tar.gz
zabbix-2b8703fbe10a01e92ba737d233faffc3727341a4.tar.xz
zabbix-2b8703fbe10a01e92ba737d233faffc3727341a4.zip
- [DEV-102] added support of UTF8 for GUI (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5275 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/warning.php')
-rw-r--r--frontends/php/warning.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/warning.php b/frontends/php/warning.php
index b0adfc48..c749c15c 100644
--- a/frontends/php/warning.php
+++ b/frontends/php/warning.php
@@ -34,6 +34,7 @@ $refresh_rate = 30; //seconds
<?php
$fields=array(
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
+ "warning_msg"=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL),
"message"=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL),
"retry"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
"cancel"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL)
@@ -51,8 +52,6 @@ $refresh_rate = 30; //seconds
$USER_DETAILS["refresh"] = $refresh_rate;
include_once "include/page_header.php";
unset($USER_DETAILS);
-
-// if(isset($_REQUEST['message'])) show_error_message($_REQUEST['message']);
insert_showhint_javascript();
@@ -66,8 +65,10 @@ unset($USER_DETAILS);
$table->AddRow(SPACE);
+ $warning_msg=(isset($_REQUEST['warning_msg']))?($_REQUEST['warning_msg']):(S_ZABBIX_IS_UNAVAILABLE.'!');
+
$img = new CImg('./images/general/warning16r.gif','warning',16,16,'img');
- $msg = new CSpan(bold(SPACE.S_ZABBIX_IS_UNAVAILABLE.'!'));
+ $msg = new CSpan(bold(SPACE.$warning_msg));
$msg->AddOption('style','line-height: 20px; vertical-align: top;');
$table->AddRow(new CCol(array(