summaryrefslogtreecommitdiffstats
path: root/frontends/php/screens.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-13 14:39:13 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-13 14:39:13 +0000
commit42858cb993ece4f6cdf86d3bc77a3e0451e2a66a (patch)
treeed54d37750ea42c92aaa05eb22ea8adb39ab8e82 /frontends/php/screens.php
parent243d617eb24a7ba56683fcc976701064720181ba (diff)
downloadzabbix-42858cb993ece4f6cdf86d3bc77a3e0451e2a66a.tar.gz
zabbix-42858cb993ece4f6cdf86d3bc77a3e0451e2a66a.tar.xz
zabbix-42858cb993ece4f6cdf86d3bc77a3e0451e2a66a.zip
- fixed navigation bar for Sreens (Eugene)
(http://www.zabbix.com/forum/showthread.php?t=2148) git-svn-id: svn://svn.zabbix.com/trunk@2637 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/screens.php')
-rw-r--r--frontends/php/screens.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/frontends/php/screens.php b/frontends/php/screens.php
index 23a5f892..830a917b 100644
--- a/frontends/php/screens.php
+++ b/frontends/php/screens.php
@@ -20,6 +20,8 @@
?>
<?php
include "include/config.inc.php";
+
+
$page["title"] = "S_CUSTOM_SCREENS";
$page["file"] = "screens.php";
@@ -39,16 +41,14 @@
?>
<?php
- $effectiveperiod=navigation_bar_calc();
-?>
-
-<?php
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
$fields=array(
"screenid"=> array(T_ZBX_INT, O_OPT, P_SYS|P_NZERO, DB_ID,NULL),
"dec"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"inc"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"from"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
+ "left"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
+ "right"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"period"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"stime"=> array(T_ZBX_STR, O_OPT, P_SYS, NULL,NULL),
"action"=> array(T_ZBX_STR, O_OPT, P_SYS, IN("'go'"),NULL),
@@ -60,6 +60,10 @@
?>
<?php
+ $effectiveperiod=navigation_bar_calc();
+?>
+
+<?php
$_REQUEST["screenid"]=get_request("screenid",get_profile("web.screens.screenid",0));
update_profile("web.screens.screenid",$_REQUEST["screenid"]);
update_profile("web.menu.view.last",$page["file"]);
@@ -196,7 +200,7 @@
{
$item = new CLink(
new CImg("chart2.php?graphid=$resourceid&width=$width&height=$height".
- "&period=3600' border=0"),
+ "&period=$effectiveperiod".url_param("stime").url_param("from")),
"charts.php?graphid=$resourceid".url_param("period").
url_param("inc").url_param("dec")
);
@@ -205,7 +209,7 @@
{
$item = new CLink(
new CImg("chart.php?itemid=$resourceid&width=$width&height=$height".
- "&period=3600"),
+ "&period=$effectiveperiod".url_param("stime").url_param("from")),
"history.php?action=showhistory&itemid=$resourceid".
url_param("period").url_param("inc").url_param("dec")
);
@@ -213,7 +217,7 @@
else if( ($screenitemid!=0) && ($resource==2) )
{
$item = new CImg("map.php?noedit=1&sysmapid=$resourceid".
- "&width=$width&height=$height&period=3600");
+ "&width=$width&height=$height");
}
else if( ($screenitemid!=0) && ($resource==3) )
{