summaryrefslogtreecommitdiffstats
path: root/frontends/php/srv_status.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-28 17:58:11 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-28 17:58:11 +0000
commit9c17c8be0eef94e9b0f62a9848d1dcd8a88d2130 (patch)
tree5788842d18d15c7226be38bb6b985dfe209c4ccd /frontends/php/srv_status.php
parent9e2510e64cdac6a2513278b703b54af1ee785614 (diff)
downloadzabbix-9c17c8be0eef94e9b0f62a9848d1dcd8a88d2130.tar.gz
zabbix-9c17c8be0eef94e9b0f62a9848d1dcd8a88d2130.tar.xz
zabbix-9c17c8be0eef94e9b0f62a9848d1dcd8a88d2130.zip
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@1439 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/srv_status.php')
-rw-r--r--frontends/php/srv_status.php29
1 files changed, 5 insertions, 24 deletions
diff --git a/frontends/php/srv_status.php b/frontends/php/srv_status.php
index b7013f4e..fb0a391d 100644
--- a/frontends/php/srv_status.php
+++ b/frontends/php/srv_status.php
@@ -44,17 +44,8 @@
$now=time();
$result=DBselect("select serviceid,name,triggerid,status,showsla,goodsla from services order by sortorder,name");
- echo "<table border=0 width=100% bgcolor='#AAAAAA' cellspacing=1 cellpadding=3>";
- echo "\n";
- echo "<tr bgcolor='#CCCCCC'>";
- echo "<td width=40%><b>".S_SERVICE."</b></td>";
- echo "<td width=10%><b>".S_STATUS."</b></td>";
- echo "<td><b>".S_REASON."</b></td>";
- echo "<td width=20%><b>".S_SLA_LAST_7_DAYS."</b></td>";
- echo "<td width=10% align=center><b>".nbsp(S_PLANNED_CURRENT_SLA)."</b></td>";
- echo "<td width=5%><b>".S_GRAPH."</b></td>";
- echo "</tr>";
- echo "\n";
+ table_begin();
+ table_header(array(S_SERVICE,S_STATUS,S_REASON,S_SLA_LAST_7_DAYS,nbsp(S_PLANNED_CURRENT_SLA),S_GRAPH));
$col=0;
if(isset($_GET["serviceid"]))
{
@@ -122,12 +113,7 @@
$childs=get_num_of_service_childs($row["serviceid"]);
if(isset($row["triggerid"]))
{
-// $trigger=get_trigger_by_triggerid($row["triggerid"]);
-// $description=$trigger["description"];
-// if( strstr($description,"%s"))
-// {
- $description=nbsp(expand_trigger_description($row["triggerid"]));
-// }
+ $description=nbsp(expand_trigger_description($row["triggerid"]));
$description="[<a href=\"alarms.php?triggerid=".$row["triggerid"]."\">".S_TRIGGER_BIG."</a>] $description";
}
else
@@ -172,12 +158,7 @@
{
if(does_service_depend_on_the_service($row["serviceid"],$row2["serviceid"]))
{
-// $trigger=get_trigger_by_triggerid($row2["triggerid"]);
-// $description=$trigger["description"];
-// if( strstr($description,"%s"))
-// {
- $description=nbsp(expand_trigger_description($row2["triggerid"]));
-// }
+ $description=nbsp(expand_trigger_description($row2["triggerid"]));
echo "<li class=\"itservices\"><a href=\"alarms.php?triggerid=".$row2["triggerid"]."\">$description</a></li>";
}
}
@@ -221,7 +202,7 @@
echo "<td><a href=\"srv_status.php?serviceid=".$row["serviceid"]."&showgraph=1\">Show</a></td>";
echo "</tr>";
}
- echo "</table>";
+ table_end();
?>
<?php