summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-04-07 18:21:22 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-04-07 18:21:22 +0000
commit793cc2e085dc67097d1521d58052033cfdcbfef3 (patch)
tree833bbc1b0fa0f93598a3c2d4e9df1dd6444fd19e /frontends/php/include
parent9a52608e23459cd737e26aed750b87224ffa85b7 (diff)
downloadzabbix-793cc2e085dc67097d1521d58052033cfdcbfef3.tar.gz
zabbix-793cc2e085dc67097d1521d58052033cfdcbfef3.tar.xz
zabbix-793cc2e085dc67097d1521d58052033cfdcbfef3.zip
Better support for non-numeric values.
git-svn-id: svn://svn.zabbix.com/trunk@346 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc
index f9c3ea33..dfc9557d 100644
--- a/frontends/php/include/config.inc
+++ b/frontends/php/include/config.inc
@@ -759,7 +759,15 @@
}
else
{
- $exp=$exp."{<A HREF=\"history.php?action=showhistory&itemid=".DBget_field($res1,0,4)."\">".DBget_field($res1,0,0).":".DBget_field($res1,0,1)."</A>.<B>".DBget_field($res1,0,2)."(</B>".DBget_field($res1,0,3)."<B>)</B>}";
+ $item=get_item_by_itemid(DBget_field($res1,0,4));
+ if($item["value_type"] ==0)
+ {
+ $exp=$exp."{<A HREF=\"history.php?action=showhistory&itemid=".DBget_field($res1,0,4)."\">".DBget_field($res1,0,0).":".DBget_field($res1,0,1)."</A>.<B>".DBget_field($res1,0,2)."(</B>".DBget_field($res1,0,3)."<B>)</B>}";
+ }
+ else
+ {
+ $exp=$exp."{<A HREF=\"history.php?action=showvalues&period=3600&itemid=".DBget_field($res1,0,4)."\">".DBget_field($res1,0,0).":".DBget_field($res1,0,1)."</A>.<B>".DBget_field($res1,0,2)."(</B>".DBget_field($res1,0,3)."<B>)</B>}";
+ }
}
continue;
}
@@ -1908,7 +1916,7 @@
show_table2_v_delimiter2();
echo "Press ";
- echo "<input type=\"submit\" name=\"action\" value=\"showvalues\"> to see graph";
+ echo "<input type=\"submit\" name=\"action\" value=\"showvalues\"> to see values in plain text";
show_table2_header_end();