return TRUE; } } if (NHC) { function certificate_type($score) { if ($score >= 25 && $score <= 29.9) { $return = "Bronze Certificate"; } elseif ($score >= 30 && $score <= 37.9) { $return = "Silver Certificate"; } elseif ($score >= 38 && $score <= 50) { $return = "Gold Certificate"; } return $return; } } $judging_date = judging_date_return(); $delay = $_SESSION['prefsWinnerDelay'] * 3600; $total_not_paid = total_not_paid_brewer($_SESSION['user_id']); // Display messages if conditions are right if ($action != "print" && $msg != "default") { echo $msg_output; } // Add the help link for the page if ($action != "print") { echo $help_link; } // Call the brewer's info information include SECTIONS . 'brewer_info.sec.php'; // Call the brewer's entry information include SECTIONS . 'brewer_entries.sec.php';
echo $competition_logo; } if ($action != "print") { echo $print_page_link; } if (isset($_SESSION['loginUsername']) && $_SESSION['userLevel'] <= "1" && $section == "admin") { if ($totalRows_dropoff == 0) { echo $message1; } if ($totalRows_judging == 0) { echo $message2; } } echo $primary_page_info; //echo $totalRowsSponsors; if (judging_date_return() == 0 && $registration_open == "2") { if ($_SESSION['prefsDisplayWinners'] == "Y") { if (judging_winner_display($delay)) { if (NHC && $prefix == "final_" || !NHC) { echo $header1_1; include SECTIONS . 'bos.sec.php'; } echo $header1_2; if ($_SESSION['prefsWinnerMethod'] == "1") { include SECTIONS . 'winners_category.sec.php'; } elseif ($_SESSION['prefsWinnerMethod'] == "2") { include SECTIONS . 'winners_subcategory.sec.php'; } else { include SECTIONS . 'winners.sec.php'; } } else {
if ($row_sponsors['sponsorText'] != "") { $page_info1 .= "<p>" . $row_sponsors['sponsorText'] . "</p>"; } $page_info1 .= "</td>"; $sponsors_endRow++; if ($sponsors_endRow >= $sponsors_columns) { $page_info1 .= "</tr>"; $sponsors_endRow = 0; } } while ($row_sponsors = mysql_fetch_assoc($sponsors)); if ($sponsors_endRow != 0) { while ($sponsors_endRow < $sponsors_columns) { $page_info1 .= "<td> </td>"; $sponsors_endRow++; } } $page_info1 .= "</tr>"; $page_info1 .= "</table>"; // -------------------------------------------------------------- // 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 $page_info1;
$entry_output .= $edit_link; } if (pay_to_print($_SESSION['prefsPayToPrint'], $row_log['brewPaid'])) { $entry_output .= $print_forms_link; } if (NHC && $prefix == "final_") { $entry_output .= $print_recipe_link; } if ($row_log['brewPaid'] != 1) { $entry_output .= $delete_link; } $entry_output .= "</td>"; } // Display the edit link for NHC final round after judging has taken place // Necessary to gather recipe data for first place winners in the final round if (judging_date_return() == 0 && $action != "print") { $entry_output .= "<td class='dataList' nowrap='nowrap'>"; if ($registration_open == 2 && $entry_window_open == 1 && (NHC && $prefix == "final_")) { $entry_output .= $edit_link; } $entry_output .= "</td>"; } $entry_output .= "</tr>"; } while ($row_log = mysql_fetch_assoc($log)); // -------------------------------------------------------------- // Display // -------------------------------------------------------------- echo $header1_1; if ($fx && $action != "print") { echo $firefox_warning; }
if ($total_entry_fees > 0 && $total_entry_fees == $total_paid_entry_fees) { $page_info6 .= "<span class='icon'><img src='" . $base_url . "images/thumb_up.png' border='0' alt='Entry Fees' title='Entry Fees'></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='error'>You cannot pay for your entries because one or more of your entries is unconfirmed.</div><p>Click “My Info and Entries” above to review your unconfirmed entries.</p>"; } // -------------------------------------------------------------- // 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;
<div id="content-inner"> <?php if (TESTING) { echo "User Agent: " . $_SERVER['HTTP_USER_AGENT'] . "<br>"; if ($fx) { echo "FIREFOX Detected<br>"; } echo "Time Zone Name: " . $tz . "<br>"; echo "Time Zone: " . date('T') . "<br>"; echo "Time Zone Offset: " . $timezone_offset . "<br>"; echo "Time Zone Preferences: " . $_SESSION['prefsTimeZone'] . "<br>"; echo "<p>"; echo "Section: " . $section . "<br>"; echo "Entry Window Status: " . $entry_window_open . "<br>"; echo "Registration Status: " . $registration_open . "<br>"; echo "Judging Status: " . judging_date_return() . "<br>"; echo "Remaining Entries: " . $remaining_entries . "<br>"; echo "</p>"; echo "<p>Session Variables: "; print_r($_SESSION); echo "</p>"; } if ($section != "admin") { ?> <div id="header"> <div id="header-inner"><h1><?php echo $header_output; ?> </h1></div> </div> <?php
?> <?php if ($dropoff_window_open == 2 && !$ua && $section != "admin" && judging_date_return() > 0 && $msg == "default") { ?> <!-- 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 Drop-Off is Closed.</strong> Entry bottles are no longer accepted at drop-off locations. </div> <?php } ?> <?php if ($shipping_window_open == 2 && !$ua && $section != "admin" && judging_date_return() > 0 && $msg == "default") { ?> <!-- 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">
?> ">Pay My Fees</a><?php } else { ?> Pay My Fees<?php } ?> </li><?php } ?> <?php } else { ?> <?php if ($_SESSION['contestEntryFee'] > 0 && judging_date_return() > 0 && $totalRows_log > 0) { ?> <li><?php if ($section != "pay") { ?> <a href="<?php echo build_public_url("pay", "default", "default", $sef, $base_url); ?> ">Pay My Fees</a><?php } else { ?> Pay My Fees<?php } ?> </li><?php }