" onchange="clearothers(this, document.myForm.elements[this.name])"  >
<?php 
    $slots = array();
    foreach ($session_slots->Slots as $slot) {
        $slots[$slot->SlotID] = $slot;
    }
    for ($i = 1; $i <= $session_slots->MaxSlots; $i++) {
        $maxLength = 40;
        $slot = $slots[$i];
        if ($slot) {
            $paper = get_paper_info($slot->PaperID);
            $presenter = get_presenter_info($slot->PaperID);
            if ($presenter == NULL) {
                $colour = $colNone;
            } else {
                if (has_paid_registration($presenter->RegisterID)) {
                    $colour = $colPaid;
                } else {
                    $colour = $colUnpaid;
                }
            }
            ?>
	<option style="color: #<?php 
            echo $colour;
            ?>
" value="<?php 
            echo $paper->PaperID;
            ?>
" >
	<?php 
            // Build ID/Title combo
예제 #2
0
<?php

$php_root_path = "..";
require_once "{$php_root_path}/includes/include_all_fns.inc";
session_start();
$err_message = " Unable to process your request due to the following problems: <br>\n";
$header = "Registration Forms";
$accepted_privilegeID_arr = array(1 => "");
$accepted_phaseID_arr = array(1 => "", 2 => "", 3 => "", 4 => "");
authentication($header, $accepted_privilegeID_arr, $accepted_phaseID_arr, $homepage, $php_root_path, $GLOBALS["DB_PREFIX"], &$err_message);
$memberInfo = getMemberInfo($_SESSION["valid_user"]);
if ($memberInfo == null) {
    exit;
}
if (has_paid_registration($memberInfo->RegisterID)) {
    $paid = get_paid_registration($memberInfo->RegisterID);
    do_html_header("Paid Registration - #" . $paid->FormID, &$err_message);
    ?>
<div style="padding: 20">
	<?php 
    echo get_registration_statement($paid->Form);
    ?>
</div>
<?php 
} else {
    do_html_header($header, &$err_message);
    $forms = retrieve_selection_xml_for_registerid($memberInfo->RegisterID);
    if (count($forms) > 0) {
        ?>
		<p>
		Previously filled forms: