diff options
Diffstat (limited to 'frontends/php/srv_status.html')
| -rw-r--r-- | frontends/php/srv_status.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/frontends/php/srv_status.html b/frontends/php/srv_status.html new file mode 100644 index 00000000..ed02663f --- /dev/null +++ b/frontends/php/srv_status.html @@ -0,0 +1,53 @@ +<? + $page["title"] = "High-level representation of monitored data"; + $page["file"] = "srv_status.html"; + + include "include/config.inc"; + show_header($page["title"],0,0); +?> + +<? + show_table_header("IT's SERVICES"); + + echo "<br>"; + + show_table_header("SERVICES"); +?> +<? + $now=time(); + $result=DBselect("select serviceid,name from services order by name"); + echo "<table border=0 width=100% bgcolor='#CCCCCC' cellspacing=1 cellpadding=3>"; + echo "\n"; + echo "<tr><td><b>Service</b></td></tr>"; + echo "\n"; + $col=0; + for($i=0;$i<DBnum_rows($result);$i++) + { + $serviceid_=DBget_field($result,$i,0); + $name_=DBget_field($result,$i,1); + + if(isset($serviceid)&&($serviceid==$serviceid_)) + { + echo "<tr bgcolor=#99AABB>"; + } + else + { + if($col==1) + { + echo "<tr bgcolor=#EEEEEE>"; + $col=0; + } else + { + echo "<tr bgcolor=#DDDDDD>"; + $col=1; + } + } + echo "<td><a href=\"srv_status.html?serviceid=$serviceid_\">$name_</a></td>"; + echo "</tr>"; + } + echo "</table>"; +?> + +<? + show_footer(); +?> |
