diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-01-05 19:28:10 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-01-05 19:28:10 +0000 |
| commit | 36020ffc5c826952f88b4adb4cf62f5d77c752cd (patch) | |
| tree | 1952b7d131d3197790041b4a89dacbd73cfca8a7 /frontends/php/items.php | |
| parent | 2a39f512b3fe946130035f41059b6b2dbe0a8f19 (diff) | |
| download | zabbix-36020ffc5c826952f88b4adb4cf62f5d77c752cd.tar.gz zabbix-36020ffc5c826952f88b4adb4cf62f5d77c752cd.tar.xz zabbix-36020ffc5c826952f88b4adb4cf62f5d77c752cd.zip | |
- different colors for different status of items, triggers, users
(Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@627 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
| -rw-r--r-- | frontends/php/items.php | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php index db630c1f..a4c5fe1f 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -181,46 +181,46 @@ echo "<td align=center>"; - if(isset($HTTP_GET_VARS["hostid"])) - { +# if(isset($HTTP_GET_VARS["hostid"])) +# { switch($row["status"]) { case 0: - echo "<a href=\"items.php?itemid=".$row["itemid"]."&hostid=".$HTTP_GET_VARS["hostid"]."®ister=changestatus&status=1\">Active</a>"; + echo "<a href=\"items.php?itemid=".$row["itemid"]."&hostid=".$HTTP_GET_VARS["hostid"]."®ister=changestatus&status=1\"><font color=\"00AA00\">Active</font></a>"; break; case 1: - echo "<a href=\"items.php?itemid=".$row["itemid"]."&hostid=".$HTTP_GET_VARS["hostid"]."®ister=changestatus&status=0\">Not active</a>"; + echo "<a href=\"items.php?itemid=".$row["itemid"]."&hostid=".$HTTP_GET_VARS["hostid"]."®ister=changestatus&status=0\"><font color=\"AA0000\">Not active</font></a>"; break; # case 2: # echo "Trapper"; # break; case 3: - echo "Not supported"; + echo "<font color=\"AAAAAA\">Not supported</font>"; break; default: echo "<B>$status</B> Unknown"; } - } - else - { - switch($row["status"]) - { - case 0: - echo "<a href=\"items.php?itemid=".$row["itemid"]."®ister=changestatus&status=1\">Active</a>"; - break; - case 1: - echo "<a href=\"items.php?itemid=".$row["itemid"]."®ister=changestatus&status=0\">Not active</a>"; - break; - case 2: - echo "Trapper"; - break; - case 3: - echo "Not supported"; - break; - default: - echo "<B>$status</B> Unknown"; - } - } +# } +# else +# { +# switch($row["status"]) +# { +# case 0: +# echo "<a href=\"items.php?itemid=".$row["itemid"]."®ister=changestatus&status=1\">Active</a>"; +# break; +# case 1: +# echo "<a href=\"items.php?itemid=".$row["itemid"]."®ister=changestatus&status=0\">Not active</a>"; +# break; +# case 2: +# echo "Trapper"; +# break; +# case 3: +# echo "Not supported"; +# break; +# default: +# echo "<B>$status</B> Unknown"; +# } +# } echo "</td>"; if(check_right("Item","U",$row["itemid"])) |
