New maps in progress... (forms finished)
This commit is contained in:
parent
f4691f523f
commit
c167e5f167
|
@ -126,7 +126,7 @@ else {
|
||||||
$table->style[0] = 'font-weight: bold; width: 150px;';
|
$table->style[0] = 'font-weight: bold; width: 150px;';
|
||||||
$table->data = array();
|
$table->data = array();
|
||||||
|
|
||||||
$subtype = array(
|
$subtypes = array(
|
||||||
MAP_SUBTYPE_TOPOLOGY => 'Topology',
|
MAP_SUBTYPE_TOPOLOGY => 'Topology',
|
||||||
MAP_SUBTYPE_POLICIES => 'Policies',
|
MAP_SUBTYPE_POLICIES => 'Policies',
|
||||||
MAP_SUBTYPE_GROUPS => 'Groups',
|
MAP_SUBTYPE_GROUPS => 'Groups',
|
||||||
|
@ -134,7 +134,7 @@ else {
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data[0][0] = __('Subtype');
|
$table->data[0][0] = __('Subtype');
|
||||||
$table->data[0][1] = html_print_select($subtype, 'subtype', $subtype,
|
$table->data[0][1] = html_print_select($subtypes, 'subtype', $subtype,
|
||||||
'', '', 'Topology', true, false, true, '',
|
'', '', 'Topology', true, false, true, '',
|
||||||
$disabled_select);
|
$disabled_select);
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ else {
|
||||||
html_print_radio_button('source', MAP_SOURCE_GROUP, __('Group'), $source, true) .
|
html_print_radio_button('source', MAP_SOURCE_GROUP, __('Group'), $source, true) .
|
||||||
html_print_radio_button('source', MAP_SOURCE_IP_MASK, __('CIDR IP mask'), $source, true);
|
html_print_radio_button('source', MAP_SOURCE_IP_MASK, __('CIDR IP mask'), $source, true);
|
||||||
|
|
||||||
$generation_method = array(
|
$generation_methods = array(
|
||||||
MAP_GENERATION_RADIAL => 'Radial',
|
MAP_GENERATION_RADIAL => 'Radial',
|
||||||
MAP_GENERATION_PLANO => 'Flat',
|
MAP_GENERATION_PLANO => 'Flat',
|
||||||
MAP_GENERATION_CIRCULAR => 'Circular',
|
MAP_GENERATION_CIRCULAR => 'Circular',
|
||||||
|
@ -152,7 +152,7 @@ else {
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data[2][0] = __('Method generation networkmap');
|
$table->data[2][0] = __('Method generation networkmap');
|
||||||
$table->data[2][1] = html_print_select($generation_method, 'generation_method', $generation_method,
|
$table->data[2][1] = html_print_select($generation_methods, 'generation_method', $generation_method,
|
||||||
'', '', 'twopi', true, false, true, '',
|
'', '', 'twopi', true, false, true, '',
|
||||||
$disabled_select);
|
$disabled_select);
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ if ($save_networkmap) {
|
||||||
$values['source_period'] = $source_period;
|
$values['source_period'] = $source_period;
|
||||||
$values['source_data'] = $source_data;
|
$values['source_data'] = $source_data;
|
||||||
$values['generation_method'] = $generation_method;
|
$values['generation_method'] = $generation_method;
|
||||||
|
$values['source'] = $source;
|
||||||
$filter = array();
|
$filter = array();
|
||||||
$filter['show_groups_filter'] = 60;
|
$filter['show_groups_filter'] = 60;
|
||||||
$filter['show_module_plugins'] = $show_module_plugins;
|
$filter['show_module_plugins'] = $show_module_plugins;
|
||||||
|
@ -230,7 +230,7 @@ else if ($delete_networkmap || $duplicate_networkmap || $update_networkmap) {
|
||||||
$filter['id_tag'] = $id_tag;
|
$filter['id_tag'] = $id_tag;
|
||||||
$filter['text'] = $text;
|
$filter['text'] = $text;
|
||||||
$values['filter'] = json_encode($filter);
|
$values['filter'] = json_encode($filter);
|
||||||
|
|
||||||
$result_update = false;
|
$result_update = false;
|
||||||
if (!empty($name)) {
|
if (!empty($name)) {
|
||||||
$result_update = maps_update_map($id, $values);
|
$result_update = maps_update_map($id, $values);
|
||||||
|
|
Loading…
Reference in New Issue