'Submission ID', 'password' => 'Password', 'submissiondate' => 'Submission Date', 'accepted' => 'Acceptance', 'pcnotes' => 'Chair Notes' ); $authorFieldAR = array(); foreach ($OC_submissionFieldSetAR as $fsk=>$fsv) { foreach ($fsv['fields'] as $f) { if (preg_match("/^password/", $f) || empty($OC_submissionFieldAR[$f]['name']) || ($OC_submissionFieldAR[$f]['type'] == 'file')) { continue; } if ($fsk == 'fs_authors') { $authorFieldAR[] = $f; } else { $fieldAR[$f] = str_replace("\"", "\"\"", $OC_submissionFieldAR[$f]['short']); } } } for ($author=1; $author<=$_POST['maxauthors']; $author++) { foreach ($authorFieldAR as $f) { $fieldAR[$f . $author] = OCC_WORD_AUTHOR . ' ' . $author . ' ' . str_replace("\"", "\"\"", $OC_submissionFieldAR[$f]['short']); } } oc_export_headers('submissions-import-template.csv', 'csv'); print '"' . strtoupper(implode('","', $fieldAR)) . '"' . "\r\n"; exit; ?>