summaryrefslogtreecommitdiffstats
path: root/frontends/php/graphs.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-28 10:03:56 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-28 10:03:56 +0000
commit55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b (patch)
tree497b1375f551fd74294265a401b95a2c093d297b /frontends/php/graphs.php
parent55963f6c918d2503019875cac9307091b908eaaa (diff)
downloadzabbix-55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b.tar.gz
zabbix-55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b.tar.xz
zabbix-55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b.zip
- improved graphs, added 'Working time' displaying (Eugene)
- added 'Working time' configuration (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2786 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 91b706fb..ddd9f81e 100644
--- a/frontends/php/graphs.php
+++ b/frontends/php/graphs.php
@@ -39,6 +39,8 @@
"yaxistype"=> array(T_ZBX_INT, O_OPT, NULL, IN("0,1"), 'isset({save})'),
"yaxismin"=> 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})'),
+ "yaxismax"=> array(T_ZBX_DBL, O_OPT, NULL, BETWEEN(-65535,65535), 'isset({save})'),
+ "showworkperiod"=> array(T_ZBX_INT, O_OPT, NULL, IN("1"), NULL),
/* actions */
"save"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
@@ -66,11 +68,15 @@
<?php
if(isset($_REQUEST["save"]))
{
+ $showworkperiod = 0;
+ if(isset($_REQUEST["showworkperiod"]))
+ $showworkperiod = 1;
+
if(isset($_REQUEST["graphid"]))
{
$result=update_graph($_REQUEST["graphid"],
$_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],
- $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"]);
+ $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"],$showworkperiod);
if($result)
{
@@ -83,7 +89,7 @@
else
{
$result=add_graph($_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],
- $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"]);
+ $_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"],$showworkperiod);
if($result)
{
add_audit(AUDIT_ACTION_ADD,AUDIT_RESOURCE_GRAPH,