From a5cfe470f61b17c57a8a220149ed3a38847c3c58 Mon Sep 17 00:00:00 2001 From: geoffhumphrey Date: Thu, 18 Feb 2021 12:02:02 -0700 Subject: [PATCH] Fix Table Assignment Display --- lib/common.lib.php | 6 +- sections/brewer_info.sec.php | 3 +- sections/brewer_info_eval.sec.php | 665 ------------------------------ 3 files changed, 3 insertions(+), 671 deletions(-) delete mode 100644 sections/brewer_info_eval.sec.php diff --git a/lib/common.lib.php b/lib/common.lib.php index 3b6b8980..069f67c5 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2965,8 +2965,6 @@ function table_assignments($uid,$method,$time_zone,$date_format,$time_format,$me $output = ""; } - - $query_table_assignments = sprintf("SELECT assignTable,assignRoles,assignFlight,assignRound FROM %s WHERE bid='%s' AND assignment='%s'",$prefix."judging_assignments",$uid,$method); $table_assignments = mysqli_query($connection,$query_table_assignments) or die (mysqli_error($connection)); $row_table_assignments = mysqli_fetch_assoc($table_assignments); @@ -2974,8 +2972,6 @@ function table_assignments($uid,$method,$time_zone,$date_format,$time_format,$me require(LANG.'language.lang.php'); - /* - if ($totalRows_table_assignments > 0) { do { @@ -3033,7 +3029,7 @@ function table_assignments($uid,$method,$time_zone,$date_format,$time_format,$me //if (($totalRows_table_assignments == 0) && ($method2 == "1")) $output_extend = "No assignment(s)"; if ($method2 == 2) $output = array_unique($output); return $output; - */ + } function available_at_location($location,$role,$round) { diff --git a/sections/brewer_info.sec.php b/sections/brewer_info.sec.php index 992c5ca7..5006c196 100644 --- a/sections/brewer_info.sec.php +++ b/sections/brewer_info.sec.php @@ -518,12 +518,13 @@ $account_display .= ""; } } + if (!empty($table_assign_judge)) $account_display .= sprintf("

%s %s.

%s

",$brewer_info_008,$label_judge,$brewer_info_009); elseif ((in_array("Steward",$assignment_array)) && (!empty($assignment))) $account_display .= sprintf("%s %s.",$label_steward,$brewer_info_010); $account_display .= ""; $account_display .= ""; - if ((!$judge_available_not_assigned) && (!empty($table_assign_judge))) { + if (!empty($table_assign_judge)) { $account_display .= "
"; $account_display .= sprintf("
%s
",$label_assignment); $account_display .= "
"; diff --git a/sections/brewer_info_eval.sec.php b/sections/brewer_info_eval.sec.php deleted file mode 100644 index d786d090..00000000 --- a/sections/brewer_info_eval.sec.php +++ /dev/null @@ -1,665 +0,0 @@ - - header on the page - $header2_X = an

subheader on the page - - $page_infoX = the bulk of the information on the page. - - $labelX = the various labels in a table or on a form - $table_headX = all table headers (column names) - $table_bodyX = table body info - $messageX = various messages to display - - $print_page_link = "

PrintPrint This Page

"; - -Declare all variables empty at the top of the script. Add on later... - $primary_page_info = ""; - $header1_1 = ""; - $page_info1 = ""; - $header1_2 = ""; - $page_info2 = ""; - - $table_head1 = ""; - $account_display = ""; - - etc., etc., etc. - - * ---------------- END Rebuild Info --------------------- */ - - -include (DB.'judging_locations.db.php'); - -$primary_page_info = ""; -$header1_1 = ""; -$page_info1 = ""; -$table_head1 = ""; -$account_display = ""; -$table_head2 = ""; -$table_body2 = ""; -$table_head3 = ""; -$table_body3 = ""; -$brewer_assignment = ""; -if ($_SESSION['prefsProEdition'] == 1) $display_left_cols = "col-lg-4 col-md-4 col-sm-5 col-xs-6"; -else $display_left_cols = "col-lg-3 col-md-4 col-sm-5 col-xs-6"; -if ($_SESSION['prefsProEdition'] == 1) $display_right_cols = "col-lg-8 col-md-8 col-sm-7 col-xs-6"; -else $display_right_cols = "col-lg-9 col-md-8 col-sm-7 col-xs-6"; - -// Page specific variables -$user_edit_links = ""; -$name = ""; -$email = ""; -$phone = ""; -$discount = ""; -$aha_number = ""; -$judgeLikes = ""; -$exploder = ""; -$judgeLikesDisplay = ""; -$judgeLikesModals = ""; -$judgeDislikesDisplay = ""; -$judgeDislikesModals = ""; - -$show_judge_steward_fields = TRUE; - -if (($_SESSION['prefsProEdition'] == 1) && (isset($row_brewer['brewerBreweryName']))) { - $show_judge_steward_fields = FALSE; - $label_contact = $label_contact." "; - $label_organization = $label_organization." "; -} - -else { - $label_contact = ""; - $label_organization = ""; -} - -// Build useful variables -$judge_available_not_assigned = FALSE; -$steward_available_not_assigned = FALSE; -$assignment = ""; - -if (($_SESSION['brewerDiscount'] == "Y") && ($_SESSION['contestEntryFeePasswordNum'] != "")) $entry_discount = TRUE; else $entry_discount = FALSE; -$brewer_assignment .= brewer_assignment($_SESSION['user_id'],"1","blah",$dbTable,$filter); -$assignment_array = str_replace(", ",",",$brewer_assignment); -$assignment_array = explode(",", $assignment_array); - -if ((in_array("Judge",$assignment_array)) && ($_SESSION['brewerJudge'] == "Y") && ($totalRows_judging3 > 1)) { - $assignment = "judge"; - $judge_available_not_assigned = TRUE; -} - -if ((in_array("Steward",$assignment_array)) && ($_SESSION['brewerSteward'] == "Y") && ($totalRows_judging3 > 1)) { - $assignment = "steward"; - $steward_available_not_assigned = TRUE; -} - - -// Build header -$header1_1 .= sprintf("

%s

",$label_account_info); -// Build primary page info (thank you message) -$primary_page_info .= sprintf("

%s %s, %s. %s %s.

",$brewer_info_000,$_SESSION['contestName'],$_SESSION['brewerFirstName'],$brewer_info_001,getTimeZoneDateTime($_SESSION['prefsTimeZone'], strtotime($_SESSION['userCreated']), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time-no-gmt")); - -if (($totalRows_log > 0) && ($show_entries)) { - $primary_page_info .= "

"; - $primary_page_info .= sprintf("%s",$brewer_info_002); - if (!$disable_pay) { - if (!$comp_paid_entry_limit) $primary_page_info .= " ".$brewer_info_011." ".$brewer_info_003.".

"; - else $primary_page_info .= sprintf(".

%s: %s %s

",ucfirst(strtolower($label_please_note)),$pay_text_034,$link_contacts,$pay_text_001); - } - else $primary_page_info .= "

"; -} - -$user_edit_links .= "
"; -$user_edit_links .= sprintf(" %s",$label_edit_account); -if (!NHC) $user_edit_links .= sprintf(" %s",$label_change_email); -$user_edit_links .= sprintf(" %s",$label_change_password); -$user_edit_links .= "
"; -$user_edit_links .= "
"; -if (($show_entries) && ($add_entry_link_show)) { - $user_edit_links .= sprintf(" %s",$label_add_entry); - if ((!NHC) && ($_SESSION['prefsHideRecipe'] == "N")) $user_edit_links .= sprintf(" %s",$label_add_beerXML); -} -$user_edit_links .= "
"; - -// Build User Info -$name .= $_SESSION['brewerFirstName']." ".$_SESSION['brewerLastName']; -$email .= $_SESSION['brewerEmail']; -if (!empty($_SESSION['brewerAddress'])) $address = $_SESSION['brewerAddress']; else $address = $label_none_entered; -if (!empty($_SESSION['brewerCity'])) $city = $_SESSION['brewerCity']; else $city = $label_none_entered; -if (!empty($_SESSION['brewerState'])) $state = $_SESSION['brewerState']; else $state = $label_none_entered; -if (!empty($_SESSION['brewerZip'])) $zip = $_SESSION['brewerZip']; else $zip = $label_none_entered; -if (!empty($_SESSION['brewerCountry'])) $country = $_SESSION['brewerCountry']; else $country = $label_none_entered; -if ($_SESSION['brewerCountry'] == "United States") $us_phone = TRUE; else $us_phone = FALSE; -if (!empty($_SESSION['brewerPhone1'])) { - if ($us_phone) $phone .= format_phone_us($_SESSION['brewerPhone1'])." (1)"; - else $phone .= $_SESSION['brewerPhone1']." (1)"; -} -if (!empty($_SESSION['brewerPhone2'])) { - if ($us_phone) $phone .= "
".format_phone_us($_SESSION['brewerPhone2'])." (2)"; - else $phone .= "
".$_SESSION['brewerPhone2']." (2)"; -} -if (!empty($_SESSION['brewerClubs'])) $club = $_SESSION['brewerClubs']; else $club = $label_none_entered; -$discount .= $label_yes. " (".$currency_symbol.$_SESSION['contestEntryFeePasswordNum']." ".$brewer_info_004.")"; -if (!empty($_SESSION['brewerAHA'])) { - if ($_SESSION['brewerAHA'] < "999999994") $aha_number .= sprintf("%09s",$_SESSION['brewerAHA']); - elseif ($_SESSION['brewerAHA'] >= "999999994") $aha_number .= "Pending"; -} else $aha_number .= $label_none_entered; - -if ($_SESSION['brewerProAm'] == 1) $pro_am = $label_yes; -else $pro_am = $label_no; - -// Build Judge Info Display - - $judge_info = ""; - $a = explode(",",$_SESSION['brewerJudgeLocation']); - arsort($a); - foreach ($a as $value) { - if ($value != "0-0") { - $b = substr($value, 2); - - $judging_location_info = judging_location_info($b); - $judging_location_info = explode("^",$judging_location_info); - - if ($judging_location_info[0] > 0) { - $judge_info .= "\n"; - $judge_info .= ""; - $judge_info .= yes_no(substr($value, 0, 1),$base_url); - $judge_info .= "\n"; - $judge_info .= ""; - $judge_info .= $judging_location_info[1]; - $judge_info .= "\n"; - $judge_info .= ""; - $judge_info .= getTimeZoneDateTime($_SESSION['prefsTimeZone'], $judging_location_info[2], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time"); - $judge_info .= "\n"; - $judge_info .= ""; - } - } - else $judge_info .= ""; - } - -// Build Steward Info Display -$steward_info = ""; - $a = explode(",",$_SESSION['brewerStewardLocation']); - arsort($a); - foreach ($a as $value) { - if ($value != "0-0") { - $b = substr($value, 2); - - $judging_location_info = judging_location_info($b); - $judging_location_info = explode("^",$judging_location_info); - - if ($judging_location_info[0] > 0) { - $steward_info .= "\n"; - $steward_info .= ""; - $steward_info .= yes_no(substr($value, 0, 1),$base_url); - $steward_info .= "\n"; - $steward_info .= ""; - $steward_info .= $judging_location_info[1]; - $steward_info .= "\n"; - $steward_info .= ""; - $steward_info .= getTimeZoneDateTime($_SESSION['prefsTimeZone'], $judging_location_info[2], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time"); - $steward_info .= ""; - } - } - else $steward_info .= ""; - } - -if ($action == "print") $table_assign_judge = table_assignments($_SESSION['user_id'],"J",$_SESSION['prefsTimeZone'],$_SESSION['prefsDateFormat'],$_SESSION['prefsTimeFormat'],1); -else $table_assign_judge = table_assignments($_SESSION['user_id'],"J",$_SESSION['prefsTimeZone'],$_SESSION['prefsDateFormat'],$_SESSION['prefsTimeFormat'],0); - -if ($action == "print") $table_assign_steward = table_assignments($_SESSION['user_id'],"S",$_SESSION['prefsTimeZone'],$_SESSION['prefsDateFormat'],$_SESSION['prefsTimeFormat'],1); -else $table_assign_steward = table_assignments($_SESSION['user_id'],"S",$_SESSION['prefsTimeZone'],$_SESSION['prefsDateFormat'],$_SESSION['prefsTimeFormat'],0); - - if ($_SESSION['brewerJudgeLikes'] != "") { - $judgeLikes = style_convert($_SESSION['brewerJudgeLikes'],4,$base_url); - $exploder = explode("|",$judgeLikes); - $judgeLikesDisplay = $exploder[0]; - $judgeLikesModals = $exploder[1]; - - } - else $judgeLikesDisplay = "N/A"; - - if ($_SESSION['brewerJudgeDislikes'] != "") { - $judgeDislikes = style_convert($_SESSION['brewerJudgeDislikes'],4,$base_url); - $exploder = explode("|",$judgeDislikes); - $judgeDislikesDisplay = $exploder[0]; - $judgeDislikesModals = $exploder[1]; - - } - else $judgeDislikesDisplay = "N/A"; - -// Build User Info display -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_contact.$label_name); -$account_display .= "
".$name."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_contact.$label_email); -$account_display .= "
".$email."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_contact.$label_phone); -$account_display .= "
".$phone."
"; -$account_display .= "
"; - -if (($_SESSION['prefsProEdition'] == 1) && (!$show_judge_steward_fields)) { - - $account_display .= "
"; - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_organization.$label_name); - $account_display .= "
".$_SESSION['brewerBreweryName']."
"; - $account_display .= "
"; - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_organization.$label_ttb); - $account_display .= "
".$_SESSION['brewerBreweryTTB']."
"; - $account_display .= "
"; -} - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_organization.$label_address); -$account_display .= "
".$address."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_organization.$label_city); -$account_display .= "
".$city."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_organization.$label_state_province); -$account_display .= "
".$state."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_organization.$label_zip); -$account_display .= "
".$zip."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_organization.$label_country); -$account_display .= "
".$country."
"; -$account_display .= "
"; - -if (($_SESSION['prefsProEdition'] == 1) && (!$show_judge_steward_fields)) $account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_security_question); -$account_display .= "
".$_SESSION['userQuestion']."
"; -$account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_security_answer); -$account_display .= "
".$_SESSION['userQuestionAnswer']."
"; -$account_display .= "
"; - -if ($show_judge_steward_fields) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_aha_number); - $account_display .= sprintf("",$brewer_info_005); - $account_display .= "
"; - if ($_SESSION['prefsProEdition'] == 0) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_pro_am); - $account_display .= sprintf("
%s
",$pro_am); - $account_display .= "
"; - } -} - -if (($_SESSION['prefsProEdition'] == 1) && (!$show_judge_steward_fields)) $account_display .= "
"; - -$account_display .= "
"; -$account_display .= sprintf("
%s
",$label_drop_off); -$account_display .= "
".dropoff_location($_SESSION['brewerDropOff']); -if ($_SESSION['brewerDropOff'] == 0) $account_display .= sprintf("
%s",$brewer_info_006,$brewer_info_007); -$account_display .= "
"; -$account_display .= "
"; - -if ($show_judge_steward_fields) { - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_club); - $account_display .= "
".$club."
"; - $account_display .= "
"; - - if (($row_brewer['brewerJudgeNotes'] != "") && (($_SESSION['brewerJudge'] == "Y") || ($_SESSION['brewerSteward'] == "Y"))) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_org_notes); - $account_display .= "
"; - $account_display .= "".$row_brewer['brewerJudgeNotes'].""; - $account_display .= "
"; - $account_display .= "
"; - } - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_staff); - $account_display .= "
".yes_no($_SESSION['brewerStaff'],$base_url)."
"; - $account_display .= "
"; - -} - -if ($entry_discount) { - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_discount); - $account_display .= "
".$discount."
"; - $account_display .= "
"; - -} - -if ($show_judge_steward_fields) { - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_judge); - $account_display .= "
"; - if ((!empty($_SESSION['brewerJudge'])) && ($action != "print")) $account_display .= yes_no($_SESSION['brewerJudge'],$base_url); - else $account_display .= "None entered"; - $account_display .= "
"; - $account_display .= "
"; - - if (!empty($assignment)) { - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_assignment); - $account_display .= "
".ucwords($brewer_assignment)."
"; - $account_display .= "
"; - - } - - if ($_SESSION['brewerJudge'] == "Y") { - - $account_display .= "
"; - $account_display .= "
 
"; - $account_display .= sprintf("
%s %s %s A4
",$brewer_info_012, $label_letter, $brewer_info_011); - $account_display .= "
"; - - $bjcp_rank = explode(",",$row_brewer['brewerJudgeRank']); - $display_rank = bjcp_rank($bjcp_rank[0],2); - if (!empty($bjcp_rank[1])) $display_rank .= designations($row_brewer['brewerJudgeRank'],$bjcp_rank[0]); - - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_designations); - $account_display .= "
"; - if ($_SESSION['brewerJudgeRank'] != "") $account_display .= str_replace("
",", ",$display_rank); else $account_display .= "N/A"; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_judge_comps); - $account_display .= "
"; - $account_display .= $row_brewer['brewerJudgeExp']; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_bjcp_mead); - $account_display .= "
"; - if ($action == "print") $account_display .= yes_no($_SESSION['brewerJudgeMead'],$base_url,3); else $account_display .= yes_no($_SESSION['brewerJudgeMead'],$base_url); - $account_display .= "
"; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_bjcp_cider); - $account_display .= "
"; - if ($action == "print") $account_display .= yes_no($_SESSION['brewerJudgeCider'],$base_url,3); else $account_display .= yes_no($_SESSION['brewerJudgeCider'],$base_url); - $account_display .= "
"; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= sprintf("
Preferred
",$label_judge_preferred); - $account_display .= "
"; - $account_display .= $judgeLikesDisplay; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= "
"; - $account_display .= sprintf("
Non-Preferred
",$label_judge_non_preferred); - $account_display .= "
"; - $account_display .= $judgeDislikesDisplay; - $account_display .= "
"; - $account_display .= "
"; - - if (!empty($judge_info)) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_avail); - $account_display .= "
"; - if (($assignment == "judge") || (empty($assignment))) { - - if (empty($table_assign_judge)) { - - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= sprintf("",$label_yes,$label_no); - $account_display .= sprintf("",$label_location); - $account_display .= sprintf("",$label_date); - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= $judge_info; - $account_display .= ""; - $account_display .= "
%s/%s%s%s
"; - - } - - else $account_display .= ""; - } - if ((!empty($table_assign_judge)) && (!empty($assignment))) $account_display .= sprintf("

%s %s.

%s

",$brewer_info_008,$assignment,$brewer_info_009); - elseif ((in_array("Steward",$assignment_array)) && (!empty($assignment))) $account_display .= sprintf("%s %s.",$assignment,$brewer_info_010); - $account_display .= "
"; - $account_display .= "
"; - - if ((!$judge_available_not_assigned) && (!empty($table_assign_judge))) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_assignment); - $account_display .= "
"; - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= sprintf("",$label_location); - $account_display .= sprintf("",$label_date); - $account_display .= sprintf("",$label_table); - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= $table_assign_judge; - $account_display .= ""; - $account_display .= "
%s%s%s
"; - $account_display .= "
"; - $account_display .= "
"; - } // end if ((!$judge_available_not_assigned) && (!empty($table_assign_judge))) - - } // end if (!empty($judge_info)) - - } // end if ($_SESSION['brewerJudge'] == "Y") - - - $account_display .= "
"; - $account_display .= sprintf("
Steward
",$label_steward); - $account_display .= "
"; - if ((!empty($_SESSION['brewerSteward'])) && ($action != "print")) $account_display .= yes_no($_SESSION['brewerSteward'],$base_url); - else $account_display .= $label_none_entered; - $account_display .= "
"; - $account_display .= "
"; - - if ($_SESSION['brewerSteward'] == "Y") { - if (!empty($steward_info)) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_avail); - $account_display .= "
"; - if (($assignment == "steward") || (empty($assignment))) { - - if (empty($table_assign_steward)) { - - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= sprintf("",$label_yes,$label_no);; - $account_display .= sprintf("",$label_location); - $account_display .= sprintf("",$label_date); - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= $steward_info; - $account_display .= ""; - $account_display .= "
%s/%s%s%s
"; - - } - - else $account_display .= ""; - } - if ((!empty($table_assign_steward)) && (!empty($assignment))) $account_display .= sprintf("

You have already been assigned as a %s to a table.

If you wish to change your availabilty and/or withdraw your role, contact the competition organizer or judge coordinator.

",$assignment,build_public_url("contact","default","default","default",$sef,$base_url)); - elseif ((in_array("Judge",$assignment_array)) && (!empty($assignment))) $account_display .= sprintf("You have already been assigned as a %s.",$assignment); - $account_display .= "
"; - $account_display .= "
"; - - if ((!$steward_available_not_assigned) && (!empty($table_assign_steward))) { - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_assignment); - $account_display .= "
"; - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= sprintf("",$label_location); - $account_display .= sprintf("",$label_date); - $account_display .= sprintf("",$label_table); - $account_display .= ""; - $account_display .= ""; - $account_display .= ""; - $account_display .= $table_assign_steward; - $account_display .= ""; - $account_display .= "
%s%s%s
"; - $account_display .= "
"; - $account_display .= "
"; - } // end if ((!$judge_available_not_assigned) && (!empty($table_assign_judge))) - } - } - - if (($_SESSION['brewerJudge'] == "Y") || ($_SESSION['brewerSteward'] == "Y")) { - - // BJCP ID (show for either judge or steward) - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_bjcp_id); - $account_display .= "
"; - if ($_SESSION['brewerJudgeID'] > "0") $account_display .= $_SESSION['brewerJudgeID']; else $account_display .= "N/A"; - $account_display .= "
"; - $account_display .= "
"; - - $account_display .= "
"; - $account_display .= sprintf("
%s
",$label_waiver); - $account_display .= "
"; - if (!empty($row_brewer['brewerJudgeWaiver'])) $account_display .= yes_no($row_brewer['brewerJudgeWaiver'],$base_url); - else $account_display .= $label_none_entered; - $account_display .= "
"; - $account_display .= "
"; - } -} - - -// -------------------------------------------------------------- -// Display -// -------------------------------------------------------------- - -// Display primary page info and subhead - -$judgeLikesModals = explode("^",$judgeLikesModals); -$judgeDislikesModals = explode("^",$judgeDislikesModals); - -foreach ($judgeLikesModals as $judgeLikesModalDisplay) { - echo $judgeLikesModalDisplay; -} - -foreach ($judgeDislikesModals as $judgeDislikesModalDisplay) { - echo $judgeDislikesModalDisplay; -} - -echo $primary_page_info; -// Display User Edit Links -echo ""; -echo $header1_1; - -?> - - - - - - - - -