summaryrefslogtreecommitdiffstats
path: root/frontends/php/discovery.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/discovery.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/discovery.php')
-rw-r--r--frontends/php/discovery.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/frontends/php/discovery.php b/frontends/php/discovery.php
index 2e3bbd55..595bdbd5 100644
--- a/frontends/php/discovery.php
+++ b/frontends/php/discovery.php
@@ -31,6 +31,7 @@ include_once "include/page_header.php";
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
$fields=array(
"druleid"=> array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, null),
+ 'fullscreen'=> array(T_ZBX_INT, O_OPT, P_SYS, IN('0,1'), NULL),
);
check_fields($fields);
@@ -51,7 +52,23 @@ include_once "include/page_header.php";
);
$r_form->AddItem(array(S_DISCOVERY_RULE.SPACE,$cmbDRules));
- show_table_header(S_STATUS_OF_DISCOVERY_BIG, $r_form);
+// Header
+ $text = array(S_STATUS_OF_DISCOVERY_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, $r_form);
+//-------------
+
$services = array();