Skip to content

Commit

Permalink
Fix Table Assignment Display
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffhumphrey committed Feb 18, 2021
1 parent 69daa47 commit a5cfe47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 671 deletions.
6 changes: 1 addition & 5 deletions lib/common.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2965,17 +2965,13 @@ function table_assignments($uid,$method,$time_zone,$date_format,$time_format,$me
$output = "";
}



$query_table_assignments = sprintf("SELECT assignTable,assignRoles,assignFlight,assignRound FROM %s WHERE bid='%s' AND assignment='%s'",$prefix."judging_assignments",$uid,$method);
$table_assignments = mysqli_query($connection,$query_table_assignments) or die (mysqli_error($connection));
$row_table_assignments = mysqli_fetch_assoc($table_assignments);
$totalRows_table_assignments = mysqli_num_rows($table_assignments);

require(LANG.'language.lang.php');

/*
if ($totalRows_table_assignments > 0) {

do {
Expand Down Expand Up @@ -3033,7 +3029,7 @@ function table_assignments($uid,$method,$time_zone,$date_format,$time_format,$me
//if (($totalRows_table_assignments == 0) && ($method2 == "1")) $output_extend = "No assignment(s)";
if ($method2 == 2) $output = array_unique($output);
return $output;
*/

}

function available_at_location($location,$role,$round) {
Expand Down
3 changes: 2 additions & 1 deletion sections/brewer_info.sec.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,13 @@
$account_display .= "</table>";
}
}

if (!empty($table_assign_judge)) $account_display .= sprintf("<p><strong class=\"text-success\">%s %s.</strong></p><p>%s</p>",$brewer_info_008,$label_judge,$brewer_info_009);
elseif ((in_array("Steward",$assignment_array)) && (!empty($assignment))) $account_display .= sprintf("%s %s.",$label_steward,$brewer_info_010);
$account_display .= "</div>";
$account_display .= "</div>";

if ((!$judge_available_not_assigned) && (!empty($table_assign_judge))) {
if (!empty($table_assign_judge)) {
$account_display .= "<div class=\"row bcoem-account-info\">";
$account_display .= sprintf("<div class=\"".$display_left_cols."\"><strong>%s</strong></div>",$label_assignment);
$account_display .= "<div class=\"".$display_right_cols."\">";
Expand Down
Loading

0 comments on commit a5cfe47

Please sign in to comment.