summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/screens.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-30 15:31:57 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-30 15:31:57 +0000
commitd819518a7df5456ad4694924457f1c67c755cf27 (patch)
tree117806ef4edc28a84f4e1c90c6cf1a24b91463fb /frontends/php/include/screens.inc.php
parent8a4c4454a144c2eab9534e558604e9e11c4da585 (diff)
downloadzabbix-d819518a7df5456ad4694924457f1c67c755cf27.tar.gz
zabbix-d819518a7df5456ad4694924457f1c67c755cf27.tar.xz
zabbix-d819518a7df5456ad4694924457f1c67c755cf27.zip
- [DEV-137] fixes for screens (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5855 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/screens.inc.php')
-rw-r--r--frontends/php/include/screens.inc.php52
1 files changed, 21 insertions, 31 deletions
diff --git a/frontends/php/include/screens.inc.php b/frontends/php/include/screens.inc.php
index 292af0d2..4871e0bf 100644
--- a/frontends/php/include/screens.inc.php
+++ b/frontends/php/include/screens.inc.php
@@ -18,8 +18,9 @@
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
- require_once "include/events.inc.php";
- require_once "include/actions.inc.php";
+ require_once('include/events.inc.php');
+ require_once('include/actions.inc.php');
+
?>
<?php
function screen_accessible($screenid,$perm){
@@ -1001,16 +1002,16 @@
$action
);
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_MAP) )
- {
- $image_map = new CImg("map.php?noedit=1&sysmapid=$resourceid".
- "&width=$width&height=$height");
- if($editmode == 0)
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_MAP) ){
+
+ $image_map = new CImg("map.php?noedit=1&sysmapid=$resourceid"."&width=$width&height=$height");
+
+ if($editmode == 0){
$action_map = get_action_map_by_sysmapid($resourceid);
$image_map->SetMap($action_map->GetName());
$item = array($action_map,$image_map);
- } else {
+ }
+ else {
$item = new CLink($image_map, $action);
}
}
@@ -1028,57 +1029,46 @@
$item = array(get_screen_plaintext($resourceid,$elements));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_HOSTS_INFO) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_HOSTS_INFO) ){
$item = array(new CHostsInfo($resourceid, $style));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_TRIGGERS_INFO) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_TRIGGERS_INFO) ){
$item = array(new CTriggersInfo($style));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_SERVER_INFO) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_SERVER_INFO) ){
$item = array(new CServerInfo());
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_CLOCK) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_CLOCK) ){
$item = new CFlashClock($width, $height, $style, $action);
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_SCREEN) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_SCREEN) ){
$item = array(get_screen($resourceid, 2, $effectiveperiod));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_TRIGGERS_OVERVIEW) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_TRIGGERS_OVERVIEW) ){
$item = array(get_triggers_overview($resourceid,$style));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_DATA_OVERVIEW) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_DATA_OVERVIEW) ){
$item = array(get_items_data_overview($resourceid,$style));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_URL) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_URL) ){
$item = array(new CIFrame($url,$width,$height,"auto"));
if($editmode == 1) array_push($item,BR(),new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_ACTIONS) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_ACTIONS) ){
$item = array(get_history_of_actions(0, $elements));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_EVENTS) )
- {
+ else if( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_EVENTS) ){
$item = array(get_history_of_triggers_events(0, $elements));
if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action));
}
- else
- {
+ else{
$item = array(SPACE);
if($editmode == 1) array_push($item,BR(),new CLink(S_CHANGE,$action));
}