From f0f331be4ea181e07d11ae59ca88e2c6a54aa647 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 21 May 2018 16:22:38 +0200 Subject: [PATCH] Moved a button --- pandora_console/godmode/admin_access_logs.php | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pandora_console/godmode/admin_access_logs.php b/pandora_console/godmode/admin_access_logs.php index c3352d9ac2..5bfdfb4fcf 100644 --- a/pandora_console/godmode/admin_access_logs.php +++ b/pandora_console/godmode/admin_access_logs.php @@ -29,8 +29,6 @@ if (! check_acl($config['id_user'], 0, "PM")) { exit; } -ui_print_page_header(__('Pandora audit') . " » " . __('Review Logs'), "images/gm_log.png", false, "", true); - $offset = (int) get_parameter("offset"); $filter_type = (string) get_parameter("filter_type"); $filter_user = (string) get_parameter("filter_user"); @@ -45,6 +43,19 @@ $filter_query = "&filter_type=" . $filter_type . "&filter_period=" . $filter_period . "&filter_ip=" . $filter_ip; +$csv_url = ui_get_full_url(false, false, false, false) + . 'index.php?sec=gextensions&sec2=godmode/audit_log_csv' + . $filter_query; +$csv_img = html_print_image("images/csv_mc.png", true, array ("title" => __('Export to CSV'))); +$header_buttons = array( + 'csv' => array( + 'active' => false, + 'text' => '' . $csv_img . '' + ) +); + +ui_print_page_header(__('Pandora audit') . " » " . __('Review Logs'), "images/gm_log.png", false, "", true, $header_buttons); + $table = new stdClass(); $table->class = "databox filters"; $table->cellstyle = array(); @@ -239,13 +250,6 @@ foreach ($result as $row) { html_print_table($table); -echo '
'; -$csv_url = ui_get_full_url(false, false, false, false) . 'index.php?sec=gextensions&sec2=godmode/audit_log_csv' . $filter_query; -echo '' - . html_print_button(__("Export to CSV"), "export_csv", false, "", "class=sub upd", true, false) - . ''; -echo '
'; - if ($enterprise_include !== ENTERPRISE_NOT_HOOK) { enterprise_hook('enterpriseAuditFooter'); }