diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index 3cc7512e0c..6e83586e14 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -420,8 +420,6 @@ if ($delete_networkmap || $add_networkmap || $save_networkmap) { // CONFIGURATION FORM -echo "
"; - // Layout selection $layout_array = array ( 'circular' => 'circular', @@ -450,6 +448,12 @@ $form_elems[] = __('Store group') . ' ' . $form_elems[] = __('Group') . ' ' . html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true); +// Free text +if ($activeTab != 'radial_dynamic') { + $form_elems[] = __('Free text for search (*):') . ' ' . + html_print_input_text('text_filter', $text_filter, '', 25, 100, true); +} + // Module group if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_dynamic') { $form_elems[] = __('Module group') . ' ' . @@ -458,12 +462,6 @@ if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_ FROM tmodule_group', 'module_group', $module_group, '', 'All', 0, true); } -// Interfaces -if ($activeTab == 'topology') { - $form_elems[] = __('Show interfaces') . ' ' . - html_print_checkbox ('show_snmp_modules', '1', $show_snmp_modules, true); -} - // Layout if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { $form_elems[] = __('Layout') . ' ' . @@ -480,6 +478,12 @@ if ($activeTab == 'groups') { html_print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); } +// Interfaces +if ($activeTab == 'topology') { + $form_elems[] = __('Show interfaces') . ' ' . + html_print_checkbox ('show_snmp_modules', '1', $show_snmp_modules, true); +} + // No overlap if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { $form_elems[] = __('No Overlap') . ' ' . @@ -534,12 +538,6 @@ if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { html_print_input_text ('font_size', $font_size, $alt = 'Font size (in pt)', 2, 4, true); } -// Free text -if ($activeTab != 'radial_dynamic') { - $form_elems[] = __('Free text for search (*):') . ' ' . - html_print_input_text('text_filter', $text_filter, '', 30, 100, true); -} - // Don't show subgroups if (($activeTab == 'groups') || ($activeTab == 'topology')) { $form_elems[] = __('Don\'t show subgroups:') . @@ -561,11 +559,11 @@ if ($nooverlap == 1) { } unset($table); -$table->width = '98%'; -$table->class = 'databox'; +$table->width = '100%'; +$table->class = 'databox filters'; $table->data = array(); -$max_col = 5; +$max_col = 4; $col = 0; $row = 0; @@ -574,7 +572,7 @@ foreach ($form_elems as $key => $element) { $col = 0; $row++; } - + $table->size[] = "25%"; $table->data[$row][$col] = $element; $col++; } diff --git a/pandora_console/operation/agentes/networkmap_list.php b/pandora_console/operation/agentes/networkmap_list.php index 585440ec7c..c74ef507dd 100644 --- a/pandora_console/operation/agentes/networkmap_list.php +++ b/pandora_console/operation/agentes/networkmap_list.php @@ -110,7 +110,7 @@ $type_search = get_parameter('type_filter', '0'); ?>
- +
@@ -144,7 +144,8 @@ $type_search = get_parameter('type_filter', '0'); // Display table $table = new StdClass(); -$table->width = "98%"; +$table->width = "100%"; +$table->class = "databox data"; $table->style = array(); $table->style[0] = ''; @@ -192,8 +193,7 @@ $user_info = users_get_user_by_id($config['id_user']); $network_maps = db_get_all_rows_filter('tnetwork_map', $where); if ($network_maps === false) { - echo "
" . __('Not networkmap defined.') . - "
"; + ui_print_info_message ( array('no_close'=>true, 'message'=> __('Not networkmap defined.') ) ); } else { $table->data = array(); @@ -237,9 +237,11 @@ else { if ($networkmaps_write || $networkmaps_manage) { $table_manage = new StdClass(); $table_manage->width = "100%"; + $table_manage->class = "databox filters"; $table_manage->style = array(); $table_manage->style[0] = 'font-weight: bold'; - $table_manage->style[3] = 'text-align: right'; + $table_manage->style[2] = 'font-weight: bold'; + $table_manage->style[4] = 'text-align: right'; $table_manage->size = array(); $table_manage->head = array(); $table_manage->data = array(); @@ -256,6 +258,7 @@ if ($networkmaps_write || $networkmaps_manage) { $row = array(); $row[] = __('Action'); $row[] = html_print_select($actions, 'action', 'create', '', '', 0, true, false, false); + $row[] = __('Type'); $row[] = html_print_select($networkmap_types, 'tab', 'topology', '', '', 0, true) . html_print_select($delete_options, 'delete_options', 'selected', '', '', 0, true, false, false); $row[] = html_print_submit_button (__('Execute'), 'crt', false, 'class="sub next"', true)