diff --git a/application/views/reports/tabular.php b/application/views/reports/tabular.php index 821f74f96..d62b6d01e 100644 --- a/application/views/reports/tabular.php +++ b/application/views/reports/tabular.php @@ -31,6 +31,7 @@ pageSize: config->item('lines_per_page'); ?>, striped: true, sortable: true, + showExport: true, pagination: true, showColumns: true, showExport: true, diff --git a/application/views/reports/tabular_details.php b/application/views/reports/tabular_details.php index 1ec58c12f..6eed66c90 100644 --- a/application/views/reports/tabular_details.php +++ b/application/views/reports/tabular_details.php @@ -1,15 +1,4 @@ -load->view("partial/header_excel"); - } - else - { - $this->load->view("partial/header"); - } -?> +load->view("partial/header");?>
@@ -30,62 +19,40 @@ ?> -load->view("partial/footer_excel"); - $content = ob_end_flush(); - - $filename = trim($filename); - $filename = str_replace(array(' ', '/', '\\'), '', $title); - $filename .= "_Export.xls"; - header('Content-type: application/ms-excel'); - header('Content-Disposition: attachment; filename='.$filename); - echo $content; - die(); -} -else -{ - ?> - - load->view("partial/footer"); ?> - \ No newline at end of file + + && init_dialog(); + }); + +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/js/manage_tables.js b/js/manage_tables.js index a33a85338..c839bea07 100644 --- a/js/manage_tables.js +++ b/js/manage_tables.js @@ -196,6 +196,7 @@ showColumns: true, clickToSelect: true, showExport: true, + onPageChange: load_success(options.onLoadSuccess), toolbar: '#toolbar', uniqueId: options.uniqueId || 'id', onCheck: enable_actions,