mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 10:59:15 +02:00
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:
parent
22e3dc383b
commit
d0972921ff
@ -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,
|
* include/functions_reporting.php, include/functions.php,
|
||||||
godmode/reporting/reporting_builder.php,
|
godmode/reporting/reporting_builder.php,
|
||||||
|
@ -41,8 +41,9 @@ $extra_title = __('Plugin server module');
|
|||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Plugin');
|
$data[0] = __('Plugin');
|
||||||
$data[1] = print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name',
|
$data[1] = print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name',
|
||||||
'id_plugin', $id_plugin, '', __('None'), 0, true, false, false, $disabledBecauseInPolicy);
|
'id_plugin', $id_plugin, 'changePluginSelect();', __('None'), 0, true, false, false, $disabledBecauseInPolicy);
|
||||||
$table_simple->colspan['plugin_1'][1] = 3;
|
$table_simple->colspan['plugin_1'][2] = 2;
|
||||||
|
$data[2] = '<span style="font-weight: normal;" id="plugin_description"></span>';
|
||||||
|
|
||||||
push_table_simple ($data, 'plugin_1');
|
push_table_simple ($data, 'plugin_1');
|
||||||
|
|
||||||
@ -70,3 +71,17 @@ $table_simple->colspan['plugin_3'][1] = 3;
|
|||||||
|
|
||||||
push_table_simple ($data, 'plugin_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>
|
||||||
|
@ -14,6 +14,15 @@
|
|||||||
// GNU General Public License for more details.
|
// 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
|
// Load global vars
|
||||||
global $config;
|
global $config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user