session_start(); $err_message = " Unable to process your request due to the following problems: <br>\n"; $header = "Registration Form"; $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); $conferenceInfo = get_conference_info(); $memberInfo = getMemberInfo($_SESSION["valid_user"]); if ($memberInfo == null) { exit; } if (!array_key_exists('formid', $_GET)) { header('Location: payment_forms.php'); exit; } $selectionXml = retrieve_selection_xml($_GET['formid'], &$err_message); if ($selectionXml == null) { header('Location: payment_forms.php'); exit; } header('Content-Type: text/html; charset=utf-8'); $htmlStatement = get_registration_statement($selectionXml->Form); ?> <html> <head> <title></title> </head> <body> <h1><?php echo $conferenceInfo->ConferenceName; ?>
<?php $php_root_path = ".."; $privilege_root_path = "/admin"; require_once "includes/include_all_fns.inc"; session_start(); $err_message = " Unable to process your request due to the following problems: <br>\n"; if (array_key_exists("formid", $_GET)) { $selectionXmlObj = retrieve_selection_xml($_GET["formid"]); if ($selectionXmlObj != null) { if (array_key_exists("paid", $_POST)) { set_payment_status($selectionXmlObj->FormID, $_POST["paid"], &$err_message); $selectionXmlObj = retrieve_selection_xml($_GET["formid"]); } $memberInfo = get_member_info_with_id($selectionXmlObj->RegisterID); do_html_header("Form #" . $_GET["formid"], &$err_message); $paidSelectors = array(); $paidSelector["Paid"] = $selectionXmlObj->Paid ? 'checked' : ''; $paidSelector["Unpaid"] = !$selectionXmlObj->Paid ? 'checked' : ''; ?> <div> <form action="form_payment.php?formid=<?php echo $_GET["formid"]; ?> " method="post"> <div style="padding: 5"> This form is currently marked as <span style="font-weight: bold; color: <?php echo $selectionXmlObj->Paid ? 'green' : 'red'; ?> ">