diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-19 10:28:27 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-19 10:28:27 +0000 |
| commit | e919143b2cc278b171b0ef659e89109b4f5e2b14 (patch) | |
| tree | d2dc920c72ffd0d7813451c7b26d73580d3eca66 /frontends/php/latest.php | |
| parent | 1b0aad499db894813eb1067c07606d17865f7bf4 (diff) | |
| download | zabbix-e919143b2cc278b171b0ef659e89109b4f5e2b14.tar.gz zabbix-e919143b2cc278b171b0ef659e89109b4f5e2b14.tar.xz zabbix-e919143b2cc278b171b0ef659e89109b4f5e2b14.zip | |
- [DEV-137] added selecting first group & host to overview & latest screens (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5712 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
| -rw-r--r-- | frontends/php/latest.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php index 30e1f9f7..4adea4ec 100644 --- a/frontends/php/latest.php +++ b/frontends/php/latest.php @@ -51,9 +51,20 @@ include_once "include/page_header.php"; validate_sort_and_sortorder('i.description',ZBX_SORT_UP); $options = array("allow_all_hosts","monitored_hosts","with_monitored_items");//,"always_select_first_host"); + + if(!isset($_REQUEST['hostid'])){ + array_push($options,'always_select_first_host'); + + $_REQUEST['groupid'] = get_request('groupid',get_profile('web.latest.last.groupid')); + if(!isset($_REQUEST['groupid'])){ + validate_group(PERM_READ_ONLY,array('allow_all_hosts','monitored_hosts','with_monitored_items','always_select_first_group'),'web.latest.last.groupid'); + } + } + if(!$ZBX_WITH_SUBNODES) array_push($options,"only_current_node"); validate_group_with_host(PERM_READ_ONLY,$options,'web.latest.last.groupid','web.latest.last.hostid'); + ?> <?php @@ -96,7 +107,7 @@ include_once "include/page_header.php"; $r_form->SetMethod('get'); $r_form->AddVar("select",$_REQUEST["select"]); - + $cmbGroup = new CComboBox("groupid",$_REQUEST["groupid"],"submit()"); $cmbHosts = new CComboBox("hostid",$_REQUEST["hostid"],"submit()"); |
