".S_NO_PERMISSIONS.""); show_page_footer(); exit; } if(isset($_REQUEST["select"])&&($_REQUEST["select"]!="")) { unset($_REQUEST["groupid"]); unset($_REQUEST["hostid"]); } if(isset($_REQUEST["hostid"])&&!check_right("Host","R",$_REQUEST["hostid"])) { show_table_header("".S_NO_PERMISSIONS.""); show_page_footer(); exit; } ?> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535), NULL), "type"=> array(T_ZBX_INT, O_OPT, P_SYS, IN("0,1"), NULL) ); check_fields($fields); ?> AddItem(0,S_ALL_SMALL); $result=DBselect("select groupid,name from groups order by name"); while($row=DBfetch($result)) { $result2=DBselect("select h.hostid,h.host from hosts h,items i,hosts_groups hg where". " h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$row["groupid"]. " and hg.hostid=h.hostid group by h.hostid,h.host order by h.host"); while($row2=DBfetch($result2)) { if(!check_right("Host","R",$row2["hostid"])) continue; $cmbGroup->AddItem($row["groupid"],$row["name"]); break; } } $form->AddItem(array(S_GROUP.SPACE,$cmbGroup)); $cmbType = new CComboBox("type",$_REQUEST["type"],"submit()"); $cmbType->AddItem(0,S_TRIGGERS); $cmbType->AddItem(1,S_DATA); $form->AddItem(array(S_TYPE.SPACE,$cmbType)); show_header2(S_OVERVIEW_BIG, $form); ?> Show(); } elseif($_REQUEST["type"]==SHOW_TRIGGERS) { $table = get_triggers_overview($_REQUEST["groupid"]); $table->Show(); } ?>