2010-06-02 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/module_manager_editor_plugin.php: fixed, now show the
	description of plugin selected.
	
	* godmode/servers/plugin.php: added the response to ajax for query the
	report description.
	
	Fixes: #3008494



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2848 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-06-02 16:43:59 +00:00
parent 22e3dc383b
commit d0972921ff
3 changed files with 37 additions and 3 deletions

View File

@ -1,4 +1,14 @@
2010-06-01 Miguel de Dios <miguel.dedios@artica.es>
2010-06-02 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_plugin.php: fixed, now show the
description of plugin selected.
* godmode/servers/plugin.php: added the response to ajax for query the
report description.
Fixes: #3008494
2010-06-02 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php, include/functions.php,
godmode/reporting/reporting_builder.php,

View File

@ -41,8 +41,9 @@ $extra_title = __('Plugin server module');
$data = array ();
$data[0] = __('Plugin');
$data[1] = print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name',
'id_plugin', $id_plugin, '', __('None'), 0, true, false, false, $disabledBecauseInPolicy);
$table_simple->colspan['plugin_1'][1] = 3;
'id_plugin', $id_plugin, 'changePluginSelect();', __('None'), 0, true, false, false, $disabledBecauseInPolicy);
$table_simple->colspan['plugin_1'][2] = 2;
$data[2] = '<span style="font-weight: normal;" id="plugin_description"></span>';
push_table_simple ($data, 'plugin_1');
@ -70,3 +71,17 @@ $table_simple->colspan['plugin_3'][1] = 3;
push_table_simple ($data, 'plugin_3');
?>
<script type="text/javascript">
function changePluginSelect() {
// alert($("#id_plugin").val());
jQuery.post ("ajax.php",
{"page" : "godmode/servers/plugin",
"get_plugin_description" : 1,
"id_plugin" : $("#id_plugin").val()
},
function (data, status) {
$("#plugin_description").html(data);
}
);
}
</script>

View File

@ -14,6 +14,15 @@
// GNU General Public License for more details.
if (is_ajax ()) {
$get_plugin_description = get_parameter('get_plugin_description');
$id_plugin = get_parameter('id_plugin');
$description = get_db_value_filter('description', 'tplugin', array('id' => $id_plugin));
echo safe_output($description);
return;
}
// Load global vars
global $config;