'Hour', 'D' => 'Day', 'W' => 'Week'); function Results () { global $Period_Text; $Interval=get_ctrl('RES-INTERVAL'); $Period=get_ctrl('RES-PERIOD'); echo 'Results will be posted within '.$Interval.' '.$Period_Text[$Period].($Interval > 1 ? 's' : '').' after the competition
'."\n"; } function Notify () { global $Comp_Stage; global $Comp_Handle; global $Period_Text; // Web if ($Comp_Handle[0] == 'Y' && get_ctrl('SHEETS') != 'Y') { $Interval=get_ctrl('SS-W-INTERVAL'); $Period=get_ctrl('SS-W-PERIOD'); echo 'Score Sheets will be available for download within '.$Interval.' '.$Period_Text[$Period].($Interval > 1 ? 's' : '').' after the competition
'."\n"; } // Email if ($Comp_Handle[1] == 'Y') { $Interval=get_ctrl('SS-E-INTERVAL'); $Period=get_ctrl('SS-E-PERIOD'); echo 'Score Sheets will be sent out by email to the registered address within '.$Interval.' '.$Period_Text[$Period].($Interval > 1 ? 's' : '').' after the competition
'."\n"; } // Mail if ($Comp_Handle[2] == 'Y') { $Interval=get_ctrl('SS-M-INTERVAL'); $Period=get_ctrl('SS-M-PERIOD'); echo 'Score Sheets will be sent out by mail to the registered address within '.$Interval.' '.$Period_Text[$Period].($Interval > 1 ? 's' : '').' after the competition
'."\n"; } // Pickup if ($Comp_Handle[3] == 'Y') { echo 'Scores Sheets '.($Comp_Stage == 'OPEN' ? 'will be ' : '').'available for pickup
'."\n"; } } ?>
'."\n"; echo '
'."\n"; if ($logo_club) { echo ''."\n"; img_cell('CLUB'); echo ''."\n"; } if ($logo_comp) { echo ''."\n"; img_cell('COMP'); echo ''."\n"; } echo '
'; echo ''."\n"; } echo ''."\n"; echo 'Welcome to the

'."\n"; if (!empty($Comp_Annual)) { echo $Comp_Ordinal.' Annual
'."\n"; } echo $Comp_Title; if (!empty($Comp_Year)) { echo '
'."\n".$Comp_Year; } echo '

'."\n"; if (!empty($Comp_Club)) { echo 'Presented by

'."\n"; echo $Comp_Club."\n"; } echo '
'; $logo_bjcp=img_avail('BJCP'); $logo_aha=img_avail('AHA'); if ($logo_bjcp or $logo_aha) { echo ''."\n"; echo ''."\n"; if ($logo_bjcp) { echo ''."\n"; img_cell('BJCP'); echo ''."\n"; } if ($logo_aha) { echo ''."\n"; img_cell('AHA'); echo ''."\n"; } echo '
'; echo ''."\n"; } ?> '."\n"; echo 'Competition Results'."\n"; echo ''."\n"; } else { echo 'Results for the '.$Comp_Title.' are not yet available
'."\n"; Results (); echo '
'."\n"; } } ?>
'."\n"; echo ''.$Comp_Title.'
'."\n"; echo 'have not been completed.

'; echo 'Please check back again.'; } else { if (!empty($Comp_Date)) { echo ''.$Comp_Title.' is on '.$Comp_Date.'
'."\n"; } echo '
Registration Starts on '.$Comp_Start.'
'."\n"; if (!empty($Comp_Details)) { echo 'Click here for Details about the Event
'."\n"; } } break; case 'OPEN': echo 'Registration for '.$Comp_Title.' is now Open
'."\n"; $Comp_End=get_ctrl('END'); if (!empty($Comp_End)) { echo 'Registration closes on '.$Comp_End.'
'."\n"; } if (!empty($Comp_Details)) { echo 'Click here for Details about the Event
'."\n"; } echo '
'."\n"; echo 'Click on New Brewer to start the registration process
'."\n"; echo 'You can Login to '.(NoneLeft('E') ? '' : 'add more entries or ').'check on your existing entries
'."\n"; echo 'You can sign up as a Judge or Steward without having any entries

'."\n"; $Limit=FALSE; if (get_ctrl('LIMITE') == 'Y') { $LimitEN=get_ctrl('LIMITEN'); $LimitEV=get_ctrl('LIMITEV'); $LimitEP=get_ctrl('LIMITEP'); $EntryCnt=($LimitEP == 'Y' ? cntPaid() : cntEntry()); $EntryLeft=$LimitEV - $EntryCnt; echo 'The competition is limited to '.$LimitEV.($LimitEP == 'Y' ? ' Paid' : '').' Entries'.($LimitEN == 'C' && $EntryLeft > 20 ? ', '.$EntryLeft.' remaining' : '')."\n"; if ($EntryLeft < 1) { echo '
Entry Limit has been Reached'."\n"; } else { if ($LimitEN != 'N') { if ($EntryLeft < 21) { echo '
WARNING — only '.$EntryLeft.' entr'.($EntryLeft > 1 ? 'ies' : 'y').' remaining.'."\n"; } elseif ($EntryLeft < $LimitEV / 10) { echo '
WARNING — the number of remaining entries is getting low.'."\n"; } } } echo '
'."\n"; $Limit=TRUE; } if (get_ctrl('LIMITB') == 'Y') { $LimitBN=get_ctrl('LIMITBN'); $LimitBV=get_ctrl('LIMITBV'); $query='select count(*) from brewer where brewer_type="I" or brewer_type="G"'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); $BrewerLeft=$LimitBV - $cnt_row[0]; echo 'The competition is limited to '.$LimitBV.' Brewers'.($LimitBN == 'C' && $BrewerLeft > 10 ? ', '.$BrewerLeft.' remaining' : '')."\n"; if ($BrewerLeft < 1) { echo '
Brewer Limit has been Reached'."\n"; } else { if ($LimitBN != 'N') { if ($BrewerLeft < 11) { echo '
WARNING — only '.$BrewerLeft.' brewer'.($BrewerLeft > 1 ? 's' : '').' remaining.'."\n"; } elseif ($BrewerLeft < $LimitBV / 10) { echo '
WARNING — the number of remaining brewers is getting low.'."\n"; } } } echo '
'."\n"; $Limit=TRUE; } if ($Limit) { echo '
'."\n"; } Results (); Notify (); break; case 'CLOSED': echo 'Registration for '.$Comp_Title.' has Closed
'."\n"; if (!empty($Comp_Date)) { echo '
'.$Comp_Title.' is on '.$Comp_Date.'

'."\n"; } if (!empty($Comp_Details)) { echo 'Click here for Details about the Event
'."\n"; } echo 'You can Login to look at your entries
'."\n"; echo '
'."\n"; Results (); Notify (); break; case 'POST': if (get_ctrl('SHEETS') != 'Y') { echo 'You can Login to look at your '.(get_ctrl('SCORES') == 'Y' ? 'scores' : 'entries').'
'."\n"; } else { echo 'Score Sheets are now availalble. Please Login to access.
'."\n"; } echo '
'."\n"; Notify (); break; case 'MAINT': echo 'The site is currently unavailable due to system maintenance'."\n"; echo '

'."\n"; echo 'Please check back again soon'."\n"; break; } ?>
'."\n"; echo 'Any questions or comments, please contact the '.contact_link ()."\n"; ?>
Login'."\n"; } ?>