SetMap($action_map->GetName()); $item = array($action_map,$image_map); } else { $item = new CLink($image_map, $action); } } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_PLAIN_TEXT) ) { $item = array(get_screen_plaintext($resourceid,$elements)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_HOSTS_INFO) ) { $item = array(new CHostsInfo($style)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_TRIGGERS_INFO) ) { $item = array(new CTriggersInfo($style)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_SERVER_INFO) ) { $item = array(new CServerInfo()); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_CLOCK) ) { $item = new CFlashClock($width, $height, $style, $action); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_SCREEN) ) { $item = array(get_screen($resourceid, 2, $effectiveperiod)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_TRIGGERS_OVERVIEW) ) { global $ZBX_CURNODEID; $item = array(get_triggers_overview($resourceid, $ZBX_CURNODEID)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_DATA_OVERVIEW) ) { global $ZBX_CURNODEID; $item = array(get_items_data_overview($resourceid, $ZBX_CURNODEID)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } elseif( ($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)); } elseif( ($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)); } elseif( ($screenitemid!=0) && ($resourcetype==SCREEN_RESOURCE_EVENTS) ) { $item = array(get_history_of_events(0, $elements)); if($editmode == 1) array_push($item,new CLink(S_CHANGE,$action)); } else { $item = array(SPACE); if($editmode == 1) array_push($item,BR,new CLink(S_CHANGE,$action)); } $str_halign = "def"; if($halign == HALIGN_CENTER) $str_halign = "cntr"; if($halign == HALIGN_LEFT) $str_halign = "left"; if($halign == HALIGN_RIGHT) $str_halign = "right"; $str_valign = "def"; if($valign == VALIGN_MIDDLE) $str_valign = "mdl"; if($valign == VALIGN_TOP) $str_valign = "top"; if($valign == VALIGN_BOTTOM) $str_valign = "bttm"; $new_col = new CCol($item,$str_halign."_".$str_valign); if($colspan) $new_col->SetColSpan($colspan); if($rowspan) $new_col->SetRowSpan($rowspan); array_push($new_cols, $new_col); } $table->AddRow(new CRow($new_cols)); } return $table; } ?>