From 7819b1207cb4096c27f13ee7d9e392ede096fc66 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 6 Jun 2011 16:22:30 +0000 Subject: [PATCH] 2011-06-06 Juan Manuel Ramon * operation/agentes/ver_agente.php: Added callback function for JQuery requests. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4411 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/ver_agente.php | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 68bb6bf186..07b05e402e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-06-06 Juan Manuel Ramon + + * operation/agentes/ver_agente.php: Added callback function + for JQuery requests. + 2011-06-06 Dario Rodriguez * godmode/servers/manage_recontask.php diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 9bf3d477db..955d8b9be0 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -42,7 +42,8 @@ if (is_ajax ()) { $get_agent_modules_json_for_multiple_agents_id = (bool) get_parameter("get_agent_modules_json_for_multiple_agents_id"); $get_agentmodule_status_tooltip = (bool) get_parameter ("get_agentmodule_status_tooltip"); $get_group_status_tooltip = (bool) get_parameter ("get_group_status_tooltip"); - + $get_agent_id = (bool) get_parameter ("get_agent_id"); + if ($get_agents_group_json) { $id_group = (int) get_parameter('id_group'); @@ -343,7 +344,7 @@ if (is_ajax ()) { return; } - if ($get_agentmodule_status_tooltip) { + if ($get_agentmodule_status_tooltip) { $id_module = (int) get_parameter ('id_module'); $module = db_get_row ('tagente_modulo', 'id_agente_modulo', $id_module); echo '

'; @@ -397,6 +398,13 @@ if (is_ajax ()) { return; } + if ($get_agent_id){ + $agent_name = (string) get_parameter ("agent_name"); + + echo agents_get_agent_id ($agent_name); + return; + } + return; }