diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 56e9e65aac..2d0004f70d 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -77,7 +77,7 @@ $tab = 'view'; // Setup tab. $viewtab['text'] = ''.html_print_image( - 'images/eye_show.png', + 'images/see-details@svg.svg', true, [ 'title' => __('View'), diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index e3042f61dc..029aa24b44 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -158,21 +158,25 @@ $onheader = []; if ((bool) check_acl($config['id_user'], 0, 'AW') === true) { // Prepare the tab system to the future. $tab = 'setup'; - - // Setup tab. - $setuptab['text'] = ''.html_print_image( - 'images/setup.png', - true, - [ - 'title' => __('Setup'), - 'class' => 'invert_filter', - ] - ).''; - + // Options. $setuptab['godmode'] = true; - $setuptab['active'] = false; - + // Setup tab. + $setuptab['text'] = html_print_anchor( + [ + 'href' => ui_get_full_url('index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'), + 'content' => html_print_image( + 'images/configuration@svg.svg', + true, + [ + 'title' => __('Setup'), + 'class' => 'invert_filter main_menu_icon', + ] + ), + ], + true + ); + // Header button. $onheader = ['setup' => $setuptab]; } @@ -701,60 +705,67 @@ ui_pagination( ); // Show data. -$table = new stdClass(); -$table->cellpadding = 0; -$table->cellspacing = 0; -$table->width = '100%'; -$table->class = 'info_table'; +$tableAgents = new stdClass(); +$tableAgents->cellpadding = 0; +$tableAgents->cellspacing = 0; +$tableAgents->id = 'agent_list'; +$tableAgents->styleTable = 'margin: 0 10px'; +$tableAgents->class = 'info_table tactical_table'; -$table->head = []; -$table->head[0] = __('Agent').ui_get_sorting_arrows($url_up_agente, $url_down_agente, $selectNameUp, $selectNameDown); -$table->size[0] = '12%'; +$tableAgents->head = []; +$tableAgents->head[0] = ''.__('Agent').''; +$tableAgents->head[0] .= ui_get_sorting_arrows($url_up_agente, $url_down_agente, $selectNameUp, $selectNameDown); +$tableAgents->size[0] = '12%'; -$table->head[1] = __('Description').ui_get_sorting_arrows($url_up_description, $url_down_description, $selectDescriptionUp, $selectDescriptionDown); -$table->size[1] = '16%'; +$tableAgents->head[1] = ''.__('Description').''; +$tableAgents->head[0] .= ui_get_sorting_arrows($url_up_description, $url_down_description, $selectDescriptionUp, $selectDescriptionDown); +$tableAgents->size[1] = '16%'; -$table->head[10] = __('Remote').ui_get_sorting_arrows($url_up_remote, $url_down_remote, $selectRemoteUp, $selectRemoteDown); -$table->size[10] = '9%'; +$tableAgents->head[10] = ''.__('Remote').''; +$tableAgents->head[10] .= ui_get_sorting_arrows($url_up_remote, $url_down_remote, $selectRemoteUp, $selectRemoteDown); +$tableAgents->size[10] = '9%'; -$table->head[2] = __('OS').ui_get_sorting_arrows($url_up_os, $url_down_os, $selectOsUp, $selectOsDown); -$table->size[2] = '8%'; +$tableAgents->head[2] = ''.__('OS').''; +$tableAgents->head[2] .= ui_get_sorting_arrows($url_up_os, $url_down_os, $selectOsUp, $selectOsDown); +$tableAgents->size[2] = '8%'; -$table->head[3] = __('Interval').ui_get_sorting_arrows($url_up_interval, $url_down_interval, $selectIntervalUp, $selectIntervalDown); -$table->size[3] = '10%'; +$tableAgents->head[3] = ''.__('Interval').''; +$tableAgents->head[3] .= ui_get_sorting_arrows($url_up_interval, $url_down_interval, $selectIntervalUp, $selectIntervalDown); +$tableAgents->size[3] = '10%'; -$table->head[4] = __('Group').ui_get_sorting_arrows($url_up_group, $url_down_group, $selectGroupUp, $selectGroupDown); -$table->size[4] = '8%'; +$tableAgents->head[4] = ''.__('Group').''; +$tableAgents->head[4] .= ui_get_sorting_arrows($url_up_group, $url_down_group, $selectGroupUp, $selectGroupDown); +$tableAgents->size[4] = '8%'; -$table->head[5] = __('Type'); -$table->size[5] = '8%'; +$tableAgents->head[5] = ''.__('Type').''; +$tableAgents->size[5] = '8%'; -$table->head[6] = __('Modules'); -$table->size[6] = '10%'; +$tableAgents->head[6] = ''.__('Modules').''; +$tableAgents->size[6] = '10%'; -$table->head[7] = __('Status'); -$table->size[7] = '4%'; +$tableAgents->head[7] = ''.__('Status').''; +$tableAgents->size[7] = '4%'; -$table->head[8] = __('Alerts'); -$table->size[8] = '4%'; +$tableAgents->head[8] = ''.__('Alerts').''; +$tableAgents->size[8] = '4%'; -$table->head[9] = __('Last contact').ui_get_sorting_arrows($url_up_last, $url_down_last, $selectLastContactUp, $selectLastContactDown); -$table->size[9] = '15%'; +$tableAgents->head[9] = ''.__('Last contact').''; +$tableAgents->head[9] .= ui_get_sorting_arrows($url_up_last, $url_down_last, $selectLastContactUp, $selectLastContactDown); +$tableAgents->size[9] = '15%'; -$table->align = []; +$tableAgents->align = []; -$table->align[2] = 'left'; -$table->align[3] = 'left'; -$table->align[4] = 'left'; -$table->align[5] = 'left'; -$table->align[6] = 'left'; -$table->align[7] = 'left'; -$table->align[8] = 'left'; -$table->align[9] = 'left'; +$tableAgents->align[2] = 'left'; +$tableAgents->align[3] = 'left'; +$tableAgents->align[4] = 'left'; +$tableAgents->align[5] = 'left'; +$tableAgents->align[6] = 'left'; +$tableAgents->align[7] = 'left'; +$tableAgents->align[8] = 'left'; +$tableAgents->align[9] = 'left'; -$table->style = []; - -$table->data = []; +$tableAgents->style = []; +$tableAgents->data = []; $rowPair = true; $iterator = 0; @@ -762,9 +773,9 @@ foreach ($agents as $agent) { $cluster = db_get_row_sql('select id from tcluster where id_agent = '.$agent['id_agente']); if ($rowPair) { - $table->rowclass[$iterator] = 'rowPair'; + $tableAgents->rowclass[$iterator] = 'rowPair'; } else { - $table->rowclass[$iterator] = 'rowOdd'; + $tableAgents->rowclass[$iterator] = 'rowOdd'; } $rowPair = !$rowPair; @@ -791,7 +802,13 @@ foreach ($agents as $agent) { $data[0] = '