summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
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();