0); ?>
= 2 && $TotEntry > 0)); } elseif ($brew_row['brewer_type'] == 'I') { $EntryList=($AdminAcct || $CntEntry > 0); } if ($AdminAcct) { links_bar('ABM'.($EntryList ? 'EP' : '').'L', $Key, $BrewerNo); } else { links_bar('BM'.($EntryList ? 'EP' : ''), $Key); } ?>

'."\n"; } else { echo safe($brew_row['fname']).' '.safe($brew_row['lname']).'
'."\n"; } ?>

'."\n"; if ($AdminAcct) { echo 'The '.$BrewerTitle.' has been assigned '.$BrewerShort.' Number '.$BrewerNo.'
'."\n"; } else { echo 'You'.($brew_row['brewer_type'] == 'G' ? 'r Group has' : ' have').' been assigned '.$BrewerShort.' Number '.$BrewerNo.'
'."\n"; } echo 'Using email address of - '.safe($brew_row['email'])."\n"; echo ''."\n"; } if (!$AdminAcct) { echo '

'."\n"; echo 'You will need your '.$BrewerShort.' Number of '.$BrewerNo.'
'."\n"; echo 'AND
'."\n"; echo 'the registered email address of
'."\n"; echo safe($brew_row['email']).'
'."\n"; echo 'to return to this site'."\n"; echo '

'."\n"; } echo ''."\n"; echo ''."\n"; echo ''."\n"; if ($brew_row['brewer_type'] == 'G') { echo ''."\n"; } echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; if ($brew_row['assist'] != 'N' && ($AskPrefs || $AskSess)) { echo ''."\n"; echo ''."\n"; if ($AskSess) { echo ''."\n"; } if ($AskPrefs) { echo ''."\n"; echo ''."\n"; } echo ''."\n"; echo '
'."\n"; echo '
'."\n"; $query='select count(*) from session_prefs where brewer="'.$BrewerNo.'"'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; $query='select count(*) from style_prefs where brewer="'.$BrewerNo.'" and rank>0'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; $query='select count(*) from style_prefs where brewer="'.$BrewerNo.'" and rank < 0'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); echo ''."\n"; echo '
'."\n"; echo '
'."\n"; } if (in_array($brew_row['brewer_type'], array('I', 'G'))) { echo ''."\n"; echo ''."\n"; echo ''."\n"; if ($CntEntry > 0) { echo ''."\n"; echo ''."\n"; } echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; } ?>
0) { $message.='Address Line 2: '.$brew_row['addr2']."\n"; } if (strlen($brew_row['addr3'])>0) { $message.='Address Line 3: '.$brew_row['addr3']."\n"; } $message.='City: '.$brew_row['city']."\n"; $message.='State: '.$brew_row['state']."\n"; $message.='Zip Code: '.$brew_row['zip']."\n"; $message.='Phone - Home: '.$brew_row['phone1']."\n"; if (strlen($brew_row['phone2'])>0) { $message.='Phone - Cell: '.$brew_row['phone2']."\n"; } if (strlen($brew_row['phone3'])>0) { $message.='Phone - Work: '.$brew_row['phone3']."\n"; } $message.='Club: '.$brew_row['brewclub']; if ($brew_row['assist'] != 'N') { $message.='Offering to Assist with '.($brew_row['assist'] == 'S' ? 'Steward' : 'Judg').'ing at the Competition'."\n"; if ($brew_row['assist'] == 'J') { $message.='BJCP Id: '.(empty($brew_row['bjcpid']) ? 'None' : $brew_row['bjcpid'])."\n"; } } $headers=email_reply(); if ($GenMail == 'A' || (!$AdminAcct && ($GenMail == 'U' || ($GenMail == 'C' && $Action == 'c')))) { $res=mail ($brew_row['email'], $subject, $message, $headers); } } $GenMail=get_ctrl('GENSJ'); if ($brew_row['brewer_type'] == 'I' && $Notify=='y' && ((!$AdminAcct && $GenMail != 'N') || ($AdminAcct && $GenMail == 'A'))) { $Comp_Short=strtoupper(get_ctrl('SHORT')); if ($Action == 'u' && $GenMail == 'C' && $Assist_Orig != 'N' && $Assist_Orig != $brew_row['assist']) { $subject=(strlen($Comp_Short) != 0 ? $Comp_Short.' '.$Comp_Year.' - ' : '').'Brewer '.$BrewerNo.' has withdrawn offer to '.(($Assist_Orig=='S') ? 'Steward' : 'Judge'); $message=$brew_row['fname'].' '.$brew_row['lname'].' has withdrawn his offer to be a '.(($Assist_Orig=='S') ? 'Steward' : 'Judge').' at the competition'."\n"; $message.=$BrewerShort.' Number: '.$brew_row['brewer']."\n"; $message.='Email Address: '.$brew_row['email']."\n"; $headers=email_reply(); $res=mail (email_sj($Assist_Orig), $subject, $message, $headers); } if ($brew_row['assist'] != 'N' && ($Action=='c' || ($GenMail == 'C' && $brew_row['assist']!=$Assist_Orig))) { $subject=(strlen($Comp_Short) != 0 ? $Comp_Short.' '.$Comp_Year.' - ' : '').$BrewerShort.' '.$BrewerNo.' offered to '.(($brew_row['assist']=='S') ? 'Steward' : 'Judge'); $message=$brew_row['fname'].' '.$brew_row['lname'].' has offered to be a '.(($brew_row['assist']=='S') ? 'Steward' : 'Judge').' at the competition'."\n"; $message.=$BrewerShort.' Number: '.$brew_row['brewer']."\n"; $message.='Email Address: '.$brew_row['email']."\n"; if ($brew_row['assist']=='J' && !empty($brew_row['bjcpid'])) { $message.='BJCP Id: '.$brew_row['bjcpid']."\n"; } $headers=email_reply(); $res=mail (email_sj($brew_row['assist']), $subject, $message, $headers); } } ?>