$_POST["papers"] = $_POST["storepapers"]; } //Call function to evaluate showing $_GET["showing"] = evaluate_showing($_GET["showing"]); if (isset($_GET["err"])) { $error_array["papers"][0] = "You must choose at least one paper before you can update<br>\n"; } $num_rows = 0; $i = 0; $array = array(); if (($selectionSQL = setup_view_all_bids($num_rows, $GLOBALS["DB_PREFIX"], &$err_message)) !== NULL) { if ($num_rows > 0) { if (($selectionResult = limit_view_all_bids($selectionSQL, $_GET["sort"], $_GET["showing"], MAXRECORDS, &$err_message)) !== NULL) { while ($paperInfo = $selectionResult->FetchNextObj()) { //Get the lastest file of the paper if (($FileIDData = get_latestFileID($paperInfo->PaperID, &$err_message)) === false) { do_html_header("View Paper Bids Failed", &$err_message); $err_message .= " Could not execute \"get_latestFile\" in \"edit_paper_bids.php\". <br>\n"; $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?"; do_html_footer(&$err_message); exit; } $array[$i]["paperid"] = $paperInfo->PaperID; $array[$i]["bidname"] = $paperInfo->PreferenceName; $array[$i]["fileid"] = $FileIDData->FileID; $array[$i]["papertitle"] = stripslashes($paperInfo->Title); if ($_POST["papers"]) { foreach ($_POST["papers"] as $some => $postpaperid) { if ($array[$i]["paperid"] == $postpaperid) { $array[$i]["check"] = "checked"; }
$remainder = $num_rows % MAX_TAGS; if ($num_rows == MAX_TAGS) { $loop = MAX_TAGS; } elseif ($showing / MAX_TAGS + 1 == $quotient) { $loop = $remainder; } else { $loop = MAX_TAGS; } //not showing last page for ($j = 0; $j < $loop; $j++) { // $t=getdate(); echo "Time 1 " . $t['seconds'] . "<br>"; //Debug BL //Get the information $paperInfo = $papersResult->FetchNextObj(); //Get the lastest file of the paper //$FileIDData = get_latestFile($paperInfo->PaperID , &$err_message ); $FileIDData = get_latestFileID($paperInfo->PaperID, &$err_message); //Get reviewer of the paper and format into string $arrReviewers = get_Reviewers_Of_Paper($paperInfo->PaperID); $strReviewers = ""; for ($i = 0; $i < count($arrReviewers); $i++) { if ($i == count($arrReviewers) - 1) { $strReviewers .= "<a href=\"#\" onClick=\"JavaScript:window.open('view_reviewer_info.php?name=" . $arrReviewers[$i] . "',null,'height=200,width=500,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no')\">" . getMemberFullName($arrReviewers[$i]) . "</a>"; } else { $strReviewers .= "<a href=\"#\" onClick=\"JavaScript:window.open('view_reviewer_info.php?name=" . $arrReviewers[$i] . "',null,'height=200,width=500,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no')\">" . getMemberFullName($arrReviewers[$i]) . "</a>, "; } } ?> <tr> <td colspan=4><hr> </td> </tr>