Fixed combo in editor
This commit is contained in:
parent
60757b0ad6
commit
bc557573ec
|
@ -69,6 +69,7 @@ function networkmap_process_networkmap($id = 0) {
|
|||
$layout = "spring2";
|
||||
break;
|
||||
}
|
||||
|
||||
$simple = 0;
|
||||
$font_size = 12;
|
||||
$nooverlap = false;
|
||||
|
@ -154,6 +155,7 @@ function networkmap_process_networkmap($id = 0) {
|
|||
break;
|
||||
default:
|
||||
$filename_plain = sys_get_temp_dir() . "/plain.txt";
|
||||
|
||||
$cmd = "$filter -Tplain -o " . $filename_plain . " " .
|
||||
$filename_dot;
|
||||
break;
|
||||
|
|
|
@ -213,6 +213,8 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
|
|||
$values = array();
|
||||
$values['name'] = $name;
|
||||
$values['id_group'] = $id_group;
|
||||
|
||||
/*
|
||||
if ($source == 'group') {
|
||||
$values['source'] = 0;
|
||||
$values['source_data'] = $id_group;
|
||||
|
@ -225,6 +227,32 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
|
|||
$values['source'] = 2;
|
||||
$values['source_data'] = $ip_mask;
|
||||
}
|
||||
*/
|
||||
|
||||
switch ($method) {
|
||||
case 'twopi':
|
||||
$values['generation_method'] = 2;
|
||||
break;
|
||||
case 'dot':
|
||||
$values['generation_method'] = 1;
|
||||
break;
|
||||
case 'circo':
|
||||
$values['generation_method'] = 0;
|
||||
break;
|
||||
case 'neato':
|
||||
$values['generation_method'] = 3;
|
||||
break;
|
||||
case 'fdp':
|
||||
$values['generation_method'] = 4;
|
||||
break;
|
||||
case 'radial_dinamic':
|
||||
$values['generation_method'] = 6;
|
||||
break;
|
||||
default:
|
||||
$values['generation_method'] = 2;
|
||||
break;
|
||||
}
|
||||
|
||||
$description = get_parameter('description', '');
|
||||
$values['description'] = $description;
|
||||
|
||||
|
|
|
@ -756,6 +756,7 @@ else {
|
|||
}
|
||||
|
||||
$nodes_and_relations = networkmap_process_networkmap($id);
|
||||
|
||||
show_networkmap($id, $user_readonly, $nodes_and_relations, $dash_mode, $map_dash_details);
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue