summaryrefslogtreecommitdiffstats
path: root/frontends/php/tr_status.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-02 11:22:22 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-02 11:22:22 +0000
commitd2a3e65806eb484b59de7c3d8b7a8612249e70ca (patch)
treea86c165cd36fe5284a3e59bcbcf6a10eb56077dc /frontends/php/tr_status.php
parent5297145c0a145eea288a0488e24e08d56c2b7dee (diff)
- Developed action configurations for discodery events (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3965 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_status.php')
-rw-r--r--frontends/php/tr_status.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php
index 7bf980fa..735febd7 100644
--- a/frontends/php/tr_status.php
+++ b/frontends/php/tr_status.php
@@ -349,13 +349,7 @@ include_once "include/page_header.php";
else
$blink = array(1=>"", 2=>"");
- if($row["value"]==0)
- $value = array( 'text' => $blink[1].S_FALSE_BIG.$blink[2], 'style'=> "off" );
- else if($row["value"]==2)
- $value = array( 'text' => $blink[1].S_UNKNOWN_BIG.$blink[2], 'style'=> "unknown" );
- else
- $value = array( 'text' => S_TRUE_BIG, 'style'=> "on" );
-
+ $value = new CSpan($blink[1].trigger_value2str($row["value"].$blink[2]), get_trigger_value_style($row["value"]));
if($noactions=='true')
{
@@ -400,7 +394,7 @@ include_once "include/page_header.php";
$table->AddRow(array(
$_REQUEST['hostid'] > 0 ? null : $row['host'],
$description,
- new CSpan($value['text'], $value['style']),
+ $value,
new CCol(
get_severity_description($row["priority"]),
get_severity_style($row["priority"])),