Data Source
'Primary Data File', 'id' => 'dsDataFile', 'name' => 'data_file', 'column' => 'dspsds_filename', 'help' => 'Upload a file that matches the selected data type.', ], [ 'label' => 'Questionnaire / Data Dictionary', 'id' => 'dsDataFile1', 'name' => 'data_file1', 'column' => 'dspsds_filename1', 'help' => 'Upload a supporting document (PDF, XLSX, etc.)', ], [ 'label' => 'Protocol / User Guide', 'id' => 'dsDataFile2', 'name' => 'data_file2', 'column' => 'dspsds_filename2', 'help' => 'Upload a protocol or user guide (PDF, DOCX, etc.)', ], [ 'label' => 'Other Supporting Document', 'id' => 'dsDataFile3', 'name' => 'data_file3', 'column' => 'dspsds_filename3', 'help' => 'Optional additional document.', ], ]; ?>
Allowed formats: Current file:
Cancel
My Data Sources
'; if (!empty($primaryFile)) { $isUrlPrimary = preg_match('/^https?:\/\//i', $primaryFile) === 1; $primaryTarget = $isUrlPrimary ? $primaryFile : $uploadsWebPath . rawurlencode($primaryFile); $primaryTitle = $isUrlPrimary ? 'External link' : 'Download Data Source'; echo ''; } else { echo ''; } echo ''; ?> 'Questionnaire / Data Dictionary', 'dspsds_filename2' => 'Protocol / User Guide', 'dspsds_filename3' => 'Other Supporting Document', ]; foreach ($fileCells as $column => $label) { $fileName = $ds[$column] ?? ''; echo ''; } ?>
ID Title (EN) Type Category Status Data Source Questionnaire User Guide Supporting Doc Registered Date Actions
'; if (!empty($fileName)) { $isUrl = preg_match('/^https?:\/\//i', $fileName) === 1; $linkTarget = $isUrl ? $fileName : $uploadsWebPath . rawurlencode($fileName); $titleAttr = $isUrl ? 'External link' : 'Download ' . $label; echo ''; } else { echo ''; } echo '
You have not added any data sources yet.