From 3be507ca7ec8146d9d245ff15aa939d96e92df3d Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 10 Mar 2023 12:40:21 +0100 Subject: [PATCH] fixed styles --- pandora_console/general/header.php | 5 +- .../agentes/planned_downtime.editor.php | 2 +- .../godmode/alerts/alert_list.list.php | 2 +- .../godmode/events/event_filter.php | 2 +- .../godmode/gis_maps/configure_gis_map.php | 10 ++-- .../manage_network_components_form_wizard.php | 2 +- .../modules/manage_network_templates.php | 4 +- pandora_console/godmode/netflow/nf_edit.php | 2 +- .../godmode/netflow/nf_item_list.php | 4 +- .../reporting_builder.item_editor.php | 12 ++--- pandora_console/godmode/setup/gis.php | 2 +- pandora_console/godmode/setup/links.php | 2 +- pandora_console/godmode/setup/news.php | 2 +- pandora_console/godmode/setup/snmp_wizard.php | 2 +- .../godmode/snmpconsole/snmp_alert.php | 4 +- .../godmode/users/configure_user.php | 2 +- .../include/class/CalendarManager.class.php | 4 +- .../include/class/NetworkMap.class.php | 2 +- .../include/class/SatelliteAgent.class.php | 2 +- .../class/SatelliteCollection.class.php | 2 +- .../include/functions_container.php | 4 +- pandora_console/include/functions_gis.php | 2 +- pandora_console/include/functions_html.php | 6 +++ pandora_console/include/functions_modules.php | 6 +-- pandora_console/include/functions_ui.php | 33 +++++++++--- .../help/en/help_configure_gis_map.php | 2 +- .../include/help/en/help_eventview.php | 2 +- .../include/help/en/help_gis_map_builder.php | 2 +- .../include/help/en/help_setup_gis_index.php | 2 +- .../include/help/es/help_eventview.php | 2 +- .../include/help/es/help_gis_map_builder.php | 2 +- .../help/ja/help_configure_gis_map.php | 2 +- .../include/help/ja/help_eventview.php | 2 +- .../include/help/ja/help_gis_map_builder.php | 2 +- .../include/help/ja/help_setup_gis_index.php | 2 +- .../include/javascript/pandora_events.js | 2 +- .../include/javascript/pandora_modules.js | 2 +- .../javascript/tree/TreeControllerMeta.js | 4 +- pandora_console/include/styles/menu.css | 5 ++ .../include/styles/order_interpreter.css | 1 + pandora_console/include/styles/pandora.css | 19 +++++-- .../include/styles/pandora_black.css | 14 ++--- .../include/styles/visual_maps.css | 8 +-- .../operation/agentes/estado_agente.php | 52 +++++++++---------- .../operation/gis_maps/gis_map.php | 2 +- .../dashboard_detail_integriaims_incident.php | 2 +- .../incidents/list_integriaims_incidents.php | 4 +- pandora_console/operation/search_agents.php | 24 +++++++-- pandora_console/operation/search_modules.php | 24 +++++++-- pandora_console/operation/search_results.php | 10 +++- .../views/calendar/special_days.php | 4 +- 51 files changed, 192 insertions(+), 125 deletions(-) diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 6b6f7057b9..40f6c3a382 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -117,6 +117,7 @@ echo sprintf('
', $menuTypeClass); } } + $search_bar .= '
'; $search_bar .= '', $menuTypeClass); $search_bar .= "value='".$config['search_keywords']."'"; } - $search_bar .= 'type="search" onfocus="javascript: if (fieldKeyWordEmpty) $(\'#keywords\').val(\'\');" - onkeyup="showinterpreter()" class="search_input"/>'; + $search_bar .= 'type="search" onfocus="javascript: if (fieldKeyWordEmpty) $(\'#keywords\').val(\'\');" onkeyup="showinterpreter()" class="search_input"/>'; // $search_bar .= 'onClick="javascript: document.quicksearch.submit()"'; $search_bar .= ""; $search_bar .= ''; - $header_searchbar = ''; } diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index 32fdcac6be..f3bea0aa78 100644 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -1452,7 +1452,7 @@ $table->data['module'][1] = " ".''.html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'border' => '0', diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index f844d2c18d..45003b2bc0 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -766,7 +766,7 @@ foreach ($simple_alerts as $alert) { $data[3] .= ''; $data[3] .= html_print_input_image( 'update_action', - 'images/config.png', + 'images/edit.svg', 1, 'padding:0px;', true, diff --git a/pandora_console/godmode/events/event_filter.php b/pandora_console/godmode/events/event_filter.php index b9c611c99a..9a2c9df9f6 100644 --- a/pandora_console/godmode/events/event_filter.php +++ b/pandora_console/godmode/events/event_filter.php @@ -186,7 +186,7 @@ foreach ($filters as $filter) { ) { $table->cellclass[][6] = 'table_action_buttons'; $data[6] = "".html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'title' => __('Delete'), diff --git a/pandora_console/godmode/gis_maps/configure_gis_map.php b/pandora_console/godmode/gis_maps/configure_gis_map.php index 2df8d06c6e..92e9e043b3 100644 --- a/pandora_console/godmode/gis_maps/configure_gis_map.php +++ b/pandora_console/godmode/gis_maps/configure_gis_map.php @@ -698,7 +698,7 @@ echo ''; '', @@ -1005,7 +1005,7 @@ function getAgentRow (layerId, agentId, agentAlias) { var $deleteCol = $(""); var $agentAlias = $("" + agentAlias + ""); - var $removeBtn = $(' 'invert_filter']); ?> '); + var $removeBtn = $(' 'invert_filter']); ?> '); $removeBtn.click(function (event) { var $layerRow = $("tr#layer_row_" + layerId); @@ -1061,7 +1061,7 @@ function getGroupRow (layerId, groupId, groupName, agentId, agentAlias) { + "" + agentAlias + "" + ")" + ""); - var $removeBtn = $(' 'invert_filter']); ?>'); + var $removeBtn = $(' 'invert_filter']); ?>'); $removeBtn.click(function (event) { var $layerRow = $("tr#layer_row_" + layerId); @@ -1139,8 +1139,8 @@ function getLayerRow (layerId, layerData) { var $layerName = $("" + layerData.name + ""); var $sortUpBtn = $(""); var $sortDownBtn = $(""); - var $editBtn = $(' 'invert_filter']); ?>'); - var $removeBtn = $(' 'invert_filter']); ?>'); + var $editBtn = $(' 'invert_filter']); ?>'); + var $removeBtn = $(' 'invert_filter']); ?>'); $sortUpBtn.click(moveLayerRowUpOnClick); $sortDownBtn.click(moveLayerRowDownOnClick); diff --git a/pandora_console/godmode/modules/manage_network_components_form_wizard.php b/pandora_console/godmode/modules/manage_network_components_form_wizard.php index 0c9f894ba1..190ff655ff 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_wizard.php +++ b/pandora_console/godmode/modules/manage_network_components_form_wizard.php @@ -104,7 +104,7 @@ function generateExtraFields($extra_fields, $protocol) 'class' => 'float-right', 'style' => $cntFields <= 1 ? 'opacity: 0.5;' : '', 'content' => html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'title' => __('Remove last macro oid'), diff --git a/pandora_console/godmode/modules/manage_network_templates.php b/pandora_console/godmode/modules/manage_network_templates.php index 4f1c949e9f..2940716ee5 100644 --- a/pandora_console/godmode/modules/manage_network_templates.php +++ b/pandora_console/godmode/modules/manage_network_templates.php @@ -266,7 +266,7 @@ foreach ($result as $row) { $table->cellclass[][3] = 'table_action_buttons'; $data[3] = html_print_input_image( 'delete_profile', - 'images/cross.png', + 'images/delete.svg', $row['id_np'], '', true, @@ -286,7 +286,7 @@ foreach ($result as $row) { 'class' => 'invert_filter', ] ); - $data[3] = ''.html_print_image('images/cross.png', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''; + $data[3] = ''.html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''; $data[3] .= ''.html_print_image('images/csv.png', true, ['title' => __('Export to CSV'), 'class' => 'invert_filter']).''; array_push($table->data, $data); diff --git a/pandora_console/godmode/netflow/nf_edit.php b/pandora_console/godmode/netflow/nf_edit.php index e384cc1541..b267b40254 100644 --- a/pandora_console/godmode/netflow/nf_edit.php +++ b/pandora_console/godmode/netflow/nf_edit.php @@ -191,7 +191,7 @@ foreach ($filters as $filter) { if (check_acl_restricted_all($config['id_user'], $filter['id_group'], 'AW')) { $table->cellclass[][3] = 'table_action_buttons'; $data[3] = "".html_print_image('images/cross.png', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''; + href='".$config['homeurl'].'index.php?sec=netf&sec2=godmode/netflow/nf_edit&delete=1&id='.$filter['id_sg']."&offset=0&pure=$pure'>".html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''; } array_push($table->data, $data); diff --git a/pandora_console/godmode/netflow/nf_item_list.php b/pandora_console/godmode/netflow/nf_item_list.php index d7a267aed6..2c36456a52 100644 --- a/pandora_console/godmode/netflow/nf_item_list.php +++ b/pandora_console/godmode/netflow/nf_item_list.php @@ -30,7 +30,7 @@ $buttons['report_items']['active'] = true; $buttons['report_items']['text'] = ''.html_print_image('images/god6.png', true, ['title' => __('Report items')]).''; $buttons['edit_report']['active'] = false; -$buttons['edit_report']['text'] = ''.html_print_image('images/config.png', true, ['title' => __('Edit report')]).''; +$buttons['edit_report']['text'] = ''.html_print_image('images/edit.svg', true, ['title' => __('Edit report')]).''; // Header if (! defined('METACONSOLE')) { @@ -260,7 +260,7 @@ foreach ($reports_item as $item) { } $data[5] = "".html_print_image('images/cross.png', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''.html_print_checkbox_extended('delete_multiple[]', $item['id_rc'], false, false, '', 'class="check_delete"', true); + href='".$config['homeurl'].'index.php?sec=netf&sec2=godmode/netflow/nf_item_list&delete=1&id_rc='.$item['id_rc'].'&id='.$id."&offset=0'>".html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''.html_print_checkbox_extended('delete_multiple[]', $item['id_rc'], false, false, '', 'class="check_delete"', true); array_push($table->data, $data); } diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 6002d19cfe..c28bfca6ee 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -4272,7 +4272,7 @@ function print_SLA_list($width, $action, $idItem=null) echo ''; echo ''; echo ''; - echo html_print_image('images/cross.png', true, ['class' => 'invert_filter']); + echo html_print_image('images/delete.svg', true, ['class' => 'invert_filter']); echo ''; echo ''; echo ''; @@ -4313,7 +4313,7 @@ function print_SLA_list($width, $action, $idItem=null) 'invert_filter'] ); @@ -4739,7 +4739,7 @@ function print_General_list($width, $action, $idItem=null, $type='general') '.printSmallFont($nameAgentFailover).$server_name_element.' '.printSmallFont($nameModuleFailover).' - '.html_print_image('images/cross.png', true, ['class' => 'invert_filter']).' + '.html_print_image('images/delete.svg', true, ['class' => 'invert_filter']).' '; } else { @@ -4747,7 +4747,7 @@ function print_General_list($width, $action, $idItem=null, $type='general') '.printSmallFont($nameAgent).$server_name_element.' '.printSmallFont($nameModule).' - '.html_print_image('images/cross.png', true, ['class' => 'invert_filter']).' + '.html_print_image('images/delete.svg', true, ['class' => 'invert_filter']).' '; } @@ -4757,7 +4757,7 @@ function print_General_list($width, $action, $idItem=null, $type='general') '.printSmallFont($nameModule).' '.printSmallFont($operation[$item['operation']]).' - '.html_print_image('images/cross.png', true, ['class' => 'invert_filter']).' + '.html_print_image('images/delete.svg', true, ['class' => 'invert_filter']).' '; } @@ -4795,7 +4795,7 @@ function print_General_list($width, $action, $idItem=null, $type='general') 'invert_filter'] ); diff --git a/pandora_console/godmode/setup/gis.php b/pandora_console/godmode/setup/gis.php index 671b9b71db..57edc19f5c 100755 --- a/pandora_console/godmode/setup/gis.php +++ b/pandora_console/godmode/setup/gis.php @@ -84,7 +84,7 @@ if ($mapsConnections !== false) { ''.$mapsConnection['conection_name'].'', ui_print_group_icon($mapsConnection['group_id'], true), ''.html_print_image('images/cross.png', true, ['class' => 'invert_filter']).'', + onClick="javascript: if (!confirm(\''.__('Do you wan delete this connection?').'\')) return false;">'.html_print_image('images/delete.svg', true, ['class' => 'invert_filter']).'', ]; $table->cellclass[][2] = 'table_action_buttons'; } diff --git a/pandora_console/godmode/setup/links.php b/pandora_console/godmode/setup/links.php index 7bd589fe27..b11bd3539f 100644 --- a/pandora_console/godmode/setup/links.php +++ b/pandora_console/godmode/setup/links.php @@ -208,7 +208,7 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) { echo "".$row['name'].''; echo ''.html_print_image( - 'images/cross.png', + 'images/delete.svg', true, ['class' => 'invert_filter'] ).''; diff --git a/pandora_console/godmode/setup/news.php b/pandora_console/godmode/setup/news.php index efbf574779..ee4b47d930 100644 --- a/pandora_console/godmode/setup/news.php +++ b/pandora_console/godmode/setup/news.php @@ -373,7 +373,7 @@ if ((isset($_GET['form_add'])) || (isset($_GET['form_edit']))) { echo "".__('No').''; } - echo ''.html_print_image('images/cross.png', true, ['border' => '0', 'class' => 'invert_filter']).''; + echo ''.html_print_image('images/delete.svg', true, ['border' => '0', 'class' => 'invert_filter']).''; } echo ''; diff --git a/pandora_console/godmode/setup/snmp_wizard.php b/pandora_console/godmode/setup/snmp_wizard.php index e788b408cd..62558dbc87 100644 --- a/pandora_console/godmode/setup/snmp_wizard.php +++ b/pandora_console/godmode/setup/snmp_wizard.php @@ -107,7 +107,7 @@ html_print_table($table); function cell_op($oid='') { - return ''.''.html_print_image('images/cog.png', true, ['class' => 'invert_filter', 'title' => __('Edit')]).''.''.html_print_image('images/cross.png', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''; + return ''.''.html_print_image('images/cog.png', true, ['class' => 'invert_filter', 'title' => __('Edit')]).''.''.html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter']).''; } diff --git a/pandora_console/godmode/snmpconsole/snmp_alert.php b/pandora_console/godmode/snmpconsole/snmp_alert.php index e42fe82df1..72e695eb71 100755 --- a/pandora_console/godmode/snmpconsole/snmp_alert.php +++ b/pandora_console/godmode/snmpconsole/snmp_alert.php @@ -1943,7 +1943,7 @@ if ($create_alert || $update_alert) { $data[1] .= ''; $data[1] .= ''.alerts_get_alert_action_name($action['alert_type']).''; $data[1] .= ' '.html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'border' => '0', @@ -2027,7 +2027,7 @@ if ($create_alert || $update_alert) { [ 'href' => 'javascript: ', 'content' => html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'title' => __('Delete action'), diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 468d789e0f..c0074ac4f1 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -1887,7 +1887,7 @@ echo '
'; // This is an image generated for JS. $delete_image = html_print_input_image( 'del', - 'images/cross.png', + 'images/delete.svg', 1, '', true, diff --git a/pandora_console/include/class/CalendarManager.class.php b/pandora_console/include/class/CalendarManager.class.php index 78ab62e92c..d2411e8263 100644 --- a/pandora_console/include/class/CalendarManager.class.php +++ b/pandora_console/include/class/CalendarManager.class.php @@ -697,7 +697,7 @@ class CalendarManager ); $tmp->options .= '">'; $tmp->options .= html_print_image( - 'images/config.png', + 'images/edit.svg', true, [ 'title' => __('Edit'), @@ -731,7 +731,7 @@ class CalendarManager ); $tmp->options .= '">'; $tmp->options .= html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'title' => __('Delete'), diff --git a/pandora_console/include/class/NetworkMap.class.php b/pandora_console/include/class/NetworkMap.class.php index 701eb4ecfb..2f073fed3a 100644 --- a/pandora_console/include/class/NetworkMap.class.php +++ b/pandora_console/include/class/NetworkMap.class.php @@ -3246,7 +3246,7 @@ class NetworkMap $table->data['template_row']['edit'] = ''; $table->data['template_row']['edit'] .= ''; - // '.html_print_image('images/config.png', true, ['class' => 'invert_filter']).''; + // '.html_print_image('images/edit.svg', true, ['class' => 'invert_filter']).''; $table->data['template_row']['edit'] .= ''.html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon invert_filter', 'style' => 'padding: 10px']).''; $table->colspan['no_relations']['0'] = 5; diff --git a/pandora_console/include/class/SatelliteAgent.class.php b/pandora_console/include/class/SatelliteAgent.class.php index aa86f25e81..18a4806bb5 100644 --- a/pandora_console/include/class/SatelliteAgent.class.php +++ b/pandora_console/include/class/SatelliteAgent.class.php @@ -401,7 +401,7 @@ class SatelliteAgent extends HTML if ($disable === false) { $tmp->actions .= html_print_image( - ($delete === true) ? 'images/add.png' : 'images/cross.png', + ($delete === true) ? 'images/add.png' : 'images/delete.svg', true, [ 'border' => '0', diff --git a/pandora_console/include/class/SatelliteCollection.class.php b/pandora_console/include/class/SatelliteCollection.class.php index d94756603a..a8af32d3b6 100644 --- a/pandora_console/include/class/SatelliteCollection.class.php +++ b/pandora_console/include/class/SatelliteCollection.class.php @@ -236,7 +236,7 @@ class SatelliteCollection extends HTML $tmp->actions = ''; $tmp->actions .= html_print_image( - ($delete === 0) ? 'images/add.png' : 'images/cross.png', + ($delete === 0) ? 'images/add.png' : 'images/delete.svg', true, [ 'border' => '0', diff --git a/pandora_console/include/functions_container.php b/pandora_console/include/functions_container.php index e9d034f431..9137a7fa3a 100644 --- a/pandora_console/include/functions_container.php +++ b/pandora_console/include/functions_container.php @@ -180,7 +180,7 @@ function folder_table($graphs) if (($report_w || $report_m) && users_can_manage_group_all($access)) { $data[4] = ''.html_print_image( - 'images/config.png', + 'images/edit.svg', true, ['class' => 'invert_filter'] ).''; @@ -188,7 +188,7 @@ function folder_table($graphs) $data[4] .= ' '; $data[4] .= ''.html_print_image('images/cross.png', true, ['alt' => __('Delete'), 'title' => __('Delete'), 'class' => 'invert_filter']).''.html_print_checkbox_extended('delete_multiple[]', $graph['id_graph'], false, false, '', 'class="check_delete mrgn_lft_2px"', true); + return false;">'.html_print_image('images/delete.svg', true, ['alt' => __('Delete'), 'title' => __('Delete'), 'class' => 'invert_filter']).''.html_print_checkbox_extended('delete_multiple[]', $graph['id_graph'], false, false, '', 'class="check_delete mrgn_lft_2px"', true); } array_push($table->data, $data); diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index 4dedff553a..48d42d43c5 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -1585,7 +1585,7 @@ function gis_add_conection_maps_in_form($map_connection_list) '.html_print_input_text('map_connection_name_'.$mapConnection['id_conection'], $mapConnectionRowDB['conection_name'], '', 20, 40, true, true).' '.$radioButton.' - '.html_print_image('images/cross.png', true, ['alt' => '', 'class' => 'invert_filter']).' + '.html_print_image('images/delete.svg', true, ['alt' => '', 'class' => 'invert_filter']).'