summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-03-22 19:04:53 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-03-22 19:04:53 +0000
commit5c6297d5fc9e9ee39c32bab2a7e12dc08e907d62 (patch)
treedafbc018643a6e637fc06139c246c1d12a7e7f4f
parent2eb280db699731b6e13a9a03add4be88c54b7e6a (diff)
downloadzabbix-5c6297d5fc9e9ee39c32bab2a7e12dc08e907d62.tar.gz
zabbix-5c6297d5fc9e9ee39c32bab2a7e12dc08e907d62.tar.xz
zabbix-5c6297d5fc9e9ee39c32bab2a7e12dc08e907d62.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@339 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r--frontends/php/latest.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 8387b065..20c322cc 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -109,7 +109,7 @@
{
$sort="order by i.description";
}
- $result=DBselect("select h.host,i.itemid,i.description,i.lastvalue,i.prevvalue,i.lastclock,i.status,h.hostid from items i,hosts h where h.hostid=i.hostid and h.status in (0,2) and i.status in (0,2) and h.hostid=$hostid $sort");
+ $result=DBselect("select h.host,i.itemid,i.description,i.lastvalue,i.prevvalue,i.lastclock,i.status,h.hostid,i.value_type from items i,hosts h where h.hostid=i.hostid and h.status in (0,2) and i.status in (0,2) and h.hostid=$hostid $sort");
while($row=DBfetch($result))
{
if($col++%2 == 1) { echo "<tr bgcolor=#DDDDDD>"; }
@@ -158,7 +158,14 @@
echo "<td><center>-</center></td>";
}
echo "<td><center><a href=\"history.php?action=showhistory&itemid=".$row["itemid"]."\">Show</a></center></td>";
- echo "<td><center><a href=\"trends.php?itemid=".$row["itemid"]."\">Show</a></center></td>";
+ if($row["value_type"]==0)
+ {
+ echo "<td><center><a href=\"trends.php?itemid=".$row["itemid"]."\">Show</a></center></td>";
+ }
+ else
+ {
+ echo "<td><center>Show</center></td>";
+ }
echo "</tr>";
}
echo "</table>";