|
|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
function VIEWTABLE_AJAX_EXPORT() {
|
|
|
|
|
|
- $exportLimit = 1000;
|
|
|
+ $exportLimit = 10000;
|
|
|
|
|
|
$zasobID = V::get('ZASOB_ID', 0, $_GET, 'int');
|
|
|
if ($zasobID <= 0) {
|
|
|
@@ -115,7 +115,12 @@ function VIEWTABLE_AJAX_EXPORT() {
|
|
|
}
|
|
|
else if ('csv' == $format) {
|
|
|
|
|
|
- header('Content-Type: text/plain; charset=UTF-8');
|
|
|
+ $tblName = $tblAcl->getName();
|
|
|
+ $exportDate = date("Y-m-d_H_s");
|
|
|
+ $csvFileName = "Tabela-{$tblName}-{$exportDate}";
|
|
|
+ header('Content-Type: text/csv; charset=utf-8');
|
|
|
+ header("Content-Disposition: attachment; filename={$csvFileName}.csv");
|
|
|
+ //header('Content-Type: text/plain; charset=UTF-8');
|
|
|
$csvSeparator = ';';
|
|
|
|
|
|
$labelsLine = array();
|