From f687c5871c2e118d521e1c7157f837f718c6d272 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 5 Sep 2011 15:38:04 +0000 Subject: [PATCH] 2011-09-05 Miguel de Dios * operation/agentes/exportdata.php: fixed when havent any data in any group. Fixes: #3371412 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4906 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/operation/agentes/exportdata.php | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3d76c43ece..cf9be9adeb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-09-05 Miguel de Dios + + * operation/agentes/exportdata.php: fixed when havent any data in any + group. + + Fixes: #3371412 + 2011-09-05 Miguel de Dios * extensions/system_info.php: show the location of file. diff --git a/pandora_console/operation/agentes/exportdata.php b/pandora_console/operation/agentes/exportdata.php index 6f6dff346c..a1f0cf47f7 100644 --- a/pandora_console/operation/agentes/exportdata.php +++ b/pandora_console/operation/agentes/exportdata.php @@ -298,6 +298,7 @@ $table->border = 0; $table->cellspacing = 3; $table->cellpadding = 5; $table->class = "databox_color"; +$table->style[0] = 'vertical-align: top;'; $table->data = array (); @@ -344,6 +345,11 @@ if ($agent > 0) { $modules = array (); } +$disabled_export_button = false; +if (empty($modules)) { + $disabled_export_button = true; +} + $table->data[2][1] = html_print_select ($modules, "module_arr[]", array_keys ($modules), '', '', 0, true, true, true, 'w155', false); //Start date selector @@ -374,7 +380,7 @@ html_print_table ($table); // Submit button echo '
'; - html_print_submit_button (__('Export'), 'export_btn', false, 'class="sub wand"'); + html_print_submit_button (__('Export'), 'export_btn', $disabled_export_button, 'class="sub wand"'); echo '
'; ui_require_jquery_file ('pandora.controls');