$scores = mysql_query($query_scores, $brewing) or die(mysql_error());
     $row_scores = mysql_fetch_assoc($scores);
     $totalRows_scores = mysql_num_rows($scores);
 }
 if ($go == "judging_scores_bos" || $go == "judging_tables" || $go == "output") {
     $query_style_types = "SELECT * FROM {$style_types_db_table}";
     $style_types = mysql_query($query_style_types, $brewing) or die(mysql_error());
     $row_style_types = mysql_fetch_assoc($style_types);
     if ($action == "default") {
         $query_style_types_2 = "SELECT * FROM {$style_types_db_table}";
         $style_types_2 = mysql_query($query_style_types_2, $brewing) or die(mysql_error());
         $row_style_types_2 = mysql_fetch_assoc($style_types_2);
     }
     // end if ($action == "default);
 }
 $total_fees = total_fees($_SESSION['contestEntryFee'], $_SESSION['contestEntryFee2'], $_SESSION['contestEntryFeeDiscount'], $_SESSION['contestEntryFeeDiscountNum'], $_SESSION['contestEntryCap'], $_SESSION['contestEntryFeePasswordNum'], $bid, $filter);
 $total_fees_paid = total_fees_paid($_SESSION['contestEntryFee'], $_SESSION['contestEntryFee2'], $_SESSION['contestEntryFeeDiscount'], $_SESSION['contestEntryFeeDiscountNum'], $_SESSION['contestEntryCap'], $_SESSION['contestEntryFeePasswordNum'], $bid, $filter);
 $total_fees_unpaid = $total_fees - $total_fees_paid;
 $total_nopay_received = total_nopay_received($go, "default");
 if ($go == "default" || $go == "participants") {
     $query_with_entries = sprintf("SELECT COUNT(DISTINCT brewBrewerId) as 'count' FROM %s", $prefix . "brewing");
     $with_entries = mysql_query($query_with_entries, $brewing) or die(mysql_error());
     $row_with_entries = mysql_fetch_assoc($with_entries);
 }
 if ($go == "special_best_data" || $go == "special_best") {
     $query_sbi = "SELECT * FROM {$special_best_info_db_table}";
     if ($action == "add" || $action == "edit") {
         $query_sbi .= " WHERE id='{$id}'";
     }
     $sbi = mysql_query($query_sbi, $brewing) or die(mysql_error());
     $row_sbi = mysql_fetch_assoc($sbi);
$add_entry_link = "";
$beer_xml_link = "";
$print_list_link = "";
$pay_fees_message = "";
$firefox_warning = "";
// Build Headers
$header1_1 .= "<a name='list'></a><h2>Entries</h2>";
$firefox_warning .= "<div class='warning'>There is a known issue with printing from the Firefox browser. To print all pages properly from Firefox, RIGHT CLICK on any print link and choose \"Open Link in New Tab.\" Then, use Firefox's native printing function (Edit > Print) to print your documents. Be aware that you should use the browser's File > Page Setup... function to specify portrait or landscape, margins, etc.</div>";
// Show Scores?
if (judging_date_return() == 0 && $entry_window_open == 2 && $registration_open == 2 && $judge_window_open == 2 && $_SESSION['prefsDisplayWinners'] == "Y" && judging_winner_display($delay)) {
    $show_scores = TRUE;
} else {
    $show_scores = FALSE;
}
// Get Entry Fees
$total_entry_fees = total_fees($_SESSION['contestEntryFee'], $_SESSION['contestEntryFee2'], $_SESSION['contestEntryFeeDiscount'], $_SESSION['contestEntryFeeDiscountNum'], $_SESSION['contestEntryCap'], $_SESSION['contestEntryFeePasswordNum'], $row_brewer['uid'], $filter);
$total_paid_entry_fees = total_fees_paid($_SESSION['contestEntryFee'], $_SESSION['contestEntryFee2'], $_SESSION['contestEntryFeeDiscount'], $_SESSION['contestEntryFeeDiscountNum'], $_SESSION['contestEntryCap'], $_SESSION['contestEntryFeePasswordNum'], $row_brewer['uid'], $filter);
$total_to_pay = $total_entry_fees - $total_paid_entry_fees;
// Build Warnings
$warnings = "";
if ($totalRows_log > 0 && $action != "print") {
    if (entries_unconfirmed($_SESSION['user_id']) > 0) {
        $warnings .= "<div class='error'>";
        $warnings .= "You have unconfirmed entries. For each highlighed entry below with a <span class='icon'><img src='" . $base_url . "images/exclamation.png'></span> icon, click \"Edit\" to review and confirm all your entry data. Unconfirmed entries will be deleted automatically after 24 hours.";
        if ($_SESSION['prefsPayToPrint'] == "Y") {
            $warnings .= " You CANNOT pay for your entries until all entries are confirmed.";
        }
        $warnings .= "</div>";
    }
    if (entries_no_special($_SESSION['user_id'])) {
        $warnings .= "<div class='warning'>You have entries that require you to define special ingredients. For each highlighted entry below with a <span class='icon'><img src='" . $base_url . "images/exclamation.png'></span> icon, click \"Edit\" to add your special ingredients. Entries without special ingredients in categories that require them will be deleted automatically after 24 hours.</div>";