'', '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) { $result = []; } else { ui_pagination( count($selected_interfaces), false, $offset, 0, false, 'offset', true ); } } print_table( $result, $selected_agents, $selected_interfaces, $sort_field, $sort, $offset, $sec ); ?>