summaryrefslogtreecommitdiffstats
path: root/frontends/php/popup.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-05 13:48:38 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-05 13:48:38 +0000
commitcd1c62734e8764107414b3fa3f44f6f9901aa8ad (patch)
tree9900a99b00f521fde294abecadf8e68608795b93 /frontends/php/popup.php
parentab9582df4faf46795b9a0c17b418fd244625f077 (diff)
downloadzabbix-cd1c62734e8764107414b3fa3f44f6f9901aa8ad.tar.gz
zabbix-cd1c62734e8764107414b3fa3f44f6f9901aa8ad.tar.xz
zabbix-cd1c62734e8764107414b3fa3f44f6f9901aa8ad.zip
- developed slideshow configuration (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3977 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup.php')
-rw-r--r--frontends/php/popup.php30
1 files changed, 29 insertions, 1 deletions
diff --git a/frontends/php/popup.php b/frontends/php/popup.php
index 12bf7577..033d7781 100644
--- a/frontends/php/popup.php
+++ b/frontends/php/popup.php
@@ -70,6 +70,10 @@
$page["title"] = "S_STANDARD_ITEMS_BIG";
$min_user_type = USER_TYPE_ZABBIX_USER;
break;
+ case 'screens':
+ $page["title"] = "S_SCREENS_BIG";
+ $min_user_type = USER_TYPE_ZABBIX_ADMIN;
+ break;
case 'nodes':
if(ZBX_DISTRIBUTED)
{
@@ -195,7 +199,7 @@ include_once "include/page_header.php";
}
else
{
- if(in_array($srctbl,array("hosts","host_group","triggers","logitems","items",'applications')))
+ if(in_array($srctbl,array("hosts","host_group","triggers","logitems","items",'applications','screens')))
{
if(ZBX_DISTRIBUTED)
{
@@ -794,6 +798,30 @@ function add_item_variable(s_formname,x_value)
}
$table->Show();
}
+ elseif($srctbl == 'screens')
+ {
+ require_once "include/screens.inc.php";
+
+ $table = new CTableInfo(S_NO_NODES_DEFINED);
+ $table->SetHeader(S_NAME);
+
+ $result = DBselect('select screenid,name from screens where '.DBid2nodeid('screenid').'='.$nodeid.' order by name');
+ while($row=DBfetch($result))
+ {
+ if(!screen_accessiable($row["screenid"], PERM_READ_ONLY))
+ continue;
+
+ $name = new CLink($row["name"],"#","action");
+ $name->SetAction(
+ get_window_opener($dstfrm, $dstfld1, $row[$srcfld1]).
+ (isset($srcfld2) ? get_window_opener($dstfrm, $dstfld2, $row[$srcfld2]) : '').
+ ' close_window(); return false;');
+
+ $table->AddRow($name);
+ }
+
+ $table->Show();
+ }
?>
<?php