do { $s[] = $row_stewards['uid']; } while ($row_stewards = mysql_fetch_assoc($stewards)); do { $st[] = $row_staff['uid']; } while ($row_staff = mysql_fetch_assoc($staff)); do { $o[] = $row_organizer['uid']; } while ($row_organizer = mysql_fetch_assoc($organizer)); $filename = str_replace(" ", "_", $_SESSION['contestName']) . "_BJCP_Points_Report.xml"; $output = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; $output .= "<OrgReport>\n"; $output .= "\t<CompData>\n"; $output .= "\t\t<CompID>" . $_SESSION['contestID'] . "</CompID>\n"; $output .= "\t\t<CompName>" . $_SESSION['contestName'] . "</CompName>\n"; $output .= "\t\t<CompDate>" . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "date-no-gmt") . "</CompDate>\n"; $output .= "\t\t<CompEntries>" . $total_entries . "</CompEntries>\n"; $output .= "\t\t<CompDays>" . $total_days . "</CompDays>\n"; $output .= "\t\t<CompSessions>" . total_sessions() . "</CompSessions>\n"; $output .= "\t\t<CompFlights>" . total_flights() . "</CompFlights>\n"; $output .= "\t</CompData>\n"; $output .= "\t<BJCPpoints>\n"; //$st_running_total[] = 0; // Judges with a properly formatted BJCP IDs in the system foreach (array_unique($j) as $uid) { $judge_info = explode("^", brewer_info($uid)); $judge_points = judge_points($uid, $judge_info['5']); if ($judge_points > 0) { $bos_judge = bos_points($uid); if ($bos_judge) { $assignment = "Judge+BOS";
$header1_400 .= "<h4 class=\"panel-title\">Judging Location/Date</h4>"; } $header1_400 .= "</div>"; $page_info400 .= "<div class=\"panel-body\">"; if ($totalRows_judging == 0) { $page_info400 .= "<p>Competition judging dates are yet to be determined. Please check back later.</p>"; } else { do { $page_info400 .= "<p>"; if ($row_judging['judgingLocation'] != "") { $page_info400 .= "<a href=\"" . $base_url . "output/maps.output.php?section=driving&id=" . str_replace(' ', '+', $row_judging['judgingLocation']) . "\" target=\"_blank\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Map to " . $row_judging['judgingLocName'] . " at " . $row_judging['judgingLocation'] . "\">" . $row_judging['judgingLocName'] . "</a> <span class=\"fa fa-map-marker\"></span>"; } else { $page_info400 .= $row_judging['judgingLocName']; } if ($row_judging['judgingDate'] != "") { $page_info400 .= "<br />" . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time"); } $page_info400 .= "</p>"; } while ($row_judging = mysql_fetch_assoc($judging)); } $page_info400 .= "</div>"; $page_info400 .= "</div>"; // -------------------------------------------------------------- // Display // -------------------------------------------------------------- if ($_SESSION['contestLogo'] != "" && file_exists(USER_IMAGES . $_SESSION['contestLogo'])) { echo $competition_logo; } echo $page_info; if ($_SESSION['prefsUseMods'] == "Y") { include INCLUDES . 'mods_sidebar_top.inc.php';
if ($section == "brew") { include SECTIONS . 'brew.sec.php'; } if ($section == "pay") { include SECTIONS . 'pay.sec.php'; } if ($section == "list") { include SECTIONS . 'list.sec.php'; } } ?> </div> </div> <div id="footer"> <div id="footer-inner">Printed <?php echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], time(), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); ?> .</div> </div> </div> <!-- <script src="<?php echo $base_url; ?> js_includes/jQuery.print.js"></script> <script type='text/javascript'> $(function() { $("#printable").find('.print').on('click', function() { $.print("#printable"); }); });
<button class="btn btn-default dropdown-toggle" type="button" id="cardsMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">For Table...<span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="cardsMenu1"> <?php echo table_choose("table-cards", "judging_tables", $action, $filter, $view, "output/print.output.php", "thickbox"); ?> </ul> </div> <div class="dropdown bcoem-admin-dashboard-select"> <button class="btn btn-default dropdown-toggle" type="button" id="cardsMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">For Location...<span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="cardsMenu2"> <?php do { for ($round = 1; $round <= $row_judging2['judgingRounds']; $round++) { $location_date = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging2['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time-no-gmt"); ?> <li class="small"><a id="modal_window_link" href="<?php echo $base_url; ?> output/print.output.php?section=table-cards&go=judging_locations&location=<?php echo $row_judging2['id']; ?> &round=<?php echo $round; ?> " data-toggle="tooltip" data-placement="top" title="Print Table Cards for <?php echo $row_judging2['judgingLocName'] . " - " . $location_date . ", Round " . $round; ?> "><?php echo $row_judging2['judgingLocName'] . " - " . $location_date . ", Round " . $round;
function table_assignments($uid, $method, $time_zone, $date_format, $time_format, $method2 = 0) { // Gather and output the judging or stewarding assignments for a user require CONFIG . 'config.php'; mysql_select_db($database, $brewing); $output = ""; $query_table_assignments = sprintf("SELECT assignTable FROM %s WHERE bid='%s' AND assignment='%s'", $prefix . "judging_assignments", $uid, $method); $table_assignments = mysql_query($query_table_assignments, $brewing) or die(mysql_error()); $row_table_assignments = mysql_fetch_assoc($table_assignments); $totalRows_table_assignments = mysql_num_rows($table_assignments); if ($totalRows_table_assignments > 0) { do { $table_info = explode("^", get_table_info(1, "basic", $row_table_assignments['assignTable'], "default", "default")); $location = explode("^", get_table_info($table_info[2], "location", $row_table_assignments['assignTable'], "default", "default")); //$output .= "\t<table class='dataTableCompact' style='margin-left: -5px'>\n"; $output .= "\t\t<tr>\n"; if ($method2 == 0) { $output .= "\t\t\t<td class='dataList'>" . $location[2] . "</td>\n"; $output .= "\t\t\t<td class='dataList'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n"; $output .= "\t\t\t<td class='dataList'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n"; } else { $output .= "\t\t\t<td class='dataList bdr1B'>" . $location[2] . "</td>\n"; $output .= "\t\t\t<td class='dataList bdr1B'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n"; $output .= "\t\t\t<td class='dataList bdr1B'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n"; } $output .= "\t\t</tr>\n"; //$output .= "\t</table>\n"; } while ($row_table_assignments = mysql_fetch_assoc($table_assignments)); } return $output; }
<h4>Table <?php echo $row_tables['tableNumber'] . " <small>– " . $row_tables['tableName']; ?> <a href="<?php echo $base_url; ?> index.php?section=admin&go=judging_flights&filter=define&action=edit&id=<?php echo $flight_table; ?> " data-toggle="tooltip" data-placement="top" title="Define/Edit the <?php echo $row_tables['tableName']; ?> Flights"><span class="fa fa-pencil-square-o"></span></a></small></h4> <p><strong>Location:</strong> <?php echo $row_table_location['judgingLocName'] . " – " . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_table_location['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); ?> (<?php echo $row_table_location['judgingRounds']; ?> rounds <a href="<?php echo $base_url; ?> index.php?section=admin&go=judging&action=edit&id=<?php echo $row_table_location['id']; ?> " title="Edit the <?php echo $row_table_location['judgingLocName']; ?> location">defined for this location</a>).</p> <?php
<td class="data"> <select name="judge_loc" id="judge_loc" onchange="jumpMenu('self',this,0)"> <option value=""></option> <?php do { ?> <option value="index.php?section=admin&go=styles&filter=judging&bid=<?php echo $row_judging['id']; ?> "><?php echo $row_judging['judgingLocName'] . " ("; echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time") . ")"; ?> </option> <?php } while ($row_judging = mysql_fetch_assoc($judging)); ?> </select> </td> </tr> </table>
include 'judge_closed.sec.php'; include DB . 'winners.db.php'; $style_types_active = styles_active(1); if ($style_types_active > 0) { $header1_1 .= "<h2>Best of Show Winners"; if ($section == "past_winners") { $header1_1 .= ": " . $trimmed; } $header1_1 .= "</h2>"; } $header1_2 .= "<h2>Winning Entries"; if ($section == "past_winners") { $header1_2 .= ": " . $trimmed; } $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";
function date_created($uid, $date_format, $time_format, $timezone, $dbTable) { include CONFIG . 'config.php'; mysql_select_db($database, $brewing); if ($dbTable != "default") { $dbTable = $dbTable; } else { $dbTable = $prefix . "users"; } $result1 = mysql_query(sprintf("SHOW COLUMNS FROM %s LIKE 'userCreated'", $dbTable)); $exists = mysql_num_rows($result1) ? TRUE : FALSE; if ($exists) { $query_user = sprintf("SELECT userCreated FROM %s WHERE id = '%s'", $dbTable, $uid); $user = mysql_query($query_user, $brewing) or die(mysql_error()); $row_user = mysql_fetch_assoc($user); $totalRows_user = mysql_num_rows($user); if ($totalRows_user == 1 && $row_user['userCreated'] != "") { $result = getTimeZoneDateTime($timezone, strtotime($row_user['userCreated']), $date_format, $time_format, "short", "date-time-no-gmt"); } else { $result = " "; } } else { $result = " "; } return $result; }
$reg_panel_display = "panel-default"; } if ($entry_window_open == 0) { $entry_panel_display = "panel-default"; } elseif ($entry_window_open == 1) { $entry_panel_display = "panel-success"; } elseif ($entry_window_open == 2) { $entry_panel_display = "panel-danger"; } else { $entry_panel_display = "panel-default"; } // Competition Status Panel $header1_100 .= "<div class=\"panel panel-info\">"; $header1_100 .= "<div class=\"panel-heading\">"; $header1_100 .= "<h4 class=\"panel-title\">Competition Status<span class=\"fa fa-bar-chart text-info pull-right\"></span></h4>"; $header1_100 .= "<span class=\"small text-muted\">As of " . getTimeZoneDateTime($_SESSION['prefsTimeZone'], time(), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time") . "</span>"; $header1_100 .= "</div>"; $page_info100 .= "<div class=\"panel-body\">"; $page_info100 .= "<div class=\"bcoem-sidebar-panel\">"; $page_info100 .= "<strong class=\"text-info\">Confirmed Entries</strong>"; $page_info100 .= "<span class=\"pull-right\"><a href=\"" . $base_url . "index.php?section=admin&go=entries\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"View all entries\">" . $totalRows_log_confirmed . "</a>"; if (!empty($row_limits['prefsEntryLimit'])) { $page_info100 .= " of " . $row_limits['prefsEntryLimit']; } $page_info100 .= "</span>"; $page_info100 .= "</div>"; $page_info100 .= "<div class=\"bcoem-sidebar-panel\">"; $page_info100 .= "<strong class=\"text-info\">Unconfirmed Entries</strong>"; $page_info100 .= "<span class=\"pull-right\">" . $entries_unconfirmed . "</span>"; $page_info100 .= "</div>"; $page_info100 .= "<div class=\"bcoem-sidebar-panel\">";
$page_info1 .= sprintf("<p>There are <strong>%s</strong> registered entries and <strong>%s</strong> registered participants, judges, and stewards.</p>", get_entry_count('none'), get_participant_count('default')); $page_info1 .= sprintf("<p>There are <strong>%s</strong> received and processed entries (this number will update as entries are picked up from drop-off locations and organized for judging).</p>", get_entry_count('received')); } $header1_2 .= "<h2>Judging Date"; if ($totalRows_judging > 1) { $header1_2 .= "s"; } $header1_2 .= "</h2>"; if ($totalRows_judging == 0) { $page_info2 .= "<p>Competition judging dates are yet to be determined. Please check back later.</p>"; } else { do { $page_info2 .= "<p>"; $page_info2 .= "<strong>" . $row_judging['judgingLocName'] . "</strong>"; if ($row_judging['judgingLocation'] != "") { $page_info2 .= "<br />" . $row_judging['judgingLocation']; } if ($row_judging['judgingLocation'] != "" && $action != "print") { $page_info2 .= " <span class='icon'><a id='modal_window_link' href='" . $base_url . "output/maps.php?section=map&id=" . str_replace(' ', '+', $row_judging['judgingLocation']) . "' title='Map to " . $row_judging['judgingLocName'] . "'><img src='" . $base_url . "images/map.png' border='0' alt='Map " . $row_judging['judgingLocName'] . "' title='Map " . $row_judging['judgingLocName'] . "' /></a></span>"; $page_info2 .= "<span class='icon'><a href='" . $base_url . "output/maps.php?section=driving&id=" . str_replace(' ', '+', $row_judging['judgingLocation']) . "' title='Driving Directions to " . $row_judging['judgingLocName'] . "' target='_blank'><img src='" . $base_url . "images/car.png' border='0' alt='Driving Directions to " . $row_judging['judgingLocName'] . "' title='Driving Direcitons to " . $row_judging['judgingLocName'] . "' /></a></span>"; } if ($row_judging['judgingDate'] != "") { $page_info2 .= "<br />" . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time") . "<br />"; } $page_info2 .= "</p>"; } while ($row_judging = mysql_fetch_assoc($judging)); } echo $header1_1; echo $page_info1; echo $header1_2; echo $page_info2;
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 .= "<tr>\n"; $steward_info .= "<td>"; $steward_info .= yes_no(substr($value, 0, 1), $base_url); $steward_info .= "</td>\n"; $steward_info .= "<td>"; $steward_info .= $judging_location_info[1]; $steward_info .= "</td>\n"; $steward_info .= "<td>"; $steward_info .= getTimeZoneDateTime($_SESSION['prefsTimeZone'], $judging_location_info[2], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time"); $steward_info .= "</tr>"; } } 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);
<?php session_start(); require '../paths.php'; require CONFIG . 'bootstrap.php'; require LIB . 'output.lib.php'; include CLASSES . 'tiny_but_strong/tbs_class_php5.php'; include DB . 'output_entry.db.php'; $entry_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestEntryDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-no-gmt"); if (NHC && $prefix == "final_") { $contest_name = date('Y') . " NHC Final Round"; } else { $contest_name = $contest_info['contestName']; } // Check access restrictions if ($brewer_info['brewerEmail'] != $_SESSION['loginUsername'] && $row_logged_in_user['userLevel'] > 1) { echo "<html><head><title>Error</title></head><body>"; echo "<p>You do not have sufficient access priveliges to view this page.</p>"; echo "</body>"; exit; } if (!pay_to_print($_SESSION['prefsPayToPrint'], $brewing_info['brewPaid']) && $go != "recipe") { echo "<html><head><title>Error</title></head><body>"; echo "<p>You must pay for your entry to print its entry form and bottle labels.</p>"; echo "</body>"; exit; } if ($_SESSION['prefsStyleSet'] == "BJCP2008") { $category_end = 23; } else { $category_end = 34;
$header1_13 .= "<a name='awards'></a><h2>Awards</h2>"; $page_info13 .= $row_contest_info['contestAwards']; } if ($_SESSION['contestAwardsLocName'] != "") { $header1_14 .= "<a name='ceremony'></a><h2>Award Ceremony</h2>"; $page_info14 .= "<p>"; $page_info14 .= sprintf("<strong>%s</strong>", $_SESSION['contestAwardsLocName']); if ($_SESSION['contestAwardsLocation'] != "") { $page_info14 .= sprintf("<br />%s", $_SESSION['contestAwardsLocation']); } if ($_SESSION['contestAwardsLocation'] != "" && $action != "print") { $page_info14 .= " <span class='icon'><a id='modal_window_link' href='" . $base_url . "output/maps.php?section=map&id=" . str_replace(' ', '+', $_SESSION['contestAwardsLocation']) . "' title='Map to " . $_SESSION['contestAwardsLocName'] . "'><img src='" . $base_url . "images/map.png' border='0' alt='Map " . $_SESSION['contestAwardsLocName'] . "' title='Map " . $_SESSION['contestAwardsLocName'] . "' /></a></span>"; $page_info14 .= "<span class='icon'><a href='" . $base_url . "output/maps.php?section=driving&id=" . str_replace(' ', '+', $_SESSION['contestAwardsLocation']) . "' target='_blank' title='Map to " . $_SESSION['contestAwardsLocName'] . "'><img src='" . $base_url . "images/car.png' border='0' alt='Map " . $_SESSION['contestAwardsLocName'] . "' title='Map " . $_SESSION['contestAwardsLocName'] . "' /></a></span>"; } if ($_SESSION['contestAwardsLocTime'] != "") { $page_info14 .= sprintf("<br />%s", getTimeZoneDateTime($_SESSION['prefsTimeZone'], $_SESSION['contestAwardsLocTime'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time")); } $page_info14 .= "</p>"; } // Circuit Qualification if ($row_contest_info['contestCircuit'] != "") { $header1_15 .= "<a name='circuit'></a><h2>Circuit Qualification</h2>"; $page_info15 .= $row_contest_info['contestCircuit']; } // -------------------------------------------------------------- // 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)) {
function table_assignments($uid, $method, $time_zone, $date_format, $time_format, $method2 = 0) { // Gather and output the judging or stewarding assignments for a user require CONFIG . 'config.php'; mysql_select_db($database, $brewing); $output = ""; $output_extend = ""; $query_table_assignments = sprintf("SELECT assignTable FROM %s WHERE bid='%s' AND assignment='%s'", $prefix . "judging_assignments", $uid, $method); $table_assignments = mysql_query($query_table_assignments, $brewing) or die(mysql_error()); $row_table_assignments = mysql_fetch_assoc($table_assignments); $totalRows_table_assignments = mysql_num_rows($table_assignments); if ($totalRows_table_assignments > 0) { do { $table_info = explode("^", get_table_info(1, "basic", $row_table_assignments['assignTable'], "default", "default")); $location = explode("^", get_table_info($table_info[2], "location", $row_table_assignments['assignTable'], "default", "default")); //$output .= "\t<table class='dataTableCompact' style='margin-left: -5px'>\n"; if ($method2 == 0) { $output .= "\t\t<tr>\n"; $output .= "\t\t\t<td class='dataList'>" . $location[2] . "</td>\n"; $output .= "\t\t\t<td class='dataList'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n"; $output .= "\t\t\t<td class='dataList'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n"; $output .= "\t\t</tr>\n"; } elseif ($method2 == "1") { if ($method == "J") { $output .= "<a href='" . $base_url . "index.php?section=admin&action=assign&go=judging_tables&filter=judges&id=" . $table_info[3] . "' title='Assign/Unassign Judges to " . $table_info[0] . " - " . $table_info[1] . "'>" . $table_info[0] . "</a>, "; } if ($method == "S") { $output .= "<a href='" . $base_url . "index.php?section=admin&action=assign&go=judging_tables&filter=stewards&id=" . $table_info[3] . "' title='Assign/Unassign Stewards to " . $table_info[0] . " - " . $table_info[1] . "'>" . $table_info[0] . "</a>, "; } } else { $output .= "\t\t\t<td class='dataList bdr1B'>" . $location[2] . "</td>\n"; $output .= "\t\t\t<td class='dataList bdr1B'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n"; $output .= "\t\t\t<td class='dataList bdr1B'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n"; $output .= "\t\t</tr>\n"; } //$output .= "\t</table>\n"; } while ($row_table_assignments = mysql_fetch_assoc($table_assignments)); } if ($totalRows_table_assignments == 0 && $method2 == "1") { $output_extend = "No assignment(s)"; } return $output . $output_extend; }
} if ($_SESSION['contestBOSAward'] != "") { $output .= "<h2>Best of Show</h2>\n"; } $output .= "<p>" . $_SESSION['contestBOSAward'] . "</p>\n"; if ($_SESSION['contestAwards'] != "") { $output .= "<h2>Awards</h2>\n"; $output .= "<p>" . $_SESSION['contestAwards'] . "</p>\n"; } if ($_SESSION['contestAwardsLocName'] != "") { $output .= "<h3>Award Ceremony</h3>\n"; $output .= "<p>"; if ($_SESSION['contestAwardsLocDate'] != "") { $output .= "<strong>" . $_SESSION['contestAwardsLocName'] . "</strong><br />"; } $output .= getTimeZoneDateTime($_SESSION['prefsTimeZone'], $_SESSION['contestAwardsLocTime'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); if ($_SESSION['contestAwardsLocation'] != "") { $output .= "<br />" . $_SESSION['contestAwardsLocation']; } $output .= "</p>\n"; } if ($action != "bbcode") { $output .= "</body>\n"; $output .= "</html>\n"; } if ($action == "bbcode") { $html = array("<p>", "</p>", "<strong>", "</strong>", "<ul>", "</ul>", "<ol>", "</ol>", "<li>", "</li>", "<h1>", "</h1>", "<h2>", "</h2>", "<h3>", "</h3>", "<h4>", "</h4>", "<body>", "</body>", "<html>", "</html>", "<br />", "<em>", "</em>", "&", "—"); $bbcode = array("[left]", "[/left]\r\n\r", "[b]", "[/b]", "[list type=disc]\r", "[/list]\r\n\r", "[list type=upper-roman]\r", "[/list]\r\n\r", "[li]", "[/li]\r", "[size=xx-large]", "[/size]\r\n\r", "[size=x-large]", "[/size]\r\n\r", "[size=large]", "[/size]\r\n\r", "[b]", "[/b]", "", "", "", "", "\n", "[i]", "[/i]", "&", "-"); $output = str_replace($html, $bbcode, $output); } echo $output;
<td class="data"> <select name="tableLocation" id="tableLocation"> <?php do { ?> <option value="<?php echo $row_judging1['id']; ?> " <?php if ($row_tables_edit['tableLocation'] == $row_judging1['id']) { echo "selected"; } ?> ><?php echo $row_judging1['judgingLocName'] . " ("; echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging1['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time-no-gmt") . ")"; ?> </option> <?php } while ($row_judging1 = mysql_fetch_assoc($judging1)); ?> </select> </td> </tr> <tr> <td class="dataLabel">Style(s):</td> <td class="data"> <?php if ($row['count'] > 0) { ?> <table class="dataTable" id="sortable">
} } else { echo " "; } ?> <br /><?php echo "<a href='mailto:" . $brewer_info[6] . "'>" . $brewer_info[6] . "</a>"; ?> </td> <td class="dataList "><?php echo $brewer_info[8]; ?> </td> <td class="dataList "><?php if ($row_log['brewUpdated'] != "") { echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], strtotime($row_log['brewUpdated']), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time-no-gmt"); } else { echo " "; } ?> </td> <td nowrap="nowrap" class="dataList "><?php if ($action != "print" && $dbTable == "default") { ?> <input id="brewPaid" name="brewPaid<?php echo $row_log['id']; ?> " type="checkbox" value="1" <?php if ($row_log['brewPaid'] == "1") { echo "checked"; } else {
<span class="help-block">Are you willing to serve as a steward in this competition?</span> </div> </div><!-- ./Form Group --> <?php if ($totalRows_judging > 1) { ?> <div class="form-group"><!-- Form Group NOT REQUIRED Select --> <label for="brewerStewardLocation" class="col-lg-2 col-md-3 col-sm-4 col-xs-12 control-label">Stewarding Location Availability</label> <div class="col-lg-10 col-md-9 col-sm-8 col-xs-12"> <!-- Input Here --> <?php do { ?> <p class="bcoem-form-info"><?php echo $row_stewarding['judgingLocName'] . " ("; echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_stewarding['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time") . ")"; ?> </p> <select class="selectpicker" name="brewerStewardLocation[]" id="brewerStewardLocation" data-width="auto"> <option value="<?php echo "N-" . $row_stewarding['id']; ?> " <?php $a = explode(",", $row_brewer['brewerStewardLocation']); $b = "N-" . $row_stewarding['id']; foreach ($a as $value) { if ($value == $b) { echo "SELECTED"; } } ?>
<table> <tr> <td class="dataLabel">Awards Date:</td> <td class="data"><input id="contestAwardsLocDate" name="contestAwardsLocDate" type="text" class="submit" size="20" value="<?php if ($section != "step4") { echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_info['contestAwardsLocTime'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "date"); } ?> "></td> <td class="data"><em>Provide even if the date of judging is the same.</em></td> </tr> <tr> <td class="dataLabel">Awards Start Time:</td> <td class="data"><input id="contestAwardsLocTime" name="contestAwardsLocTime" type="text" class="submit" size="10" value="<?php if ($section != "step4") { echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_info['contestAwardsLocTime'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "time"); } ?> "></td> <td class="data"><em>The approximate time the awards ceremony will begin.</em></td> </tr> <tr> <td class="dataLabel">Awards Location Name:</td> <td class="data"><input name="contestAwardsLocName" type="text" class="submit" size="30" value="<?php if ($section != "step4") { echo $row_contest_info['contestAwardsLocName']; } ?> "></td> <td class="data"><em>Provide the name of the awards location.</em></td> </tr>
<?php $registration_open = open_or_closed(strtotime("now"), $row_contest_dates['contestRegistrationOpen'], $row_contest_dates['contestRegistrationDeadline']); $entry_window_open = open_or_closed(strtotime("now"), $row_contest_dates['contestEntryOpen'], $row_contest_dates['contestEntryDeadline']); $judge_window_open = open_or_closed(strtotime("now"), $row_contest_dates['contestJudgeOpen'], $row_contest_dates['contestJudgeDeadline']); $reg_open = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestRegistrationOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $reg_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestRegistrationDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $entry_open = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestEntryOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $entry_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestEntryDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $judge_open = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestJudgeOpen'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $judge_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestJudgeDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"); $currency = explode("^", currency_info($_SESSION['prefsCurrency'], 1)); $currency_symbol = $currency[0]; $currency_code = $currency[1]; // DataTables Default Values $output_datatables_bPaginate = "true"; $output_datatables_sPaginationType = "full_numbers"; $output_datatables_bLengthChange = "true"; $output_datatables_iDisplayLength = round($_SESSION['prefsRecordPaging']); if ($action == "print") { $output_datatables_sDom = "it"; } else { $output_datatables_sDom = "irftip"; } $output_datatables_bStateSave = "false"; $output_datatables_bProcessing = "false"; $color = "#eeeeee"; $color1 = "#e0e0e0"; $color2 = "#eeeeee";
$header_vol_1_1 = ""; $page_info_vol_1 = ""; $header_vol_1_2 = ""; $page_info_vol_2 = ""; $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; }
function total_days() { include CONFIG . 'config.php'; mysql_select_db($database, $brewing); $query_sessions = sprintf("SELECT judgingDate FROM %s", $prefix . "judging_locations"); $sessions = mysql_query($query_sessions, $brewing) or die(mysql_error()); $row_sessions = mysql_fetch_assoc($sessions); do { $a[] = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_sessions['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "date-no-gmt"); } while ($row_sessions = mysql_fetch_assoc($sessions)); $output = array_unique($a); $output = count($output); return $output; }
$comp_entry_limit = TRUE; } else { $comp_entry_limit = FALSE; } if (!empty($row_limits['prefsEntryLimit'])) { $comp_entry_limit_near = $row_limits['prefsEntryLimit'] * 0.9; } else { $comp_entry_limit_near = ""; } if (!empty($row_limits['prefsEntryLimit']) && ($total_entries > $comp_entry_limit_near && $total_entries < $row_limits['prefsEntryLimit'])) { $comp_entry_limit_near_warning = TRUE; } else { $comp_entry_limit_near_warning = FALSE; } $current_date = getTimeZoneDateTime($_SESSION['prefsTimeZone'], time(), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "date"); $current_time = getTimeZoneDateTime($_SESSION['prefsTimeZone'], time(), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "time"); // User constants if (isset($_SESSION['loginUsername'])) { $logged_in = TRUE; $logged_in_name = $_SESSION['loginUsername']; if ($_SESSION['userLevel'] <= "1") { if ($section == "admin") { $link_admin = "#"; } else { $link_admin = ""; } $admin_user = TRUE; } else { $admin_user = FALSE; } } else {