Beispiel #1
0
                $reviewer_ID = $reviewer_row['UserID'];
                echo '<td>';
                echo '<label for = "chk-reviewer-' . $reviewer_ID . '">' . $reviewer_name . '</label>';
                echo '<input type="checkbox" id = "chk-case-' . $caseID . '-' . $reviewer_ID . '" name="selected-' . $caseID . '[]" value="' . $reviewer_ID . '"/>';
                echo '</td>';
            }
            // echo '<input type="radio" name="editor" value="'.$row_editors['UserID'].'"/>';
            // case name editors file download
            foreach ($submission_file_list[$caseID] as $submission_file_row) {
                $filetype = $submission_file_row['FileType'];
                $file_id = $submission_file_row['FileMetaDataID'];
                $filename = $submission_file_row['FileName'];
                $filesize = $submission_file_row['FileSize'];
                echo '<td>';
                //echo "<td><a target=\"_blank\" href=\"download.php?fid=$meta_ID\">Download</a></td>";
                create_download_link($file_id, $filetype . ': ' . $filename, $filesize);
                echo '</td>';
            }
            echo '</tr>';
        }
        ?>
		
		</table>
		<input type="submit" name = "submit" value = "submit" class="editor" />
		</form>
		
		<?php 
    } else {
        echo 'No cases submitted at this time';
    }
}
Beispiel #2
0
        $sub_abstract = $row_submission['Abstract'];
        $sub_keywords = $row_submission['Keywords'];
        $sub_status = $row_submission['SubmissionStatus'];
        // expecting one row
        ignore_remaining_output($r_submission);
        complete_procedure($dbc);
        echo "        <h3 class=\"PLACEHOLDER\">Critical Incident: {$sub_title}</h3><br />\r\n";
        echo "        <h3 class=\"PLACEHOLDER\">Abstract: </h3><p class=\"PLACEHOLDER\">{$sub_abstract}</p><br />\r\n";
        $q_subfiles = "CALL spSubmissionGetFilesList({$subID});";
        if ($r_subfiles = mysqli_query($dbc, $q_subfiles)) {
            while ($row_subfiles = mysqli_fetch_array($r_subfiles)) {
                $fid = $row_subfiles['FileMetaDataID'];
                $fname = $row_subfiles['FileName'];
                $fsize = $row_subfiles['FileSize'];
                $ftype = $row_subfiles['FileType'];
                create_download_link($fid, $ftype . ': ' . $fname, $fsize);
            }
            complete_procedure($dbc);
        } else {
            $error = true;
            array_push($errors, 'Author files were not found for this submission.');
        }
    } else {
        $error = true;
        array_push($errors, 'Critical Incident information could not be retrieved.');
    }
}
// Provide form for reviewer to submit review documents
if (!$error && !$success) {
    $errorloc = 'building the file upload form';
    $status_list = array();