diff --git a/pandora_console/extensions/files_repo.php b/pandora_console/extensions/files_repo.php index 656c3377c7..26e21750bb 100644 --- a/pandora_console/extensions/files_repo.php +++ b/pandora_console/extensions/files_repo.php @@ -240,7 +240,28 @@ function pandora_files_repo_operation() } // Header. - ui_print_page_header(__('Files repository'), 'images/extensions.png', false, '', false, $onheader); + ui_print_standard_header( + __('Files repository'), + 'images/extensions.png', + false, + '', + false, + $onheader, + [ + [ + 'link' => '', + 'label' => __('Admin tools'), + ], + [ + 'link' => '', + 'label' => __('Extension manager'), + ], + [ + 'link' => '', + 'label' => __('Files repository'), + ], + ] + ); $full_extensions_dir = $config['homedir'].'/'.EXTENSIONS_DIR.'/'; include_once $full_extensions_dir.'files_repo/functions_files_repo.php'; diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 343c89e50e..27f81b1f43 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -866,7 +866,6 @@ if ($agents !== false) { // Operating System icon column. $osIconColumn = html_print_div( [ - 'class' => 'main_menu_icon invert_filter', 'content' => ui_print_os_icon($agent['id_os'], false, true), ], true @@ -885,7 +884,6 @@ if ($agents !== false) { // Group icon and name column. $agentGroupIconColumn = html_print_div( [ - 'class' => 'main_menu_icon invert_filter', 'content' => ui_print_group_icon($agent['id_grupo'], true), ], true diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 0231245274..b30f3d4c2c 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -445,79 +445,75 @@ $tableBasicThresholds->rowclass['caption_warning_threshold'] = 'field_half_width $tableBasicThresholds->rowclass['warning_threshold'] = 'field_half_width'; $tableBasicThresholds->data['caption_warning_threshold'][0] .= __('Warning threshold').' '; -if ((isset($stringTypeModule) === false || $stringTypeModule === false)) { - $tableBasicThresholds->data['caption_warning_threshold'][0] .= '('.__('Min / Max').')'; - $tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text( - 'min_warning', - $min_warning, - '', - 10, - 255, - true, - $disabledBecauseInPolicy || $edit === true, - false, - '', - $classdisabledBecauseInPolicy - ); - $tableBasicThresholds->data['warning_threshold'][1] .= html_print_input_text( - 'max_warning', - $max_warning, - '', - 10, - 255, - true, - $disabledBecauseInPolicy || $edit === true, - false, - '', - $classdisabledBecauseInPolicy - ).''; +$tableBasicThresholds->data['caption_warning_threshold'][0] .= '('.__('Min / Max').')'; +$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text( + 'min_warning', + $min_warning, + '', + 10, + 255, + true, + $disabledBecauseInPolicy || $edit === true, + false, + '', + $classdisabledBecauseInPolicy +); +$tableBasicThresholds->data['warning_threshold'][1] .= html_print_input_text( + 'max_warning', + $max_warning, + '', + 10, + 255, + true, + $disabledBecauseInPolicy || $edit === true, + false, + '', + $classdisabledBecauseInPolicy +).''; - $tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_switch_radio_button( - [ - html_print_radio_button_extended('warning_thresholds_checks', 'normal_warning', __('Normal'), ($percentage_warning && $warning_inverse) === false, false, '', '', true, false, '', 'radius-normal_warning'), - html_print_radio_button_extended('warning_thresholds_checks', 'warning_inverse', __('Inverse interval'), $warning_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-warning_inverse'), - html_print_radio_button_extended('warning_thresholds_checks', 'percentage_warning', __('Percentage'), $percentage_warning, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-percentage_warning'), - ], - [ 'class' => 'margin-top-10' ], - true - ); -} +$tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_switch_radio_button( + [ + html_print_radio_button_extended('warning_thresholds_checks', 'normal_warning', __('Normal'), ($percentage_warning && $warning_inverse) === false, false, '', '', true, false, '', 'radius-normal_warning'), + html_print_radio_button_extended('warning_thresholds_checks', 'warning_inverse', __('Inverse interval'), $warning_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-warning_inverse'), + html_print_radio_button_extended('warning_thresholds_checks', 'percentage_warning', __('Percentage'), $percentage_warning, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-percentage_warning'), + ], + [ 'class' => 'margin-top-10' ], + true +); -if (isset($stringTypeModule) === true && $stringTypeModule === true) { - $basicThresholdsIntervalWarning = []; - $basicThresholdsIntervalWarning[] = ''.__('Inverse interval').''; - $basicThresholdsIntervalWarning[] = html_print_checkbox_switch( - 'warning_inverse_string', - 1, - $warning_inverse, - true, - $disabledBecauseInPolicy - ); +$basicThresholdsIntervalWarning = []; +$basicThresholdsIntervalWarning[] = ''.__('Inverse interval').''; +$basicThresholdsIntervalWarning[] = html_print_checkbox_switch( + 'warning_inverse_string', + 1, + $warning_inverse, + true, + $disabledBecauseInPolicy +); - $tableBasicThresholds->rowclass['caption_switch_warning_inverse_string'] = 'field_half_width'; - $tableBasicThresholds->data['caption_switch_warning_inverse_string'][0] = html_print_div( - [ - 'class' => 'margin-top-10', - 'style' => 'display: flex; flex-direction: row-reverse; align-items: center;', - 'content' => implode('', $basicThresholdsIntervalWarning), - ], - true - ); +$tableBasicThresholds->rowclass['caption_switch_warning_inverse_string'] = 'field_half_width'; +$tableBasicThresholds->data['caption_switch_warning_inverse_string'][0] = html_print_div( + [ + 'class' => 'margin-top-10', + 'style' => 'display: flex; flex-direction: row-reverse; align-items: center;', + 'content' => implode('', $basicThresholdsIntervalWarning), + ], + true +); - $tableBasicThresholds->data['caption_warning_threshold'][0] .= '('.__('Str.').')'; - $tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text( - 'str_warning', - str_replace('"', '', $str_warning), - '', - 10, - 1024, - true, - $disabledBecauseInPolicy || $edit === false, - false, - '', - $classdisabledBecauseInPolicy - ).''; -} +$tableBasicThresholds->data['caption_warning_threshold'][0] .= '('.__('Str.').')'; +$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text( + 'str_warning', + str_replace('"', '', $str_warning), + '', + 10, + 1024, + true, + $disabledBecauseInPolicy || $edit === false, + false, + '', + $classdisabledBecauseInPolicy +).''; $tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_div( @@ -532,87 +528,84 @@ $tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_div( $tableBasicThresholds->rowclass['caption_critical_threshold'] = 'field_half_width pdd_t_10px'; $tableBasicThresholds->rowclass['critical_threshold'] = 'field_half_width'; $tableBasicThresholds->data['caption_critical_threshold'][0] .= __('Critical threshold').' '; -if ((isset($stringTypeModule) === false || $stringTypeModule === false)) { - $tableBasicThresholds->data['caption_critical_threshold'][0] .= '('.__('Min / Max').')'; - $tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text( - 'min_critical', - $min_critical, - '', - 10, - 255, - true, - $disabledBecauseInPolicy || $edit === false, - false, - '', - $classdisabledBecauseInPolicy - ); - $tableBasicThresholds->data['critical_threshold'][1] .= html_print_input_text( - 'max_critical', - $max_critical, - '', - 10, - 255, - true, - $disabledBecauseInPolicy || $edit === false, - false, - '', - $classdisabledBecauseInPolicy - ).''; +$tableBasicThresholds->data['caption_critical_threshold'][0] .= '('.__('Min / Max').')'; +$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text( + 'min_critical', + $min_critical, + '', + 10, + 255, + true, + $disabledBecauseInPolicy || $edit === false, + false, + '', + $classdisabledBecauseInPolicy +); +$tableBasicThresholds->data['critical_threshold'][1] .= html_print_input_text( + 'max_critical', + $max_critical, + '', + 10, + 255, + true, + $disabledBecauseInPolicy || $edit === false, + false, + '', + $classdisabledBecauseInPolicy +).''; - $tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_switch_radio_button( - [ - html_print_radio_button_extended('critical_thresholds_checks', 'normal_critical', __('Normal'), ($percentage_critical && $critical_inverse) === false, false, '', '', true, false, '', 'radius-normal_critical'), - html_print_radio_button_extended('critical_thresholds_checks', 'critical_inverse', __('Inverse interval'), $critical_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-critical_inverse'), - html_print_radio_button_extended('critical_thresholds_checks', 'percentage_critical', __('Percentage'), $percentage_critical, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-percentage_critical'), - ], - [ 'class' => 'margin-top-10' ], - true - ); -} +$tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_switch_radio_button( + [ + html_print_radio_button_extended('critical_thresholds_checks', 'normal_critical', __('Normal'), ($percentage_critical && $critical_inverse) === false, false, '', '', true, false, '', 'radius-normal_critical'), + html_print_radio_button_extended('critical_thresholds_checks', 'critical_inverse', __('Inverse interval'), $critical_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-critical_inverse'), + html_print_radio_button_extended('critical_thresholds_checks', 'percentage_critical', __('Percentage'), $percentage_critical, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-percentage_critical'), + ], + [ 'class' => 'margin-top-10' ], + true +); -if (isset($stringTypeModule) === true && $stringTypeModule === true) { - $basicThresholdsIntervalCritical = []; - $basicThresholdsIntervalCritical[] = ''.__('Inverse interval').''; - $basicThresholdsIntervalCritical[] = html_print_checkbox_switch( - 'critical_inverse_string', - 1, - $critical_inverse, - true, - $disabledBecauseInPolicy - ); - $tableBasicThresholds->rowclass['caption_switch_critical_inverse_string'] = 'field_half_width'; - $tableBasicThresholds->data['caption_switch_critical_inverse_string'][0] = html_print_div( - [ - 'class' => 'margin-top-10', - 'style' => 'display: flex; flex-direction: row-reverse; align-items: center;', - 'content' => implode('', $basicThresholdsIntervalCritical), - ], - true - ); +$basicThresholdsIntervalCritical = []; +$basicThresholdsIntervalCritical[] = ''.__('Inverse interval').''; +$basicThresholdsIntervalCritical[] = html_print_checkbox_switch( + 'critical_inverse_string', + 1, + $critical_inverse, + true, + $disabledBecauseInPolicy +); - $tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_div( - [ - 'id' => 'percentage_critical', - 'content' => $divPercentageContent, - ], - true - ); +$tableBasicThresholds->rowclass['caption_switch_critical_inverse_string'] = 'field_half_width'; +$tableBasicThresholds->data['caption_switch_critical_inverse_string'][0] = html_print_div( + [ + 'class' => 'margin-top-10', + 'style' => 'display: flex; flex-direction: row-reverse; align-items: center;', + 'content' => implode('', $basicThresholdsIntervalCritical), + ], + true +); - $tableBasicThresholds->data['caption_critical_threshold'][0] .= '('.__('Str.').')'; - $tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text( - 'str_critical', - str_replace('"', '', $str_critical), - '', - 10, - 1024, - true, - $disabledBecauseInPolicy, - false, - '', - $classdisabledBecauseInPolicy - ); -} +$tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_div( + [ + 'id' => 'percentage_critical', + 'content' => $divPercentageContent, + ], + true +); + +$tableBasicThresholds->data['caption_critical_threshold'][0] .= '('.__('Str.').')'; +$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text( + 'str_critical', + str_replace('"', '', $str_critical), + '', + 10, + 1024, + true, + $disabledBecauseInPolicy, + false, + '', + $classdisabledBecauseInPolicy +); $table_simple->rowstyle['thresholds_table'] = 'margin-top: 15px;height: 340px;width: 100%'; $table_simple->cellclass['thresholds_table'][0] = 'table_section half_section_left'; @@ -1623,6 +1616,11 @@ ui_require_jquery_file('json'); /* ; + var idModuleType = ''; + if (idModuleType != '') { + setModuleType(idModuleType); + } + $("#right").click (function () { jQuery.each($("select[name='id_tag_available[]'] option:selected"), function (key, value) { tag_name = $(value).html(); diff --git a/pandora_console/godmode/setup/os.list.php b/pandora_console/godmode/setup/os.list.php index 96223e8d09..7ec091e04b 100644 --- a/pandora_console/godmode/setup/os.list.php +++ b/pandora_console/godmode/setup/os.list.php @@ -69,7 +69,6 @@ if ($is_management_allowed === true) { $table->head[4] = ''; } -$table->align[1] = 'center'; if ($is_management_allowed === true) { $table->align[4] = 'center'; } @@ -100,7 +99,7 @@ $table->data = []; foreach ($osList as $os) { $data = []; $data[] = $os['id_os']; - $data[] = html_print_div(['class' => 'invert_filter main_menu_icon', 'content' => ui_print_os_icon($os['id_os'], false, true)], true); + $data[] = ui_print_os_icon($os['id_os'], false, true); if ($is_management_allowed === true) { if (is_metaconsole() === true) { $osNameUrl = 'index.php?sec=advanced&sec2=advanced/component_management&tab=os_manage&action=edit&tab2=builder&id_os='.$os['id_os']; diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 13fab04eab..c475a44207 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -6097,6 +6097,8 @@ function html_print_autocomplete_users_from_integria( $attrs['class'] = $class; } + ui_print_help_tip(__('Type at least two characters to search the user.'), false); + html_print_input_text_extended( $name, $default, @@ -6110,8 +6112,6 @@ function html_print_autocomplete_users_from_integria( ); html_print_input_hidden($name.'_hidden', $id_agent_module); - ui_print_help_tip(__('Type at least two characters to search the user.'), false); - $javascript_ajax_page = ui_get_full_url('ajax.php', false, false, false, false); ?> "; } diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index c25af60513..8eebebe339 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -959,15 +959,39 @@ function ui_print_type_agent_icon( if ((int) $id_os === SATELLITE_OS_ID) { // Satellite. $options['title'] = __('Satellite'); - $output = html_print_image('images/satellite@os.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true); + $output = html_print_image( + 'images/satellite@os.svg', + true, + ['class' => 'main_menu_icon invert_filter'], + false, + false, + false, + true + ); } else if ($remote_contact === $contact && $remote === 0 && empty($version) === true) { // Network. $options['title'] = __('Network'); - $output = html_print_image('images/network-server@os.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true); + $output = html_print_image( + 'images/network-server@os.svg', + true, + ['class' => 'main_menu_icon invert_filter'], + false, + false, + false, + true + ); } else { // Software. $options['title'] = __('Software'); - $output = html_print_image('images/data-server@svg.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true); + $output = html_print_image( + 'images/data-server@svg.svg', + true, + ['class' => 'main_menu_icon invert_filter'], + false, + false, + false, + true + ); } return $output; diff --git a/pandora_console/include/javascript/jquery.pandora.js b/pandora_console/include/javascript/jquery.pandora.js index 31e31c9183..5b39a98631 100644 --- a/pandora_console/include/javascript/jquery.pandora.js +++ b/pandora_console/include/javascript/jquery.pandora.js @@ -226,8 +226,8 @@ $(document).ready(function() { resizable: false, draggable: true, modal: true, - height: 450, - width: 620, + height: 410, + width: 390, overlay: { opacity: 0.5, background: "black" diff --git a/pandora_console/include/styles/login.css b/pandora_console/include/styles/login.css index fdba06937a..c08d4a0908 100644 --- a/pandora_console/include/styles/login.css +++ b/pandora_console/include/styles/login.css @@ -455,7 +455,7 @@ div.form_message_alert { width: 90%; clear: both; padding-top: 20px; - padding-left: 40px; + padding-left: 20px; } div.form_message_alert ul li { @@ -765,7 +765,7 @@ button.submitButton:hover { background-position: 0 !important; } -button.submitButton > span { +button.submitButton:not(.mini) > span { font-family: Arial, Helvetica, sans-serif; font-size: 15pt; } diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index 86b0172909..9c1fca7462 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -1297,8 +1297,9 @@ a.pandora_pagination:hover { filter: brightness(0) contrast(50%) !important; } -input[type="image"] { +input:not(div.login_pass > input):not(div.login_nick > input[type="image"]) { background-color: transparent !important; + color: inherit !important; } .databox_color { diff --git a/pandora_console/include/styles/tables.css b/pandora_console/include/styles/tables.css index 4b13a2cd60..2ea3df83f6 100644 --- a/pandora_console/include/styles/tables.css +++ b/pandora_console/include/styles/tables.css @@ -558,6 +558,16 @@ table.filter-table-adv td > div label { margin-bottom: 10px; } +div.filter-table-adv-manual > div.inline, +table.filter-table-adv td > div.inline { + display: block; +} + +div.filter-table-adv-manual > div.inline input, +table.filter-table-adv td > div.inline input { + margin-top: 10px; +} + table.filter-table-adv td > div.add-input-reverse { flex-direction: row-reverse; justify-content: flex-end; diff --git a/pandora_console/include/styles/tree.css b/pandora_console/include/styles/tree.css index 88f342dec3..4c552e5e6d 100644 --- a/pandora_console/include/styles/tree.css +++ b/pandora_console/include/styles/tree.css @@ -407,7 +407,3 @@ div#tree-controller-recipient { .tree-node .node-icon.node-status { border: 0; } - -.max-graph-tree-view { - width: calc(100% - 100px); -} diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 1841bd7f6e..b4e60f8ddf 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -1163,7 +1163,6 @@ foreach ($agents as $agent) { $data[2] = html_print_div( [ - 'class' => 'invert_filter main_menu_icon', 'content' => ui_print_os_icon($agent['id_os'], false, true), ], true diff --git a/pandora_console/operation/incidents/configure_integriaims_incident.php b/pandora_console/operation/incidents/configure_integriaims_incident.php index 997391a781..6813f2ad80 100644 --- a/pandora_console/operation/incidents/configure_integriaims_incident.php +++ b/pandora_console/operation/incidents/configure_integriaims_incident.php @@ -23,11 +23,30 @@ $update = (isset($_GET['incident_id']) === true); // Header tabs. $onheader = integriaims_tabs('create_tab', $_GET['incident_id']); if ($update) { - ui_print_page_header(__('Update Integria IMS Ticket'), '', false, '', false, $onheader); + $title_header = __('Update Integria IMS Ticket'); } else { - ui_print_page_header(__('Create Integria IMS Ticket'), '', false, '', false, $onheader); + $title_header = __('Create Integria IMS Ticket'); } +ui_print_standard_header( + $title_header, + '', + false, + '', + false, + $onheader, + [ + [ + 'link' => '', + 'label' => __('Issues'), + ], + [ + 'link' => '', + 'label' => $title_header, + ], + ] +); + // Check if Integria integration enabled. if ($config['integria_enabled'] == 0) { ui_print_error_message(__('In order to access ticket management system, integration with Integria IMS must be enabled and properly configured')); @@ -166,19 +185,14 @@ if ($update) { $table = new stdClass(); $table->width = '100%'; $table->id = 'add_alert_table'; -$table->class = 'databox filters integria_incidents_options'; +$table->class = 'databox filter-table-adv'; $table->head = []; - $table->data = []; $table->size = []; $table->size = []; -$table->style[0] = 'width: 33%; padding-right: 50px; padding-left: 100px;'; -$table->style[1] = 'width: 33%; padding-right: 50px; padding-left: 50px;'; -$table->style[2] = 'width: 33%; padding-right: 100px; padding-left: 50px;'; $table->colspan[0][0] = 2; $table->colspan[4][0] = 3; $table->colspan[6][0] = 3; - $help_macros = isset($_GET['from_event']) ? ui_print_help_icon('response_macros', true) : ''; if ($update) { @@ -210,177 +224,205 @@ if ($update) { $input_value_resolution = 0; } -$table->data[0][0] = '
'.__('Title').': '.$help_macros.'
'; -$table->data[0][0] .= ''.__('Type').':
'; -$table->data[1][0] .= ''.__('Status').':
'; -$table->data[2][0] .= ''.__('Group').':
'; -$table->data[1][1] .= ''.__('Creator').':
'; -$table->data[2][1] .= ''.__('Priority').':
'; -$table->data[1][2] .= ''.__('Owner').':
'; +$table->data[2][2] = html_print_label_input_block( + __('Owner'), + html_print_autocomplete_users_from_integria( + 'owner', + $input_value_owner, + true, + '30', + false, + false, + 'w100p' + ), + ['div_class' => 'inline'] +); -$table->data[2][2] .= ''.__('Resolution').':
'; +$table->data[5][0] = html_print_label_input_block( + __('File name'), + html_print_input_file('userfile', true) +); -$table->data[3][0] .= ''.__('Description').': '.$help_macros.'
'; -$table->data[4][0] .= ''.__('File name').':
'; -$table->data[5][0] .= html_print_input_file('userfile', true); -$table->data[6][0] = ''.__('Attachment description').':
'; -$table->data[6][0] .= html_print_textarea( - 'file_description', - 3, - 20, - '', - '', - true +$table->data[6][0] = html_print_label_input_block( + __('Attachment description'), + html_print_textarea( + 'file_description', + 3, + 20, + '', + '', + true + ) ); // Print forms and stuff. -echo ''; - -echo ''.__('Incidents by status').''; echo graph_incidents_status(); @@ -39,3 +57,4 @@ echo ' | '.__('Incidents by user').''; echo graphic_incident_user(); echo ' |