} // -------------------------------------------------------------- // Display // -------------------------------------------------------------- if ($action != "print" && $msg != "default") { echo $msg_output; } if ($_SESSION['contestLogo'] != "" && file_exists($server_root . $sub_directory . '/user_images/' . $_SESSION['contestLogo']) && (judging_date_return() > 0 || NHC)) { echo $competition_logo; } if ($action != "print") { echo $print_page_link; } if ($total_entry_fees > 0) { if ($_SESSION['prefsPayToPrint'] == "N" && $unconfirmed > 0) { $warning2 .= "<div class='error'>You have unconfirmed entries that are <em>not</em> reflected in your fee totals below. Please go to <a href='" . build_public_url("list", "default", "default", $sef, $base_url) . "'>your entry list</a> to confirm all your entry data.<br />Unconfirmed entry data will be deleted every 24 hours.</div>"; } echo $warning1; echo $warning2; echo $primary_page_info; echo $header1_7; echo $page_info7; echo $header1_1; echo $page_info1; echo $header1_2; echo $page_info2; echo $header1_3; echo $page_info3; echo $header2_4; echo $page_info4; //echo $header2_5;
$table_body1 .= "<tr>"; $table_body1 .= "<th width=\"10%\">Yes/No</th>"; $table_body1 .= "<th>Location</th>"; $table_body1 .= "<th>Date/Time</th>"; $table_body1 .= "</tr>"; $table_body1 .= "</thead>"; $table_body1 .= "<tbody>"; $table_body1 .= $steward_info; $table_body1 .= "</tbody>"; $table_body1 .= "</table>"; } else { $table_body1 .= ""; } } if (!empty($table_assign_steward) && !empty($assignment)) { $table_body1 .= sprintf("<p><strong class=\"text-success\">You have already been assigned as a %s to a table</strong>.</p><p>If you wish to change your availabilty and/or withdraw your role, <a href=\"%s\">contact</a> the competition organizer or judge coordinator.</p>", $assignment, build_public_url("contact", "default", "default", "default", $sef, $base_url)); } elseif (in_array("Judge", $assignment_array) && !empty($assignment)) { $table_body1 .= sprintf("You have already been assigned as a %s.", $assignment); } $table_body1 .= "</div>"; $table_body1 .= "</div>"; if (!$steward_available_not_assigned && !empty($table_assign_steward)) { $table_body1 .= "<div class=\"row bcoem-account-info\">"; $table_body1 .= "<div class=\"col-lg-3 col-md-3 col-sm-4 col-xs-4\"><strong>Assignment(s)</strong></div>"; $table_body1 .= "<div class=\"col-lg-9 col-md-9 col-sm-8 col-xs-8\">"; $table_body1 .= "<table id=\"steward_assignments\" class=\"table table-striped table-bordered table-responsive\">"; $table_body1 .= "<thead>"; $table_body1 .= "<tr>"; $table_body1 .= "<th width=\"33%\">Location</th>"; $table_body1 .= "<th width=\"34%\">Date/Time</th>"; $table_body1 .= "<th >Table</th>";
$judge_reg_open_msg .= "<div class='info'>Judge/steward registration will open " . $judge_open . ".</div>"; } if (!isset($_SESSION['loginUsername']) && $section != "register" && $judge_window_open == "1") { $judge_willing_msg .= "<div class='info'>If you are willing to be a judge or steward, please <a href='" . build_public_url("register", "judge", "default", $sef, $base_url) . "'>register here</a>.<br>Judge/steward registration will close " . $judge_closed . ".</div>"; } } if ($registration_open == "2" && !$ua) { if (($section != "admin" || $_SESSION['userLevel'] > "1") && judging_date_return() > 0) { $registration_closed_msg .= "<div class='closed'>"; $registration_closed_msg .= "Registration closed " . $reg_closed . "."; if ($entry_window_open == "1") { $registration_closed_msg .= "<br>Participants who already have registered accounts may add entries into the system until " . $entry_closed . "."; } $registration_closed_msg .= "</div>"; if (!isset($_SESSION['loginUsername']) && $section != "register" && $judge_window_open == "1") { $registration_closed_msg .= "<div class='info'>If you are willing to be a judge or steward, please <a href='" . build_public_url("register", "judge", "default", $sef, $base_url) . "'>register here</a>.<br>Judge/steward registration will close " . $judge_closed . ".</div>"; } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $_SESSION['contestName']; ?> Organized By <?php echo $_SESSION['contestHost'] . " > " . $header_output; ?>
$_SESSION['recipes'] = $recipes; } print "<script>window.location.href='index.php?section=" . $section . "&action=importXML&msg=1'</script>"; } elseif (!$_FILES['userfile']) { $message .= ""; } else { $message .= "Invalid file specified."; } if ($action != "print" && $msg != "default") { echo $msg_output; } if (!empty($message)) { $message7 .= "<div class='error'>" . $message . "</div>"; } if (entries_unconfirmed($_SESSION['user_id']) > 0) { $message8 .= "<div class='error'>You have unconfirmed entries. Please go to <a href='" . build_public_url("list", "default", "default", $sef, $base_url) . "'>your entry list</a> to confirm all your entry data. Unconfirmed entry data will be deleted every 24 hours.</div>"; } } } if (!$php_OK) { $message9 .= "<div class='error'>Your server's version of PHP does not support the BeerXML import feature.</div><p>PHP version 5.x or higher is required — this server is running PHP version " . $php_version . ".</p>"; } // -------------------------------------------------------------- // Display // -------------------------------------------------------------- echo $message1; echo $message2; echo $message3; echo $message4; echo $message5; echo $message6;
$table_body1 .= "<tr>"; $table_body1 .= "<th class='dataHeading bdr1B' width='15%'>Yes/No</th>"; $table_body1 .= "<th class='dataHeading bdr1B' width='40%'>Location</th>"; $table_body1 .= "<th class='dataHeading bdr1B'>Date/Time</th>"; $table_body1 .= "</tr>"; $table_body1 .= "</thead>"; $table_body1 .= "<tbody>"; $table_body1 .= $steward_info; $table_body1 .= "</tbody>"; $table_body1 .= "</table>"; } else { $table_body1 .= "No data retrieved."; } } if (!empty($table_assign_steward) && !empty($assignment)) { $table_body1 .= sprintf("** You have already been assigned as a %s to a table. If you wish to change your availabilty and/or withdraw your role, <a href='%s'>contact</a> the competition organizer or judge coordinator.", $assignment, build_public_url("contact", "default", "default", $sef, $base_url)); } $table_body1 .= "</td>"; $table_body1 .= "</tr>"; if (!$steward_available_not_assigned && !empty($table_assign_steward)) { $table_body1 .= "<tr>"; $table_body1 .= "<td class='dataLabel'>Table Assignment(s):</td>"; $table_body1 .= "<td>"; $table_body1 .= "<table id='steward_assignments' class='dataTable' style='width:75%;float:left;'>"; $table_body1 .= "<thead>"; $table_body1 .= "<tr>"; $table_body1 .= "<th class='dataHeading bdr1B' width='33%'>Location</th>"; $table_body1 .= "<th class='dataHeading bdr1B' width='34%'>Date/Time</th>"; $table_body1 .= "<th class='dataHeading bdr1B'>Table</th>"; $table_body1 .= "</tr>"; $table_body1 .= "</thead>";
$page_info1 .= "<p>If you <em>have not</em> registered and are willing to be a judge or steward, <a href='" . build_public_url("register", "judge", "default", $sef, $base_url) . "'>please register</a>.</p>"; $page_info1 .= sprintf("<p>If you <em>have</em> registered, <a href=\"%s\">log in</a> and then choose <em>Edit Account</em> from the My Account menu indicated by the <span class=\"fa fa-user\"></span> icon on the top menu.</p>", build_public_url("login", "default", "default", "default", $sef, $base_url)); } elseif ($registration_open == "1" && isset($_SESSION['loginUsername'])) { $page_info1 .= "<p>Since you have already registered, you can <a href='" . build_public_url("list", "default", "default", "default", $sef, $base_url) . "'>check your account info</a> to see whether you have indicated that you are willing to judge and/or steward.</p>"; $page_info1 .= ""; } else { $page_info1 .= sprintf("<p>If you are willing to judge or steward, please return to register on or after %s.</p>", $judge_open); } if ($entry_window_open == 1) { $header1_2 .= "<h2>Entry Registration is <span class='text-success'>Open</a></h2>"; $page_info2 .= "<p>"; $page_info2 .= "To add your entries into the system, "; if (!isset($_SESSION['loginUsername'])) { $page_info2 .= "please proceed through the <a href='" . build_public_url("register", "default", "default", "default", $sef, $base_url) . "'>registration process</a> or <a href='" . build_public_url("login", "default", "default", "default", $sef, $base_url) . "'>log in</a> if you already have an account."; } else { $page_info2 .= "use the <a href='" . build_public_url("brew", "entry", "add", "default", $sef, $base_url) . "'>add an entry form</a>."; } $page_info2 .= "</p>"; } $header1_3 .= "<a name='rules'></a><h2>Rules</h2>"; $page_info3 .= $row_contest_rules['contestRules']; // -------------------------------------------------------------- // Display // -------------------------------------------------------------- echo $header1_2; echo $page_info2; echo $header1_1; echo $page_info1; echo $header1_3; echo $page_info3; echo $header1_4;
$header_vol_1_3 = ""; $page_info_vol_3 = ""; $header_vol_1_1 .= "<h2>Judges and Stewards</h2>"; if ($judge_window_open > 0 && !$logged_in) { $page_info_vol_1 .= sprintf("<p>If you <em>have</em> registered, <a href=\"%s\">log in</a> and then choose <em>Edit Account</em> from the My Account menu indicated by the <span class=\"fa fa-user\"></span> icon on the top menu.</p>", build_public_url("login", "default", "default", "default", $sef, $base_url)); if ($registration_open < 2) { $page_info_vol_1 .= sprintf("<p>If you <em>have not</em> registered and are willing to be a judge or steward, <a href=\"%s\">please register</a>.</p>", build_public_url("register", "judge", "default", "default", $sef, $base_url)); } } elseif ($judge_window_open > 0 && $logged_in) { $page_info_vol_1 .= sprintf("<p>Since you have already registered, <a href=\"%s\">access your account</a> to see if you have volunteered to be a judge or steward.</p>", build_public_url("list", "default", "default", "default", $sef, $base_url)); } else { $page_info_vol_1 .= sprintf("<p>If you are willing to judge or steward, please return to register on or after %s.</p>", getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestJudgeOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time")); } if ($registration_open < 2) { $header_vol_1_2 .= "<h2>Staff</h2>"; $page_info_vol_2 .= sprintf("<p>If you would like to volunteer to be a competition staff member, <a href=\"%s\">contact</a> the appropriate competition official.", build_public_url("contact", "default", "default", "default", $sef, $base_url)); } if (!empty($row_contest_info['contestVolunteers'])) { $header_vol_1_3 .= "<h2>Other Volunteer Info</h2>"; $page_info_vol_3 .= $row_contest_info['contestVolunteers']; } // -------------------------------------------------------------- // Display // -------------------------------------------------------------- if ($action != "print" && $msg != "default") { echo $msg_output; } //if ((($_SESSION['contestLogo'] != "") && (file_exists($_SERVER['DOCUMENT_ROOT'].$sub_directory.'/user_images/'.$_SESSION['contestLogo']))) && ((judging_date_return() > 0) || (NHC))) echo $competition_logo; //if ($action != "print") echo $print_page_link; echo $header_vol_1_1; echo $page_info_vol_1;
} if ($_SESSION['contestAwardsLocName'] != "") { $anchor_links .= "<a href='#ceremony'>Awards Ceremony</a><br />"; } if ($row_contest_info['contestCircuit'] != "") { $anchor_links .= "<a href='#circuit'>Circuit Qualification</a>"; } // Competition Official if ($contact_count > 0) { if ($contact_count == 1) { $header1_1 .= "<a name='officials'></a><h2>Competition Official</h2>"; } else { $header1_1 .= "<a name='officials'></a><h2>Competition Officials</h2>"; } if ($action != "print") { $page_info1 .= sprintf("<p>You can send an email to any of the following individuals via the <a href='%s'>Contact</a> section.</p>", build_public_url("contact", "default", "default", $sef, $base_url)); } $page_info1 .= "<ul>"; do { $page_info1 .= "<li>"; $page_info1 .= $row_contact['contactFirstName'] . " " . $row_contact['contactLastName'] . " — " . $row_contact['contactPosition']; if ($action == "print") { $page_info1 .= " (" . $row_contact['contactEmail'] . ")"; } $page_info1 .= "</li>"; } while ($row_contact = mysql_fetch_assoc($contact)); $page_info1 .= "</ul>"; } // Registration Window $header1_2 .= "<a name='reg_window'></a><h2>Registration Window</h2>"; $page_info2 .= sprintf("<p>You will be able to register your personal information beginning %s through %s.</p>", $reg_open, $reg_closed);
echo $_SESSION['user_id']; ?> ">Change My Password</a> <?php if (NHC && $prefix != "final_" && $remaining_entries > 0 && $_SESSION['userLevel'] == 2 && !$comp_entry_limit) { ?> <a class="menuItem" href="<?php echo build_public_url("brew", "default", "add", $sef, $base_url); ?> ">Add An Entry</a> <?php if (!NHC && $_SESSION['prefsHideRecipe'] == "N") { ?> <a class="menuItem" href="<?php echo build_public_url("beerxml", "default", "default", $sef, $base_url); ?> ">Import Entries Using BeerXML</a> <?php } ?> <?php } ?> </div> <?php } if (isset($_SESSION['loginUsername']) && $_SESSION['userLevel'] <= "1") { ?> <div id="adminMenu" class="menu" onmouseover="menuMouseover(event)"> <!-- Admin Main Link -->
<td class="dataLabel">Password:</td> <td class="data"><input name="loginPassword" type="password" class="submit" size="25"></td> </tr> </table> <p><input type="submit" class="button" value="Login"></p> </form> <?php } ?> <?php if ($forget_form_display) { ?> <p>To reset your password, enter the email address you used when you registered.</p> <form action="<?php echo build_public_url("login", "verify", "forgot", $sef, $base_url); ?> " method="POST" name="form1" id="form1"> <table class="dataTable"> <tr> <td class="dataLabel" width="5%">Email Address:</td> <td class="data"><input name="loginUsername" type="text" class="submit" size="40" <?php if ($username != "default") { echo "value=\"" . $username . "\""; } ?> ></td> </tr> <td class="dataLabel"> </td> <td class="data"><input type="submit" class="button" value="Submit"></td> </tr>
$header1_16 = ""; $page_info16 = ""; // Registration Window if (!$logged_in) { $header1_2 .= "<a name=\"reg_window\"></a><h2>Account Registration</h2>"; if ($registration_open == 0) { $page_info2 .= sprintf("<p>You will be able to create your account beginning <strong class=\"text-success\">%s</strong> through <strong class=\"text-success\">%s</strong>.</p><p>Judges and stewards may register beginning <strong class=\"text-success\">%s</strong> through <strong class=\"text-success\">%s</strong>.</p>", $reg_open, $reg_closed, $judge_open, $judge_closed); } elseif ($registration_open == 1) { $page_info2 .= sprintf("<p>You can create your account today through <strong class=\"text-success\">%s</strong>.</p><p>Judges and stewards may register now through <strong class=\"text-success\">%s</strong>.</p>", $reg_closed, $judge_closed); } elseif ($registration_open == 2 && $judge_window_open == 1) { $page_info2 .= sprintf("Account registrations for <strong class=\"text-success\">judges and stewards only</strong> accepted through %s.", $judge_closed); } else { $page_info2 .= "<p>Account registration is <strong class=\"text-danger\">closed</strong>.</p>"; } } else { $page_info2 .= sprintf("<p class=\"lead\">Welcome %s! <small>View your account information <a href=\"%s\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"See your account details and list of entries\">here</a>.</small></p>", $_SESSION['brewerFirstName'], build_public_url("list", "default", "default", "default", $sef, $base_url)); } // Entry Window $header1_3 .= "<a name=\"entry_window\"></a><h2>Entry Registration</h2>"; if ($entry_window_open == 0) { $page_info3 .= sprintf("<p>You will be able to add your entries to the system beginning <strong class=\"text-success\">%s</strong> through <strong class=\"text-success\">%s</strong>.</p>", $entry_open, $entry_closed); } elseif ($entry_window_open == 1) { $page_info3 .= sprintf("<p>You can add your entries to the system today through <strong class=\"text-success\">%s</strong>.</p>", $entry_closed); } else { $page_info3 .= "<p>Entry registration is <strong class=\"text-danger\">closed</strong>.</p>"; } if ($entry_window_open < 2) { // Entry Fees $header1_4 .= "<a name=\"entry\"></a><h2>Entry Fees</h2>"; $page_info4 .= sprintf("<p>%s%s (%s) per entry. ", $currency_symbol, number_format($_SESSION['contestEntryFee'], 2), $currency_code); if ($_SESSION['contestEntryFeeDiscount'] == "Y") {
$option .= " SELECTED"; } } $option .= ">" . $row_contact['contactFirstName'] . " " . $row_contact['contactLastName'] . " – " . $row_contact['contactPosition'] . "</option>"; } while ($row_contact = mysql_fetch_assoc($contact)); mysql_free_result($contacts); $primary_page_info = "<p>Use the form below to contact a competition official. All fields with a star are <span class=\"text-warning\">required</span>.</p>"; $label1 = "Contact"; $label2 = "Your Name"; $label3 = "Your Email"; $label4 = "Subject"; $label5 = "Message"; $label6 = "Are You Human?"; $required_label = "Required"; if ($msg == "1") { $message1 = "<p>Additionally, a copy has been sent to the email address you provided.</p><p>Would you like to send <a href='" . build_public_url("contact", "default", "default", "default", $sef, $base_url) . "'>another message</a>?</p>"; echo $message1; } if ($msg != "1") { echo $primary_page_info; ?> <form data-toggle="validator" role="form" class="form-horizontal" name="form1" method="post" action="<?php echo $base_url; ?> includes/process.inc.php?dbTable=<?php echo $contacts_db_table; ?> &action=email" onSubmit="return CheckRequiredFields()"> <div class="form-group"> <label for="" class="col-lg-2 col-md-3 col-sm-4 col-xs-12 control-label"><?php echo $label1;
echo $page_info1; if ($go == "default") { ?> <form class="form-horizontal" name="judgeChoice" id="judgeChoice"> <div class="form-group"> <label for="judge_steward" class="col-lg-5 col-md-6 col-sm-6 col-xs-12 control-label">Are You Registering as a Judge or Steward?</label> <div class="col-lg-7 col-md-6 col-sm-6 col-xs-12"> <div class="input-group"> <select class="selectpicker" name="judge_steward" id="judge_steward" onchange="jumpMenu('self',this,0)" data-width="auto"> <option value=""></option> <option value="<?php echo build_public_url("register", "judge", "default", "default", $sef, $base_url); ?> ">Yes</option> <option value="<?php echo build_public_url("register", "entrant", "default", "default", $sef, $base_url); ?> ">No</option> </select> </div> </div> </div><!-- Form Group --> <input type="hidden" name="relocate" value="<?php echo relocate($_SERVER['HTTP_REFERER'], "default", $msg, $id); ?> "> </form> <?php } else { ?>
} } $_SESSION['recipes'] = $recipes; $message .= " " . $_FILES['userfile']['name'] . " has been uploaded and the brew has been added to your list of entries."; } /* //header(sprintf("Location: %s", stripslashes($updateGoTo))); //print "<script>window.location.href='index.php?section=".$section."&action=importXML&msg=1'</script>"; */ } elseif (!$_FILES['userfile']) { $message .= ""; } else { $message .= "Invalid file specified."; } if (!empty($message)) { $message7 .= "<p><strong class=\"text-danger\">" . $message . "</strong> However, it has not been confirmed. To confirm your entry, access your <a href=\"" . build_public_url("list", "default", "default", "default", $sef, $base_url) . "#entries\">entries list</a> for further instructions.</p><p>Or, you can add upload another BeerXML entry below.</p>"; } } } } if (!$php_OK) { $message9 .= "<div class='error'>Your server's version of PHP does not support the BeerXML import feature.</div><p>PHP version 5.x or higher is required — this server is running PHP version " . $php_version . ".</p>"; } // -------------------------------------------------------------- // Display // -------------------------------------------------------------- echo $message1; echo $message2; echo $message3; echo $message4; echo $message5;
$discount_fee_message .= "<span class='icon'><img src='" . $base_url . "images/star.png' border='0' alt='Discount!' title='Discount!' /></span>"; if (NHC) { $discount_fee_message .= "As an AHA member, your entry fees are "; } else { $discount_fee_message .= "Your fees have been discounted to "; } $discount_fee_message .= $currency_symbol . $_SESSION['contestEntryFeePasswordNum'] . " per entry."; $discount_fee_message .= "</span>"; // Build Pay Fees Message/Link $pay_fees_message .= "<span class='adminSubNav'>"; if ($totalRows_log == 0) { $pay_fees_message .= ""; } elseif ($total_not_paid > 0 && $_SESSION['contestEntryFee'] > 0) { if ($totalRows_log_confirmed == $totalRows_log) { $pay_fees_message .= "<span class='icon'><img src='" . $base_url . "images/exclamation.png' border='0' alt='Entry Fees' title='Entry Fees' /></span>"; $pay_fees_message .= "<a href='" . build_public_url("pay", "default", "default", $sef, $base_url) . "'>Pay Your Fees</a>"; if ($_SESSION['prefsPayToPrint'] == "Y") { $pay_fees_message .= " <em>** Please note that you will not be able to print your bottle labels and entry forms until you pay for your entries.</em>"; } } else { $pay_fees_message .= "<span class='icon'><img src='" . $base_url . "images/exclamation.png' border='0' alt='Entry Fees' title='Entry Fees' /></span>"; $pay_fees_message .= "<span style='color: red;'>You have unconfirmed entries."; if ($_SESSION['prefsPayToPrint'] == "Y") { $pay_fees_message .= " <strong>You cannot pay for your entries until ALL are confirmed.</strong>"; } $pay_fees_message .= "</span> Confirm each entry by clicking its corresponding “Edit” link."; } } else { $pay_fees_message .= "<span class='icon'><img src='" . $base_url . "images/thumb_up.png' border='0' alt='Entry Fees' title='Entry Fees' /></span>"; $pay_fees_message .= "Your fees have been paid. Thank you."; }
?> <!-- Drop-off window closed --> <div class="alert alert-danger alert-dismissible hidden-print fade in" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <span class="fa fa-exclamation-circle"></span> <strong>Entry Shipping is Closed.</strong> Entry bottles are no longer accepted at the shipping location. </div> <?php } ?> <?php if (($registration_open == 0 || $registration_open == "2") && !$ua && $section != "admin" && !isset($_SESSION['loginUsername']) && $section != "register" && $judge_window_open == "1" && $msg == "default") { ?> <!-- Account and entry registration closed, but Judge/steward registration open --> <div class="alert alert-info alert-dismissible hidden-print fade in" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <span class="fa fa-info-circle"></span> <strong>Judge/Steward Registration is Still Open.</strong> Judges and stewards <a class="alert-link" href="<?php echo build_public_url("register", "judge", "default", "default", $sef, $base_url); ?> ">register here</a>. Judge and steward registration will close <?php echo $judge_closed; ?> . </div> <?php } ?> <?php } // end if (!$logged_in)
} $header1_2 .= "</h2>"; $page_info .= sprintf("<h2>Winning Entries</h2><p>Winners will be posted on or after %s.</p>", getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_check['judgingDate'] + $delay, $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time")); } else { if (!isset($_SESSION['loginUsername'])) { $page_info .= "<p>You only need to register your information once and can return to this site to enter more brews or edit the brews you've entered."; if ($_SESSION['prefsPaypal'] == "Y") { $page_info .= " You can even pay your entry fees online if you wish."; } $page_info .= "</p>"; } if ($_SESSION['prefsSponsors'] == "Y" && $totalRows_sponsors > 0) { $header1_1 .= "<h2>Sponsors</h2>"; $page_info1 .= sprintf("<p>%s is proud to have the following ", $_SESSION['contestHost']); if ($_SESSION['prefsSponsorLogos'] == "Y") { $page_info1 .= sprintf("<a href='%s'>sponsors</a>", build_public_url("sponsors", "default", "default", $sef, $base_url)); } else { $page_info1 .= "sponsors"; } $page_info1 .= sprintf(" for the %s.", $_SESSION['contestName']); // Build Sponsor Display if ($_SESSION['prefsSponsorLogos'] == "Y") { $sponsors_endRow = 0; $sponsors_columns = 6; // number of columns $sponsors_hloopRow1 = 0; // first row flag $page_info1 .= "<table>"; $page_info1 .= "<tr>"; do { if ($sponsors_endRow == 0 && $sponsors_hloopRow1++ != 0) {
// Build My Entries Link $link_user_entries = build_public_url("list", "default", "default", "default", $sef, $base_url) . "#entries"; // Build Edit My Info link if ($_SESSION['brewerID'] != "") { $edit_user_info_link = build_public_url("brewer", "account", "edit", $_SESSION['brewerID'], $sef, $base_url); } /* $edit_user_info_link = $base_url."index.php?"; if ($_SESSION['brewerID'] != "") $edit_user_info_link .= "section=brewer&action=edit&id=".$_SESSION['brewerID']; else $edit_user_info_link .= "action=add&section=brewer&go=judge"; */ // Build Change My Email Address link $edit_user_email_link = build_public_url("user", "account", "username", $_SESSION['user_id'], $sef, $base_url); //$edit_user_email_link = $base_url."index.php?section=user&action=username&id=".$_SESSION['brewerID']; // Build Change My Email Address link $edit_user_password_link = build_public_url("user", "account", "password", $_SESSION['user_id'], $sef, $base_url); //$edit_user_password_link = $base_url."index.php?section=user&action=password&id=".$_SESSION['brewerID']; // Build Add Entry Link $add_entry_link = ""; $add_entry_link .= $base_url; if ($_SESSION['userLevel'] <= "1") { $add_entry_link .= "index.php?section=brew&go=entries&action=add&filter=admin"; } else { $add_entry_link .= "index.php?section=brew&action=add"; } // Build Add Entry BeerXML Link $add_entry_beerxml_link = "index.php?section=beerxml"; } if ($logged_in && $admin_user && $go != "error_page") { ?> <!-- Admin Push Menu -->
} if ($total_entry_fees > 0 && $total_entry_fees == $total_paid_entry_fees) { $page_info6 .= "<span class=\"fa fa-thumbs-o-up\"></span> Your fees have been paid. Thank you!</p>"; } if ($total_entry_fees == 0) { $page_info6 .= "<p>You have not logged any entries yet.</p>"; } if ($_SESSION['prefsPayToPrint'] == "Y" && $unconfirmed > 0) { $warning1 .= "<div class=\"alert alert-danger\"><span class=\"fa fa-exclamation-circle\"></span> <strong>You cannot pay for your entries because one or more of your entries is unconfirmed.</strong> Click “My Account” above to review your unconfirmed entries.</div>"; } // -------------------------------------------------------------- // Display // -------------------------------------------------------------- if ($total_entry_fees > 0) { if ($_SESSION['prefsPayToPrint'] == "N" && $totalRows_log - $totalRows_log_confirmed > 0) { $warning2 .= "<div class=\"alert alert-warning\"><span class=\"fa fa-exclamation-triangle\"> <strong>You have unconfirmed entries that are <em>not</em> reflected in your fee totals below.</strong> Please go to <a class=\"alert-link\" href=\"" . build_public_url("list", "default", "default", "default", $sef, $base_url) . "#entries\">your entry list</a> to confirm all your entry data. Unconfirmed entries may be deleted from the system without warning.</div>"; } echo $warning1; echo $warning2; echo $primary_page_info; echo $header1_7; echo $page_info7; echo $header1_1; echo $page_info1; echo $header1_2; echo $page_info2; echo $header1_3; echo $page_info3; echo $header2_4; echo $page_info4; //echo $header2_5;
etc., etc., etc. * ---------------- END Rebuild Info --------------------- */ $primary_page_info = ""; $header1_1 = ""; $page_info1 = ""; $header1_2 = ""; $page_info2 = ""; $print_page_link = "<p><span class='icon'><img src='" . $base_url . "images/printer.png' border='0' alt='Print' title='Print' /></span><a id='modal_window_link' class='data' href='" . $base_url . "output/print.php?section=" . $section . "&action=print' title='Print'>Print This Page</a></p>"; $competition_logo = "<img src='" . $base_url . "user_images/" . $_SESSION['contestLogo'] . "' width='" . $_SESSION['prefsCompLogoSize'] . "' style='float:right; padding: 5px 0 5px 5px' alt='Competition Logo' title='Competition Logo' />"; $header1_1 .= "<h2>Judging and Stewarding</h2>"; if ($judge_window_open > 0 && !isset($_SESSION['loginUsername'])) { $page_info1 .= sprintf("<p>If you <em>have</em> registered, <a href='%s'>log in</a> and then choose <em>Edit My Info</em> to indicate that you are willing to judge or steward.</p>", build_public_url("login", "default", "default", $sef, $base_url)); $page_info1 .= sprintf("<p>If you <em>have not</em> registered and are willing to be a judge or steward, <a href='%s'>please register</a>.</p>", build_public_url("register", "judge", "default", $sef, $base_url)); } elseif ($judge_window_open > 0 && isset($_SESSION['loginUsername'])) { $page_info1 .= sprintf("<p>Since you have already registered, you can <a href='%s'>check your info</a> to see whether you have indicated that you are willing to judge and/or steward.</p>", build_public_url("list", "default", "default", $sef, $base_url)); } else { $page_info1 .= sprintf("<p>If you are willing to judge or steward, please return to register on or after %s.</p>", getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestJudgeOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time")); } if (!empty($row_contest_info['contestVolunteers'])) { $header1_2 .= "<h2>Other Volunteer Info</h2>"; $page_info2 .= $row_contest_info['contestVolunteers']; } // -------------------------------------------------------------- // Display // -------------------------------------------------------------- if ($action != "print" && $msg != "default") { echo $msg_output; } if ($_SESSION['contestLogo'] != "" && file_exists($_SERVER['DOCUMENT_ROOT'] . $sub_directory . '/user_images/' . $_SESSION['contestLogo']) && (judging_date_return() > 0 || NHC)) { echo $competition_logo;
$page_info300 .= "</p>"; $page_info300 .= "</div>"; $page_info300 .= "</div>"; // Drop-off Dates and Location $header1_500 .= "<div class=\"panel " . $shipping_panel_display . "\">"; $header1_500 .= "<div class=\"panel-heading\">"; $header1_500 .= "<h4 class=\"panel-title\">Entry Shipping is"; if ($shipping_window_open == 1) { $header1_500 .= " Open"; } else { $header1_500 .= " Closed"; } $header1_500 .= "</h4>"; $header1_500 .= "</div>"; $page_info500 .= "<div class=\"panel-body\">"; $page_info500 .= sprintf("Entry bottles accepted at the <a href=\"%s#shipping\">shipping location</a> %s through %s.", build_public_url("entry", "default", "default", "default", $sef, $base_url), $shipping_open_sidebar, $shipping_closed_sidebar); $page_info500 .= "</p>"; $page_info500 .= "</div>"; $page_info500 .= "</div>"; // Judging Location(s) include DB . 'judging_locations.db.php'; $header1_400 .= "<div class=\"panel panel-info\">"; $header1_400 .= "<div class=\"panel-heading\">"; if ($totalRows_judging > 1) { $header1_400 .= "<h4 class=\"panel-title\">Judging Locations/Dates</h4>"; } else { $header1_400 .= "<h4 class=\"panel-title\">Judging Location/Date</h4>"; } $header1_400 .= "</div>"; $page_info400 .= "<div class=\"panel-body\">"; if ($totalRows_judging == 0) {
echo recaptcha_get_html($publickey, null, true); ?> </td> <td class="data"><span class="required"><?php echo $required_label; ?> </span></td> <td class="data"> </td> </tr> <tr> <td> </td> <td colspan="2" class="data"><input name="submit" type="submit" class="button" value="Send Message"></td> </tr> <tr> <td> </td> <td colspan="2" class="data"><input name="clear" type="button" class="button" value="Clear Values" onClick="window.location.href='<?php echo build_public_url("contact", "default", "default", $sef, $base_url); ?> '"></td> </tr> </table> <input type="hidden" name="relocate" value="<?php echo relocate($_SERVER['HTTP_REFERER'], "default", $msg, $id); ?> "> </form> <?php } // end if ($msg != 1); } // end if ($_SESSION['prefsContact'] == "Y")