Add field for general reception history

This commit is contained in:
2022-06-10 13:19:30 +02:00
parent 37aecde967
commit 947f2cb87b
5 changed files with 35 additions and 6 deletions

View File

@ -70,11 +70,14 @@ foreach ($availableFields as $headline => $fields) {
}
header('Content-Type: text/csv; charset=utf-8');
if ($selectionActive === true)
if ($selectionActive === true) {
header("Content-Disposition: attachment; filename=csvxml_museum-digital_template-{$lang}_selection.csv");
else
}
else {
header("Content-Disposition: attachment; filename=csvxml_museum-digital_template-{$lang}.csv");
}
for ($i = 2; $i <= 4; $i++) {
echo mb_convert_encoding('"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL, 'utf-16', 'utf-8');
echo '"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL;
# echo mb_convert_encoding('"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL, 'utf-16', 'utf-8');
}