';
html_print_image('images/spinner.png');
@@ -240,35 +258,50 @@ echo '
';
html_print_table($table);
echo '';
-
-// Destiny selection
+unset($table);
+// Destiny selection.
+$table = new stdClass();
$table->id = 'destiny_table';
-$table->class = 'databox filters';
+$table->class = 'databox filters filter-table-adv';
+$table->width = '100%';
+$table->size[0] = '50%';
+$table->size[1] = '50%';
$table->data = [];
-$table->size[0] = '20%';
-$table->size[1] = '30%';
-$table->size[2] = '20%';
-$table->size[3] = '30%';
-$table->data[0][0] = __('Group');
-$table->data[0][1] = html_print_select_groups(
- false,
- 'AW',
- true,
- 'destiny_id_group',
- $destiny_id_group,
- false,
- '',
- '',
- true
+$table->data[0][0] = html_print_label_input_block(
+ __('Group'),
+ html_print_select_groups(
+ false,
+ 'AW',
+ true,
+ 'destiny_id_group',
+ $destiny_id_group,
+ false,
+ '',
+ '',
+ true,
+ false,
+ false,
+ 'w100p',
+ false,
+ 'width:100%'
+ )
);
-$table->data[0][2] = __('Group recursion');
-$table->data[0][3] = html_print_checkbox(
- 'destiny_recursion',
- 1,
- $destiny_recursion,
- true,
- false
+
+$table->data[0][1] = html_print_label_input_block(
+ __('Group recursion'),
+ html_print_checkbox(
+ 'destiny_recursion',
+ 1,
+ $destiny_recursion,
+ true,
+ false
+ )
+);
+
+$table->data[1][0] = html_print_label_input_block(
+ __('Filter Agents'),
+ html_print_input_text('filter_agents', '', '', 20, 255, true)
);
$status_list = [];
@@ -278,32 +311,30 @@ $status_list[AGENT_STATUS_CRITICAL] = __('Critical');
$status_list[AGENT_STATUS_UNKNOWN] = __('Unknown');
$status_list[AGENT_STATUS_NOT_NORMAL] = __('Not normal');
$status_list[AGENT_STATUS_NOT_INIT] = __('Not init');
-$table->data[1][0] = __('Status');
-$table->data[1][1] = html_print_select(
- $status_list,
- 'status_agents_destiny',
- 'selected',
- '',
- __('All'),
- AGENT_STATUS_ALL,
- true
+$table->data[1][1] = html_print_label_input_block(
+ __('Status'),
+ html_print_select(
+ $status_list,
+ 'status_agents_destiny',
+ 'selected',
+ '',
+ __('All'),
+ AGENT_STATUS_ALL,
+ true
+ )
);
-$table->data['form_agents_filter'][0] = __('Filter Agents');
-$table->data['form_agents_filter'][1] = html_print_input_text('filter_agents', '', '', 20, 255, true);
-
-$table->data[2][0] = __('Agent');
-$table->data[2][0] .= '
';
-$table->data[2][0] .= html_print_image('images/spinner.png', true);
-$table->data[2][0] .= '';
-
$agents = [];
if ($source_id_agent) {
$agents = ( $destiny_id_group ? agents_get_group_agents($destiny_id_group, false, 'none') : agents_get_group_agents(array_keys(users_get_groups($config['id_user'], 'AW', false))) );
unset($agents[$source_id_agent]);
}
-$table->data[2][1] = html_print_select($agents, 'destiny_id_agent[]', 0, false, '', '', true, true);
+$table->colspan[2][0] = 2;
+$table->data[2][0] = html_print_label_input_block(
+ __('Agent').'
'.html_print_image('images/spinner.png', true).'',
+ html_print_select($agents, 'destiny_id_agent[]', 0, false, '', '', true, true)
+);
echo '