summaryrefslogtreecommitdiffstats
path: root/frontends/php/dashboard.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-30 09:03:14 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-30 09:03:14 +0000
commitb9c0d1a9d017ae94759f0058466912fdfcac67b0 (patch)
tree42032a1dd8f88ecf411afa84bca645a385dd60b2 /frontends/php/dashboard.php
parent2c6082db6dbd05718b8535a182350505ce1dde36 (diff)
downloadzabbix-b9c0d1a9d017ae94759f0058466912fdfcac67b0.tar.gz
zabbix-b9c0d1a9d017ae94759f0058466912fdfcac67b0.tar.xz
zabbix-b9c0d1a9d017ae94759f0058466912fdfcac67b0.zip
- [DEV-157] added fullscreen icon to monitoring screens (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5674 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/dashboard.php')
-rw-r--r--frontends/php/dashboard.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/frontends/php/dashboard.php b/frontends/php/dashboard.php
index f99848d5..53258258 100644
--- a/frontends/php/dashboard.php
+++ b/frontends/php/dashboard.php
@@ -44,6 +44,7 @@ include_once "include/page_header.php";
'output'=> array(T_ZBX_STR, O_OPT, P_ACT, NULL, NULL),
'jsscriptid'=> array(T_ZBX_STR, O_OPT, P_ACT, NULL, NULL),
+ 'fullscreen'=> array(T_ZBX_INT, O_OPT, P_SYS, IN('0,1'), NULL),
//ajax
'favobj'=> array(T_ZBX_STR, O_OPT, P_ACT, NULL, NULL),
@@ -188,7 +189,24 @@ include_once "include/page_header.php";
// validate_group(PERM_READ_ONLY,array("allow_all_hosts","monitored_hosts","with_monitored_items"));
// $time = new CSpan(date("[H:i:s]",time()));
// $time->AddOption('id','refreshed');
- show_table_header(array(S_DASHBOARD_BIG,SPACE),SPACE);
+
+// Header
+ $text = array(S_DASHBOARD_BIG);
+
+ $url = '?fullscreen='.($_REQUEST['fullscreen']?'0':'1');
+
+ $fs_icon = new CDiv(SPACE,'fullscreen');
+ $fs_icon->AddOption('title',$_REQUEST['fullscreen']?S_NORMAL.' '.S_VIEW:S_FULLSCREEN);
+ $fs_icon->AddAction('onclick',new CScript("javascript: document.location = '".$url."';"));
+
+ $icon_tab = new CTable();
+ $icon_tab->AddRow(array($fs_icon,SPACE,$text));
+
+ $text = $icon_tab;
+
+ show_table_header($text,SPACE);
+//-------------
+
$left_tab = new CTable();
$left_tab->SetCellPadding(3);