$t->td("align='left'", getSelection()); if ($authClass->authenticated()) { if (getAllPreprints()) { $t->td("", core_getLink("manage preprints", "show_preprints.php")); } if ($authClass->isAdmin()) { $t->td("", core_getLink("manage users", "edit_users.php")); } if ($authClass->isAdmin()) { $t->td("", core_getLink("see access log", "listLog.php")); } if (True) { $t->td("", core_getLink(PP_RESERVE, "edit_preprints.php?nor_pp_period=" . $nor_pp_period . "&nor_pp_mode=" . NOR_PP_MODE_RESERVE)); } } else { $t->td("", "<div class='only_online'>" . pp_getLink("how to submit preprint", "howto.php", $modal = True) . "</div>"); } $t->trc(); $t->close("</form>"); $t = new table("class='filled' align='center' width='100%'", "<div id='preprints' class='pp_list'>"); $t->tro(); $t->th("width='60'", "<span class='only_online'>Serial</span>"); $t->th("", "Title and author(s)"); $t->th("", "Published in"); $t->trc(); if ($group != "all") { $queryG = " AND Field=" . $dbClass->quote($group); } else { $queryG = ""; } if ($author) {
if ($nor_pp_mode != NOR_PP_MODE_RESERVE && !@$rowId) { errorPage("Entry not selected, please go back and select an entry", "Manage preprints", "Select the preprint"); } switch ($nor_pp_mode) { case NOR_PP_MODE_RESERVE: startPage("Reservation of new Preprint Number"); $row = array("Year" => $year, "Report" => PP_UNDEFINED); $t = new table("", "<form action='reserve_ppn.php' method='post'>" . "<input type='hidden' name='nor_pp_period' value='" . $nor_pp_period . "'>"); $t->tro(); $t->th("", "submitter"); $t->td("", make_user_selection()); $t->trc(); getEditDialog(); $t->tro(); $t->td(); $t->td("", "<input type='submit' value='allocate the preprint number'> " . pp_getLink("cancel", ".")); $t->trc(); $t->close("</form>"); break; case NOR_PP_MODE_UNRESERVE: $res = $dbClass->query("select * from publications where RowId={$rowId}"); $row = mysql_fetch_array($res); if (!$authClass->isAdmin() && $AUTH_uid != $row["Id"]) { nor_fail("You are not the owner of this preprint number."); } else { if ($row["Status"] != "reserved" && $row["Status"] != "registered") { nor_fail("The preprint is not reserved or registered"); } else { if ($confirmed) { if ($confirmed === "yes") { $dbClass->query("UPDATE publications SET Status='free' WHERE RowId='" . $rowId . "' AND Status='reserved'");