Compare commits
1 commit
develop
...
moiety/pag
Author | SHA1 | Date | |
---|---|---|---|
6af048ab2a |
2 changed files with 6 additions and 9 deletions
|
@ -30,13 +30,10 @@ class ExportController extends Controller
|
||||||
}
|
}
|
||||||
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
|
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
|
||||||
}
|
}
|
||||||
return view(
|
return view('front.exports', [
|
||||||
'front.exports',
|
'title' => "Exports",
|
||||||
[
|
'list' => $list
|
||||||
'title' => "Exports",
|
]);
|
||||||
'list' => $list
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -80,7 +77,7 @@ class ExportController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Content-Type: text/csv');
|
header('Content-Type: text/csv');
|
||||||
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent . ".csv");
|
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent);
|
||||||
|
|
||||||
echo implode(',', $columns) . PHP_EOL;
|
echo implode(',', $columns) . PHP_EOL;
|
||||||
foreach ($list as $item) {
|
foreach ($list as $item) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|
Loading…
Add table
Reference in a new issue