return $users; } $sessionID = $_GET["id"]; // Perform session deletion if ($_POST["Submit"] == "Delete") { delete_session($_POST["SessionID"]); } if ($_POST["Submit"] == "Delete" || $_POST["Submit"] == "Cancel") { $url = "Location: sessions.php"; header($url); } // Confirm session deletion if ($_GET["delete"]) { $session = get_session_info($sessionID); $track = get_track_info($session->TrackID); $type = get_presentation_info($session->PresentationTypeID); $sessionSlotsInfo = get_session_slots_info($session->SessionID); do_html_header("Delete Session", &$err_message); ?> <br /> <table align="center"> <tr> <td> <strong>#<?php echo $session->SessionID; ?> - <?php echo $session->SessionName; ?> </strong><br />
$settingInfo = get_Conference_Settings(); $trackStr = $settingInfo->TrackName; //Name for Track $topicStr = $settingInfo->TopicName; //Name for Topic $levelStr = $settingInfo->LevelName; //Name for Level $err_message = " Unable to process your request due to the following problems: <br>\n"; $paperID =& $_GET["paperID"]; $status =& $_GET["status"]; $title = $status . " Paper"; do_html_header($title); //Get the paper information $paperInfo = get_paper_info($paperID); $type = get_presentation_info($_GET["type"]); $curtype = get_presentation_info(get_presentation_type_for_paper($paperInfo->PaperID)); ?> <form action="process_accept_reject_paper.php" method="post" name="form1"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="2"><?php echo stripslashes("<h3>#" . $paperInfo->PaperID . " " . $paperInfo->Title . "</h3>"); ?> </td> </tr> <input type="hidden" name="paperID" value="<?php echo $paperInfo->PaperID; ?> "> <tr> <td width="15%"><strong>Authors:</strong> </td>
if (isset($_SESSION["arrUpdateEmails"])) { $arrUpdateEmails = $_SESSION["arrUpdateEmails"]; } else { $arrUpdateEmails = get_Unsended_EmailList($letterInfo->LetterID, $letterInfo->RecipientGroupName); $_SESSION["arrUpdateEmails"] = $arrUpdateEmails; } //Loop the array and generate the dynamic contents while (list($paperID, $email) = each($arrUpdateEmails)) { //Get the paper info $paperInfo = get_paper_info($paperID); $strAuthors = retrieve_authors($paperID, &$err_message); $strCat = getSelectedCategoryCommaSeparated($paperID, &$err_message); // Get any presentation type info $presTypeID = get_presentation_type_for_paper($paperID); if ($presTypeID) { $presTypeObj = get_presentation_info($presTypeID); $presTypeName = $presTypeObj->PresentationTypeName; } else { $presTypeName = ""; } //Get the full name of the user according to his user name $strFullName = getMemberFullName($paperInfo->MemberName); $arrReplaceInfo = array("fullname" => $strFullName, "paperID" => $paperInfo->PaperID, "papertitle" => $paperInfo->Title, "authors" => $strAuthors, "papercat" => $strCat, "url" => $settingInfo->HomePage, "confname" => $conferenceInfo->ConferenceName, "confcode" => $conferenceInfo->ConferenceCodeName, "contact" => $conferenceInfo->ConferenceContact, "presType" => $presTypeName); //Replace the dynamice constants with real values $tmpContent = replace_Dynamic_Values($arrConstants, $arrReplaceInfo, $strContent); //Put in the return formatted content into array $arrContent[$paperID] = $tmpContent; } //Register array of contents to session $_SESSION["arrContent"] = $arrContent; //Store all the post variables into session
</table> <div> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Reset" value="Undo Changes"> </div> </form> <div style="text-align: right"> <a href="presentation_types.php">Back</a> </div> <hr /> <!-- Finish edit section --> <?php } else { if ($_GET["delete"]) { do_html_header("Delete Presentation Type", &$err_message); $type = get_presentation_info($_GET["delete"]); $sessions = sessions_using_presentation_type($type->PresentationTypeID); if (count($sessions) > 0) { ?> <!-- Start "cannot delete" --> <div style="padding-top: 0.5cm; padding-bottom: 0.5cm"> Cannot delete "<?php echo $type->PresentationTypeName; ?> " because the following sessions are still using it: </div> <div> <table> <?php foreach ($sessions as $session) {
session_start(); // extract ( $_SESSION , EXTR_REFS ) ; $err_message = " Unable to process your request due to the following problems: <br>\n"; //Establish connection with database $db = adodb_connect(); if (!$db) { do_html_header("Database Conntection Fail"); $err_message .= "Could not connect to database server - please try later."; do_html_footer(&$err_message); exit; } //Get the passing variabels $paperID =& $_GET["paperID"]; $status =& $_GET["status"]; $type =& $_GET["type"]; $newtype = get_presentation_info($type); $presType = $newtype->PresentationTypeName; //Check and get the session variable if (isset($_SESSION["arrPostInfo"])) { $arrPostInfo =& $_SESSION["arrPostInfo"]; } //Get the paper information $paperInfo = get_paper_info($paperID); //Arrange the appropriate letter type switch ($_GET["status"]) { case "Accepted": $letterTitle = "Paper Acceptance"; break; case "Rejected": $letterTitle = "Paper Rejection"; break;
exit; } //Check whether the user wish to inform user immediately if ($_POST["informuser"] == "yes") { $url = "Location: compose_accept_reject_mail.php?paperID=" . $_POST["paperID"]; $url .= "&status=" . $_POST["status"] . '&type=' . $_POST["type"]; if (array_key_exists("SessionTrackID", $_POST)) { $url .= "&SessionTrackID=" . $_POST["SessionTrackID"]; } header($url); exit; } //Get the paper information $paperInfo = get_paper_info($_POST["paperID"]); $prevtype = get_presentation_info(get_presentation_type_for_paper($paperInfo->PaperID)); $curtype = get_presentation_info($_POST["type"]); // if SessionTrackID is given, assign paper to this SessionTrack if (array_key_exists("SessionTrackID", $_POST)) { paper_updateSessionTrack($_POST["paperID"], $_POST["SessionTrackID"]); } // Either add or remove presentation from scheduling system if ($_POST["status"] == "Accepted") { // Remove any previous record remove_paper_presentation($_POST["paperID"]); // Add to scheduling system as an unscheduled paper assign_paper_presentation_type($_POST["paperID"], $_POST["type"]); // If all is well, then it will get autoscheduled autoschedule_waiting_papers(); } else { remove_paper_presentation($_POST["paperID"]); }