Added old code of radial dynamic networkmap.
This commit is contained in:
parent
b4b3cc720d
commit
6fea7dd3f1
|
@ -41,6 +41,13 @@ abstract class Map {
|
|||
|
||||
protected $is_buggy_firefox = false;
|
||||
|
||||
public function getId() {
|
||||
return $this->id;
|
||||
}
|
||||
public function getGroup() {
|
||||
return $this->id_group;
|
||||
}
|
||||
|
||||
public static function getName($id = null) {
|
||||
if (empty($id)) {
|
||||
return null;
|
||||
|
@ -248,5 +255,9 @@ abstract class Map {
|
|||
public function getType() {
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function getSubtype() {
|
||||
return $this->subtype;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -290,6 +290,10 @@ class Networkmap extends Map {
|
|||
$this->edges = $edges;
|
||||
}
|
||||
|
||||
public function getSourceGroup() {
|
||||
return $this->source_group;
|
||||
}
|
||||
|
||||
protected function temp_parseParameters_generateDot() {
|
||||
$return = array();
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ function include_javascript_d3 ($return = false) {
|
|||
if (!$is_include_javascript) {
|
||||
$is_include_javascript = true;
|
||||
|
||||
$output .= '<script type="text/javascript" src="' . $config['homeurl'] . 'include/javascript/d3.3.5.14.js.js" charset="utf-8"></script>';
|
||||
$output .= '<script type="text/javascript" src="' . $config['homeurl'] . 'include/javascript/d3.3.5.14.js" charset="utf-8"></script>';
|
||||
$output .= '<script type="text/javascript" src="' . $config['homeurl'] . 'include/graphs/pandora.d3.js" charset="utf-8"></script>';
|
||||
|
||||
}
|
||||
|
|
|
@ -62,6 +62,8 @@ if ($activeTab == "radial_dynamic") {
|
|||
|
||||
echo "<div style='width: auto; text-align: center;'>";
|
||||
|
||||
|
||||
|
||||
$filter = array();
|
||||
if (!empty($group))
|
||||
$filter['group'] = $group;
|
||||
|
@ -99,7 +101,10 @@ $zoom_default = file($config['homedir'] . '/images/zoom_default.svg');
|
|||
<?php
|
||||
|
||||
//html_debug_print($graph);
|
||||
echo '<script type="text/javascript" src="' . $config['homeurl'] . 'include/javascript/d3.v3.js" charset="utf-8"></script>';
|
||||
echo '<script '.
|
||||
' type="text/javascript" ' .
|
||||
' src="' . $config['homeurl'] . 'include/javascript/d3.3.5.14.js" ' .
|
||||
' charset="utf-8"></script>';
|
||||
echo '<div id="dinamic_networkmap" style="overflow: hidden;"></div>';
|
||||
?>
|
||||
<style type="text/css">
|
||||
|
|
|
@ -84,7 +84,22 @@ else {
|
|||
}
|
||||
|
||||
if (MAP_TYPE_NETWORKMAP === $networkmap->getType()) {
|
||||
$networkmap->show();
|
||||
if (MAP_SUBTYPE_RADIAL_DYNAMIC === $networkmap->getSubtype()) {
|
||||
global $id_networkmap;
|
||||
global $store_group;
|
||||
global $group;
|
||||
global $activeTab;
|
||||
|
||||
$id_networkmap = $networkmap->getId();
|
||||
$store_group = $networkmap->getGroup();
|
||||
$group = $networkmap->getSourceGroup();
|
||||
$activeTab = "radial_dynamic";
|
||||
|
||||
require_once('operation/agentes/networkmap.dinamic.php');
|
||||
}
|
||||
else {
|
||||
$networkmap->show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
ui_print_error_message(__('Not found networkmap.'));
|
||||
|
|
Loading…
Reference in New Issue