summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-12-23 11:48:04 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-12-23 11:48:04 +0000
commit80956c94c16eee14f95fcb43f178d704b6a4bc2a (patch)
tree91e000741a57f77d72d3b82a4186c7b1380c0c48 /frontends/php/include/config.inc.php
parent706ecae50087af0d495c9d6e683ec2f17740dca9 (diff)
- added configurable number of plain text elements for screens (Alexei)
- added screens_items.elements (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@2419 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 2a62a268..ecad6837 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1218,21 +1218,21 @@ echo "</head>";
}
# Show screen cell containing plain text values
- function show_screen_plaintext($itemid)
+ function show_screen_plaintext($itemid,$elements)
{
$item=get_item_by_itemid($itemid);
if($item["value_type"]==0)
{
- $sql="select clock,value from history where itemid=$itemid order by clock desc limit 25";
+ $sql="select clock,value from history where itemid=$itemid order by clock desc limit $elements";
}
else
{
- $sql="select clock,value from history_str where itemid=$itemid order by clock desc limit 25";
+ $sql="select clock,value from history_str where itemid=$itemid order by clock desc limit $elements";
}
$result=DBselect($sql);
table_begin();
- table_header(array(S_CLOCK,$item["description"]));
+ table_header(array(S_TIMESTAMP,$item["description"]));
$col=0;
while($row=DBfetch($result))
{