From f1f5c6ccdb7efd43e03c394c9664420ed5c3083a Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 23 Apr 2012 11:37:17 +0000 Subject: [PATCH] 2012-04-23 Juan Manuel Ramon * include/functions_networkmap.php operation/agentes/networkmap_list.php operation/menu.php: Added new view with a list of networkmaps. Merged from branches. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6089 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 + .../include/functions_networkmap.php | 44 +++++ .../operation/agentes/networkmap_list.php | 155 ++++++++++++++++++ pandora_console/operation/menu.php | 6 +- 4 files changed, 210 insertions(+), 3 deletions(-) create mode 100644 pandora_console/operation/agentes/networkmap_list.php diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 08fe44a051..a61149b4dc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2012-04-23 Juan Manuel Ramon + + * include/functions_networkmap.php + operation/agentes/networkmap_list.php + operation/menu.php: Added new view with a list of networkmaps. + + Merged from branches. + 2012-04-23 Miguel de Dios * include/functions_html.php, include/javascript/jquery.pandora.js, diff --git a/pandora_console/include/functions_networkmap.php b/pandora_console/include/functions_networkmap.php index 7cee3b0db3..872a8f0dc4 100644 --- a/pandora_console/include/functions_networkmap.php +++ b/pandora_console/include/functions_networkmap.php @@ -764,6 +764,50 @@ function networkmap_update_networkmap ($id_networkmap, $values) { array ('id_networkmap' => $id_networkmap))) !== false; } +/** + * Get different networkmaps types for creation. + * + * @return Array Networkmap diferent types. + */ +function networkmap_get_types () { + $networkmap_types = array(); + + $is_enterprise = enterprise_include_once('include/functions_policies.php'); + + $networkmap_types['topology'] = __('Create a new topology map'); + $networkmap_types['groups'] = __('Create a new group map'); + + if ($is_enterprise !== ENTERPRISE_NOT_HOOK) { + $enterprise_types = enterprise_hook('policies_get_networkmap_types'); + + $networkmap_types = array_merge($networkmap_types, $enterprise_types); + } + + return $networkmap_types; +} + +/** + * Get networkmaps types. + * + * @return Array Networkmap diferent types. + */ +function networkmap_get_filter_types () { + $networkmap_types = array(); + + $is_enterprise = enterprise_include_once('include/functions_policies.php'); + + $networkmap_types['topology'] = __('Topology'); + $networkmap_types['groups'] = __('Group'); + + if ($is_enterprise !== ENTERPRISE_NOT_HOOK) { + $enterprise_types = enterprise_hook('policies_get_networkmap_filter_types'); + + $networkmap_types = array_merge($networkmap_types, $enterprise_types); + } + + return $networkmap_types; +} + ?>