diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-13 13:59:16 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-13 13:59:16 +0000 |
| commit | 6982fb3d2443946171de306f5078925dfaeae359 (patch) | |
| tree | 704951b6c60210abddd4b1570c70a12e2aa25b9f /frontends/php/items.php | |
| parent | f7f74958b31cb3c8009d5946497911bfcf00cac0 (diff) | |
| download | zabbix-6982fb3d2443946171de306f5078925dfaeae359.tar.gz zabbix-6982fb3d2443946171de306f5078925dfaeae359.tar.xz zabbix-6982fb3d2443946171de306f5078925dfaeae359.zip | |
- different icons depending on a triger status for sysmaps (Alexei)
- added column sysmaps_hosts.icon_on (Alexei)
- hierarchial maps (Alexei)
- added column sysmaps_hosts.url (Alexei)
- upgrades/dbpatches/1.0_to_1.1alpha1/data/images/ (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1421 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
| -rw-r--r-- | frontends/php/items.php | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php index f4bce388..84cb9c39 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -40,6 +40,17 @@ ?> <?php + if(isset($_GET["groupid"])&&($_GET["groupid"]==0)) + { + unset($_GET["groupid"]); + } + if(isset($_GET["hostid"])&&($_GET["hostid"]==0)) + { + unset($_GET["hostid"]); + } +?> + +<?php if(isset($_GET["register"])) { if($_GET["register"]=="update") @@ -129,9 +140,9 @@ ?> <?php - show_table_header_begin(); + show_table3_header_begin(); echo S_CONFIGURATION_OF_ITEMS_BIG;; - show_table_v_delimiter(); + show_table3_h_delimiter(40); // Start of new code echo "<form name=\"form2\" method=\"get\" action=\"items.php\">"; @@ -168,10 +179,16 @@ echo " ".S_HOST." "; echo "<select class=\"biginput\" name=\"hostid\" onChange=\"submit()\">"; + echo "<option value=\"0\" ".iif(!isset($_GET["hostid"]),"selected","").">".S_SELECT_HOST_DOT_DOT_DOT; - $sql=iif(isset($_GET["groupid"]), - "select h.hostid,h.host from hosts h,hosts_groups hg where h.status in (0,2) and hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host", - "select h.hostid,h.host from hosts h where h.status in (0,2) group by h.hostid,h.host order by h.host"); + if(isset($_GET["groupid"])) + { + $sql="select h.hostid,h.host from hosts h,hosts_groups hg where h.status in (0,2) and hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host"; + } + else + { + $sql="select h.hostid,h.host from hosts h where h.status in (0,2) group by h.hostid,h.host order by h.host"; + } $result=DBselect($sql); while($row=DBfetch($result)) @@ -206,8 +223,8 @@ { echo "</TABLE><BR>"; } - echo "<br>"; - show_table_header("<A HREF='items.php?hostid=".$row["hostid"]."'>".$row["host"]."</A>"); +// echo "<br>"; +// show_table_header("<A HREF='items.php?hostid=".$row["hostid"]."'>".$row["host"]."</A>"); echo "<form method=\"get\" action=\"items.php\">"; echo "<input class=\"biginput\" name=\"hostid\" type=hidden value=".$_GET["hostid"]." size=8>"; echo "<TABLE BORDER=0 COLS=13 align=center WIDTH=100% BGCOLOR=\"#AAAAAA\" cellspacing=1 cellpadding=3>"; @@ -217,7 +234,7 @@ // echo "<TD WIDTH=10% NOSAVE><B>".S_HOST."</B></TD>"; echo "<TD WIDTH=10% NOSAVE><B>".S_KEY."</B></TD>"; echo "<TD WIDTH=10% NOSAVE><B>".S_DESCRIPTION."</B></TD>"; - echo "<TD WIDTH=5% NOSAVE><B>".S_UPDATE_INTERVAL."</B></TD>"; + echo "<TD WIDTH=5% NOSAVE><B>".nbsp(S_UPDATE_INTERVAL)."</B></TD>"; echo "<TD WIDTH=5% NOSAVE><B>".S_HISTORY."</B></TD>"; echo "<TD WIDTH=5% NOSAVE><B>".S_TRENDS."</B></TD>"; echo "<TD><B>".S_SHORT_NAME."</B></TD>"; |
