Exemplo n.º 1
0
        $session->EndTime = sprintf("%s %02d:%02d:00", $_POST["EndDate"], $_POST["EndHour"] % 12 + ($_POST["EndMeridiem"] == "pm" ? 12 : 0), $_POST["EndMinute"]);
        $session->RoomID = $_POST["RoomID"];
        $session->ChairID = $_POST["ChairID"];
        if ($_POST["SessionID"] && !$_GET["duplicate"]) {
            $result = update_session($session);
        } else {
            $session->SessionID = 0;
            $result = add_session($session);
        }
        $url = "Location: sessions.php";
        header($url);
    }
}
$vars = array();
if ($sessionID) {
    $session = get_session_info($sessionID);
    $vars["SessionID"] = $session->SessionID;
    $vars["SessionName"] = $session->SessionName;
    $vars["TrackID"] = $session->TrackID;
    $vars["SessionTrackID"] = $session->SessionTrackID;
    $vars["PresentationTypeID"] = $session->PresentationTypeID;
    $startTime = get_date_obj($session->StartTime);
    $vars["StartDate"] = $startTime->Date;
    // Transform for am/pm, so that goes 12, 1, 2, etc.
    $vars["StartHour"] = (11 + $startTime->Hour) % 12 + 1;
    $vars["StartMinute"] = $startTime->Minute;
    $vars["StartMeridiem"] = $startTime->Hour < 12 ? "am" : "pm";
    $endTime = get_date_obj($session->EndTime);
    $vars["EndDate"] = $endTime->Date;
    // Transform for am/pm, so that goes 12, 1, 2, etc.
    $vars["EndHour"] = (11 + $endTime->Hour) % 12 + 1;
Exemplo n.º 2
0
        $presenter = get_presenter_info($_GET["paperid"]);
        if ($presenter) {
            update_presenter($new_presenter);
        } else {
            add_presenter($new_presenter);
            // Needs to be fixed
        }
        autoschedule_waiting_papers();
    } else {
        $err_MemberName = "Invalid username";
    }
    // Refresh variables
    $session_slot = get_session_slot_info($_GET["paperid"]);
    $presenter = get_presenter_info($_GET["paperid"]);
    if ($session_slot) {
        $session = get_session_info($session_slot->SessionID);
    }
    $presentation_type = get_presentation_info(get_presentation_type_for_paper($paper->PaperID));
}
$member = get_member_info_with_id($presenter->RegisterID);
do_html_header("Presentation Details", &$err_message);
?>
<br />
<table style="margin-left: 10%">
	<tr>
		<td colspan="2">
		<h3>
		#<?php 
echo $paper->PaperID;
?>
		- <?php