$q_problem_id]; } if ($q_submission_id != null) { $conds[] = ["submission_id" => $q_submission_id]; } if ($q_hacker != null) { $conds[] = ["hacker" => $q_hacker]; } if ($q_owner != null) { $conds[] = ["owner" => $q_owner]; } $selected_all = ' selected="selected"'; $selected_succ = ''; $selected_fail = ''; if (isset($_GET['status']) && validateUInt($_GET['status'])) { if ($_GET['status'] == 1) { $selected_all = ''; $selected_succ = ' selected="selected"'; $conds[] = 'success = 1'; } if ($_GET['status'] == 2) { $selected_all = ''; $selected_fail = ' selected="selected"'; $conds[] = 'success = 0'; } } if ($conds) { $cond = $conds; } else { $cond = '1'; } ?>