summaryrefslogtreecommitdiffstats
path: root/frontends/php/graphs.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-02 14:29:11 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-02 14:29:11 +0000
commit5f5f27c2d19ab6687d10aa04c88d5b835d024e48 (patch)
tree7b04e4d7bffcc5866c8d4f3d0276cfb09bda489a /frontends/php/graphs.php
parent666e0dbf5f8cf58a42855dbd33ea9eb83328d211 (diff)
downloadzabbix-5f5f27c2d19ab6687d10aa04c88d5b835d024e48.tar.gz
zabbix-5f5f27c2d19ab6687d10aa04c88d5b835d024e48.tar.xz
zabbix-5f5f27c2d19ab6687d10aa04c88d5b835d024e48.zip
- added trigger displaying on graphs (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2792 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graphs.php')
-rw-r--r--frontends/php/graphs.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php
index ddd9f81e..f281ba7c 100644
--- a/frontends/php/graphs.php
+++ b/frontends/php/graphs.php
@@ -41,6 +41,7 @@
"yaxismax"=> array(T_ZBX_DBL, O_OPT, NULL, BETWEEN(-65535,65535), 'isset({save})'),
"yaxismax"=> array(T_ZBX_DBL, O_OPT, NULL, BETWEEN(-65535,65535), 'isset({save})'),
"showworkperiod"=> array(T_ZBX_INT, O_OPT, NULL, IN("1"), NULL),
+ "showtriggers"=> array(T_ZBX_INT, O_OPT, NULL, IN("1"), NULL),
/* actions */
"save"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
@@ -71,12 +72,16 @@
$showworkperiod = 0;
if(isset($_REQUEST["showworkperiod"]))
$showworkperiod = 1;
+ $showtriggers = 0;
+ if(isset($_REQUEST["showtriggers"]))
+ $showtriggers = 1;
if(isset($_REQUEST["graphid"]))
{
$result=update_graph($_REQUEST["graphid"],
$_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],
- $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"],$showworkperiod);
+ $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"],
+ $showworkperiod,$showtriggers);
if($result)
{
@@ -89,7 +94,8 @@
else
{
$result=add_graph($_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],
- $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"],$showworkperiod);
+ $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"],
+ $showworkperiod,$showtriggers);
if($result)
{
add_audit(AUDIT_ACTION_ADD,AUDIT_RESOURCE_GRAPH,