Added dinamic to new flow

This commit is contained in:
Arturo Gonzalez 2017-11-16 12:03:20 +01:00
parent 35a412fd7c
commit 06d47e03db
2 changed files with 26 additions and 2 deletions

View File

@ -18,7 +18,13 @@
global $config;
check_login ();
$id = get_parameter('id_networkmap', true);
if (_id_ != "_id_") {
$id = _id_;
}
else {
$id = get_parameter('id_networkmap', true);
}
$activeTab = get_parameter('activeTab', true);
if (enterprise_installed()) {
@ -31,6 +37,11 @@ if (enterprise_installed()) {
}
}
if (_activeTab_ != "_activeTab_") {
$activeTab = _activeTab_;
$tab = $activeTab;
}
// Networkmap id required
if (!isset($id)) {
db_pandora_audit("ACL Violation",
@ -107,6 +118,11 @@ ui_print_page_header(io_safe_output($networkmap['name']),
global $width;
global $height;
if (_id_ != "_id_") {
$width = array();
$height = array();
}
if (empty($width)) {
$width = 600;
}

View File

@ -290,8 +290,13 @@ if ($new_networkmap || $save_networkmap) {
$id = $result;
define("_id_", $id);
// Force the tab = 'view'
$tab = "view";
if ($values['generation_method'] == 6) {
$tab = "r_dinamic";
define("_activeTab_", 'radial_dynamic');
}
}
}
// The networkmap exists
@ -433,6 +438,9 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
}
switch ($tab) {
case 'r_dinamic':
require('networkmap.dinamic.php');
break;
case 'edit':
require('pandora_networkmap.editor.php');
break;