0) ? $Size : 25; $First=(!array_key_exists('f', $_GET) || empty($_GET['f'])) ? 1 : only_digits($_GET['f'], 4); $First=(is_numeric($First) && $First>0) ? $First : 1; $Source=(!array_key_exists('t', $_GET) || empty($_GET['t'])) ? 't' : chk_str($_GET['t'], 1); $Source=in_array($Source, array('o', 't')) ? $Source : 't'; list($GoodAcct, $AcctName)=chk_acct($Key,'A'); if ($GoodAcct) { $Page='900;url='.($Source == 't' ? 'amenu' : 'brewclub_list').'.php?k='.$Key; } else { $Page='0;url=failed.php'; } ?>

Brew Clubs

0) { $bc_query.=' limit '.(($First > 1) ? ($First - 1).', ' : '').$Size; } if ($BC_Cnt == 0) { echo '

'."\n"; echo 'No '.($Source == 't' ? '' : 'Other ').'Brew Clubs Found
'."\n"; echo '

'."\n"; } else { 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 $BC_Cnt.($Source == 't' ? '' : ' Other').' Brew Club'.(($BC_Cnt == 1) ? '' : 's')."\n"; echo '

'."\n"; table_nav ('brewclub_list.php?k='.$Key.'&o='.$Order, $BC_Cnt, $First, $Size); echo ''."\n"; echo ''."\n"; if ($Comp_Stage != 'POST') { echo ''."\n"; echo ''."\n"; } echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'."\n"; echo 'Add Brew Club'."\n"; echo ''."\n"; echo '   '."\n"; echo ''."\n"; echo ''.($Source == 'o' ? 'Brew Club List' : 'Other Brew Clubs').''."\n"; echo ''."\n"; echo '   '."\n"; echo ''."\n"; echo 'No Brew Club'."\n"; echo '
'."\n"; echo '
'."\n"; $HRef='brewclub_list.php?k='.$Key.'&f='.$First.'&s='.$Size.'&o='; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; if ($Comp_Stage != 'POST') { echo ''."\n"; } echo ''."\n"; } $bc_res=mysqli_query($db, $bc_query); while ($bc_row = mysqli_fetch_assoc($bc_res)) { $js_bc=addslashes($bc_row['brewclub']); $safe_bc=safe($bc_row['brewclub']); echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; if ($Comp_Stage != 'POST') { echo ''."\n"; echo ''."\n"; } echo ''."\n"; } if ($BC_Cnt != 0) { echo '
'."\n"; echo 'Brew Club'."\n"; echo ''."\n"; echo 'Brewer
Count
'."\n"; echo '
'."\n"; echo 'Entry
Count
'."\n"; echo '
'."\n"; echo 'Action'."\n"; echo '
'."\n"; echo $safe_bc."\n"; echo ''."\n"; echo ($bc_row['bcnt'] == 0 ? 0 : ''.$bc_row['bcnt'].'')."\n"; echo ''."\n"; echo $bc_row['ecnt']."\n"; echo ''."\n"; echo ''.($Source == 't' ? 'Change' : 'Add').''."\n"; echo ''."\n"; echo ''.($Source == 't' ? 'Remove' : 'Replace').''."\n"; echo '
'."\n"; } echo '
'."\n"; table_nav ('brewclub_list.php?k='.$Key.'&o='.$Order, $BC_Cnt, $First, $Size); if ($Comp_Stage != 'POST') { echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'."\n"; echo 'Add Brew Club'."\n"; echo ''."\n"; echo '   '."\n"; echo ''."\n"; echo ''.($Source == 'o' ? 'Brew Club List' : 'Other Brew Clubs').''."\n"; echo '
'."\n"; } ?>