$output .= "\t\t\t<JudgeName>" . $staff_name . "</JudgeName>\n"; $output .= "\t\t\t<JudgeRole>Staff</JudgeRole>\n"; $output .= "\t\t\t<JudgePts>0.0</JudgePts>\n"; if ($staff_points < $organ_points) { $output .= "\t\t\t<NonJudgePts>" . $staff_points . "</NonJudgePts>\n"; } else { $output .= "\t\t\t<NonJudgePts>" . $organ_points . "</NonJudgePts>\n"; } $output .= "\t\t</JudgeData>\n"; } } } // Organizer without a properly formatted BJCP ID in the system foreach (array_unique($o) as $uid) { $organizer_info = explode("^", brewer_info($uid)); if ($organizer_info['0'] != "" && $organizer_info['1'] != "" && !validate_bjcp_id($organizer_info['4'])) { $output .= "\t\t<JudgeData>\n"; $output .= "\t\t\t<JudgeName>" . $organizer_info['0'] . " " . $organizer_info['1'] . "</JudgeName>\n"; $output .= "\t\t\t<JudgeRole>Organizer</JudgeRole>\n"; $output .= "\t\t\t<JudgePts>0.0</JudgePts>\n"; $output .= "\t\t\t<NonJudgePts>" . $organ_points . "</NonJudgePts>\n"; $output .= "\t\t</JudgeData>\n"; } } $output .= "\t</NonBJCP>\n"; // BOS Reporting $output .= "\t<Comments>\n"; $output .= "Submitter Email: " . $_SESSION['user_name'] . "\n"; /* do { $a[] = $row_style_types['id']; } while ($row_style_types = mysql_fetch_assoc($style_types)); sort($a);
} if ($totalRows_staff > 0) { do { $st[] = $row_staff['uid']; } while ($row_staff = mysql_fetch_assoc($staff)); $st_running_total[] = ""; foreach (array_unique($st) as $uid) { if (array_sum($st_running_total) < $staff_points_total) { $staff_info = explode("^", brewer_info($uid)); $st_running_total[] = $staff_points; if (!empty($staff_info['1'])) { $staff_name = ucwords(strtolower($staff_info['1'])) . ", " . ucwords(strtolower($staff_info['0'])); $output_staff .= "<tr>"; $output_staff .= "<td class='bdr1B_gray'>" . $staff_name . "</td>"; $output_staff .= "<td class='data bdr1B_gray'>"; if (validate_bjcp_id($staff_info['4'])) { $output_staff .= strtoupper(strtr($staff_info['4'], $bjcp_num_replace)); } $output_staff .= "</td>"; $output_staff .= "<td class='data bdr1B_gray'>"; if (array_sum($st_running_total) <= $staff_points_total && $staff_points < $organ_points) { $output_staff .= $staff_points; } else { $output_staff .= $organ_points; } $output_staff .= "</td>"; $output_staff .= "</tr>"; } } } }