Reviews
'; if ($emailList = getPaperReviewersEmail($pid)) { // email reviewers link print '(' . oc_('Email Reviewers') . ')
'; } $q = "SELECT `" . OCC_TABLE_PAPERREVIEWER . "`.*, CONCAT_WS(' ', `" . OCC_TABLE_REVIEWER . "`.`name_first`, `" . OCC_TABLE_REVIEWER . "`.`name_last`) as `name`, `" . OCC_TABLE_REVIEWER . "`.`email` FROM `" . OCC_TABLE_PAPERREVIEWER . "`, `" . OCC_TABLE_REVIEWER . "` WHERE `" . OCC_TABLE_PAPERREVIEWER . "`.`paperid`='" . safeSQLstr($pid) . "' AND `" . OCC_TABLE_PAPERREVIEWER . "`.`reviewerid`=`" . OCC_TABLE_REVIEWER . "`.`reviewerid` ORDER BY `score`, `reviewerid`"; $r = ocsql_query($q) or err("Unable to get information"); if (ocsql_num_rows($r)==0) { print '' . oc_('No reviews found') . ' (2)
'; } else { displayReviews($pid, $r, $subinfo['type']); } } // submission? if (isset($_POST['ocaction']) && ($_POST['ocaction'] == "Submit Recommendation")) { // Check for valid submission if (!validToken('ac')) { $w = sprintf(oc_('This submission failed our security check, possibly due to you have signed in again, or a third-party having redirected you here. Below is the information provided. If you were attempting to submit a review, print this information out or copy/paste it to a new document so it can be re-entered; then try again. If the problem persists, please contact the Chair.'), ($_SERVER['PHP_SELF'] . '?pid=' . (is_numeric($_POST['pid']) ? $_POST['pid'] : ''))) . '' . oc_('Recommendation has been submitted.') . '
'; print '» ' . oc_('Return to Recommendation') . '
'; //T: Member = Committee Member -- see "Member Home" string print '» ' . sprintf('Return to Member home page', 'reviewer.php') . '
'; printFooter(); exit; } // Retrieve advocate recommendation $advq = "SELECT * FROM `" . OCC_TABLE_PAPERADVOCATE . "` WHERE `paperid`='" . safeSQLstr($pid) . "' AND `advocateid`='" . safeSQLstr($_SESSION[OCC_SESSION_VAR_NAME]['acreviewerid']) . "'"; $advr = ocsql_query($advq) or err("Unable to get advocate info"); $recommendation = ocsql_fetch_array($advr); // Display form printAdvocateForm($recommendation, $pid, $subinfo); printFooter(); ?>