diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-12-23 15:08:03 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-12-23 15:08:03 +0000 |
| commit | ec1886349223f7320e56ddf27be5f16a54f4ff7f (patch) | |
| tree | 7ad40943bcb652dbc9b5e6b25339c7558b2a7e2c /frontends/php/include/config.inc.php | |
| parent | 8d1090105ed319c35253d03bcf3ba6a4e18705e3 (diff) | |
- support of plain text value for screens (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1557 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 60ab6a31..bb5b27e0 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -1762,6 +1762,33 @@ echo "</head>"; } } + # Show screen cell containing plain text values + function show_screen_plaintext($itemid) + { + $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"; + } + else + { + $sql="select clock,value from history_str where itemid=$itemid order by clock desc limit 25"; + } + $result=DBselect($sql); + + table_begin(); + table_header(array(S_CLOCK,$item["description"])); + $col=0; + while($row=DBfetch($result)) + { + table_row(array( + date("d M H:i:s",$row["clock"]), + $row["value"], + ),$col++); + } + table_end(); + } + # Show values in plain text function show_plaintext($itemid, $from, $till) |
