0) { $Action='u'; } else { $GroupNum=FALSE; $Action='a'; } } $CntEntry=cntEntry($BrewerNo); $TotEntry=cntEntry($BrewerNo, TRUE); $ReqGroup=get_ctrl('REQGRP'); $CntGroup=cntBrewGroup($BrewerNo); $TotGroup=cntBrewGroup($BrewerNo, TRUE); $CntPay=cntPayment($BrewerNo, TRUE); $bg=array(); $o_bg=array(); $e_bg=array(); $bg=GetTags($Len); $o_bg=GetTags($Len, '_ORIG'); $e_bg=ErrTags ($E_Map); $AnyProb=!(array_search(TRUE, $e_bg) === FALSE && $e_bg['DUP'] === FALSE); if ($Action == 'u' && !$AnyProb) { $bg_row=get_bg($BrewerNo, $GroupNum); foreach ($Map as $tag => $field) { $bg[$tag]=$bg_row[$field]; } $o_bg=$bg; } ?>
= 2 && $TotEntry > 0)); if ($AdminAcct) { links_bar('ABL'.($EntryList > 0 ? 'EP' : ''), $Key, $BrewerNo); } else { links_bar('B'.($EntryList > 0 ? 'EP' : ''), $Key); } ?>

Group Brewer

'."\n"; ?>

'."\n"; echo 'You must specify at least 2 active Brewers in this Group'."\n"; echo ''."\n"; } ?>
'."\n"; echo ''."\n"; echo ''."\n"; echo 'First Name'."\n"; echo ''."\n"; echo ''."\n"; if ($Action == 'u') { echo ''."\n"; } echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo 'Last Name'."\n"; echo ''."\n"; echo ''."\n"; if ($Action == 'u') { echo ''."\n"; } echo ''."\n"; echo ''."\n"; echo ''."\n"; if ($AnyProb) { echo ''."\n"; echo ''."\n"; if ($e_bg['FNAME_C']) { echo 'First Name value changed before Update
'."\n"; } if ($e_bg['LNAME_C']) { echo 'Last Name value changed before Update
'."\n"; } if ($e_bg['FNAME_R']) { echo 'First Name Must have a value
'."\n"; } if ($e_bg['LNAME_R']) { echo 'Last Name Must have a value
'."\n";; } if ($e_bg['DUP'] !== FALSE) { echo 'Name is a Duplicate Entry
'."\n"; if ($Action == 'u') { echo 'Original Value - '.$o_bg['FNAME'].' '.$o_bg['LNAME'].'
'."\n"; } } echo ''."\n"; echo ''."\n"; } echo ''."\n"; echo '
'."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; if ($Action == 'u') { echo ''."\n"; } echo ''."\n"; echo '
'."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo ''."\n"; if ($Action == 'u') { 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"; echo '
'."\n"; if ($CntGroup > 1 || $e_bg['DUP'] !== FALSE) { echo '
'."\n"; $bg_query='select * from brew_group where brewer="'.$BrewerNo.'" and group_num!="'.$GroupNum.'" order by group_num'; $bg_res=mysqli_query($db, $bg_query); echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; while ($bg_row = mysqli_fetch_assoc($bg_res)) { if ($bg_row['removed'] == 'Y' && $bg_row['group_num'] != $e_bg['DUP']) { continue; } if ($bg_row['group_num'] == $e_bg['DUP']) { echo ''."\n"; } else { echo ''."\n"; } echo ''."\n"; echo ''."\n"; echo ''."\n"; } echo '
'."\n"; echo 'First Name'."\n"; echo ''."\n"; echo 'Last Name'."\n"; echo '
'."\n"; echo safe($bg_row['fname'])."\n"; echo ''."\n"; echo safe($bg_row['lname'])."\n"; echo '
'."\n"; } ?>