'', 'label' => __('Monitoring'), ], [ 'link' => '', 'label' => __('Views'), ], ] ); } $agent_filter = ['id_agente' => $agent_id]; // Autosearch if search parameters are different from those by default. if (empty($selected_agents) === false || empty($selected_interfaces) === false || $sort_field !== '' || $sort !== 'none' || $sec === 'estado' ) { $autosearch = true; } print_filters($sec); $result = false; if ($autosearch === true) { if ($sec === 'estado') { $result = agents_get_network_interfaces(false, $agent_filter); } else { $result = agents_get_network_interfaces($selected_agents); } if ($result === false || empty($result) === true) { $result = []; } else { $pagination = ui_pagination( count($selected_interfaces), false, $offset, 0, true, 'offset', false ); html_print_action_buttons( '', [ 'right_content' => $pagination ] ); } } print_table( $result, $selected_agents, $selected_interfaces, $sort_field, $sort, $offset, $sec ); ?>