summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-11-20 17:08:41 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-11-20 17:08:41 +0000
commit7ce63d5fa0fa7b06e7bb125cceb2521d83a6ad83 (patch)
treeae45e08353c8e756d89d843f7316b3de08ac98b4 /frontends/php/items.php
parent6a36d80ad7af382a5e894b64fb4018313549a9dd (diff)
downloadzabbix-7ce63d5fa0fa7b06e7bb125cceb2521d83a6ad83.tar.gz
zabbix-7ce63d5fa0fa7b06e7bb125cceb2521d83a6ad83.tar.xz
zabbix-7ce63d5fa0fa7b06e7bb125cceb2521d83a6ad83.zip
Cosmetic changes.
git-svn-id: svn://svn.zabbix.com/trunk@1498 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 40dcdcaa..b2d57993 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -201,9 +201,12 @@
<?php
- $lasthost="";
if(isset($_GET["hostid"])&&!isset($_GET["type"]))
{
+ table_begin();
+ table_header(array(S_ID,S_KEY,S_DESCRIPTION,nbsp(S_UPDATE_INTERVAL),S_HISTORY,S_TRENDS,S_SHORT_NAME,S_TYPE,S_STATUS,S_ACTIONS));
+ echo "<form method=\"get\" action=\"items.php\">";
+ echo "<input class=\"biginput\" name=\"hostid\" type=hidden value=".$_GET["hostid"]." size=8>";
$result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,i.lastdelete,i.nextcheck,h.hostid,i.type,i.trends from hosts h,items i where h.hostid=i.hostid and h.hostid=".$_GET["hostid"]." order by h.host,i.key_,i.description");
$col=0;
while($row=DBfetch($result))
@@ -212,18 +215,6 @@
{
continue;
}
- if($lasthost != $row["host"])
- {
- if($lasthost != "")
- {
- echo "</TABLE><BR>";
- }
- echo "<form method=\"get\" action=\"items.php\">";
- echo "<input class=\"biginput\" name=\"hostid\" type=hidden value=".$_GET["hostid"]." size=8>";
- table_begin();
- table_header(array(S_ID,S_KEY,S_DESCRIPTION,nbsp(S_UPDATE_INTERVAL),S_HISTORY,S_TRENDS,S_SHORT_NAME,S_TYPE,S_STATUS,S_ACTIONS));
- }
- $lasthost=$row["host"];
$input="<INPUT TYPE=\"CHECKBOX\" class=\"biginput\" NAME=\"".$row["itemid"]."\"> ".$row["itemid"];