mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
New networkmaps in progress... (Fixed map id in node objects and the ntwmap popup path)
This commit is contained in:
parent
7a513db06b
commit
040bfc5532
@ -423,8 +423,8 @@ function networkmap_db_node_to_js_node($node, &$count, &$count_item_holding_area
|
|||||||
}
|
}
|
||||||
$item['color'] = $color;
|
$item['color'] = $color;
|
||||||
$item['map_id'] = 0;
|
$item['map_id'] = 0;
|
||||||
if (isset($node['map_id'])) {
|
if (isset($node['id_map'])) {
|
||||||
$item['map_id'] = $node['map_id'];
|
$item['map_id'] = $node['id_map'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$count++;
|
$count++;
|
||||||
@ -1192,7 +1192,7 @@ function show_node_info($id_node, $refresh_state, $user_readonly) {
|
|||||||
};";
|
};";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "var color_status_node = '" . get_status_color_networkmap($row['id_agent']) . "';";
|
echo "var color_status_node = '" . get_status_color_networkmap($row['source_data']) . "';";
|
||||||
echo "</script>";
|
echo "</script>";
|
||||||
|
|
||||||
$mode_show = get_parameter('mode_show', 'all');
|
$mode_show = get_parameter('mode_show', 'all');
|
||||||
@ -1201,7 +1201,7 @@ function show_node_info($id_node, $refresh_state, $user_readonly) {
|
|||||||
</script>";
|
</script>";
|
||||||
|
|
||||||
echo '<div style="text-align: center;">';
|
echo '<div style="text-align: center;">';
|
||||||
echo '<b><a target="_blank" style="text-decoration: none;" href="' . $url_agent . '">' . agents_get_name($row['id_agent']) . '</a></b><br />';
|
echo '<b><a target="_blank" style="text-decoration: none;" href="' . $url_agent . '">' . agents_get_name($row['source_data']) . '</a></b><br />';
|
||||||
$modes_show = array('status_module' => 'Only status', 'all' => 'All');
|
$modes_show = array('status_module' => 'Only status', 'all' => 'All');
|
||||||
echo __('Show modules:');
|
echo __('Show modules:');
|
||||||
html_print_select($modes_show, 'modes_show', $mode_show, 'refresh_window();');
|
html_print_select($modes_show, 'modes_show', $mode_show, 'refresh_window();');
|
||||||
@ -1234,7 +1234,7 @@ function show_node_info($id_node, $refresh_state, $user_readonly) {
|
|||||||
//Set the first size for the canvas
|
//Set the first size for the canvas
|
||||||
//$("#node_info").attr("height", $(window).height());
|
//$("#node_info").attr("height", $(window).height());
|
||||||
//$("#node_info").attr("width", $(window).width());
|
//$("#node_info").attr("width", $(window).width());
|
||||||
show_networkmap_node(' . $row['id_agent'] . ', ' . $refresh_state . ');
|
show_networkmap_node(' . $row['source_data'] . ', ' . $refresh_state . ');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
@ -765,8 +765,11 @@ function show_details_agent(d) {
|
|||||||
//Fictional node without link
|
//Fictional node without link
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
url = url_popup;
|
url = "index.php?" +
|
||||||
url = url + "?refresh_state=" + refresh_period;
|
"sec=network&" +
|
||||||
|
"sec2=operation/agentes/pandora_networkmap&" +
|
||||||
|
"tab=popup&";
|
||||||
|
url = url + "refresh_state=" + refresh_period;
|
||||||
|
|
||||||
url = url + "&id=" + d.id_db;
|
url = url + "&id=" + d.id_db;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user