完成状况
';
$header_row .= '
'.UOJLocale::get('username').' | ';
foreach ($problem_ids as $problem_id) {
$header_row .= '
' . "#{$problem_id}" . ' | ';
}
$header_row .= '';
$print_row = function($row) use ($problem_ids, $finished) {
$username = $row['username'];
echo '
';
echo '' . getUserLink($username) . ' | ';
foreach ($problem_ids as $problem_id) {
if (!isset($finished[$username]) || !isset($finished[$username][$problem_id])) {
echo ' | ';
} else {
echo ' | ';
}
}
echo '
';
};
$from = "user_info a inner join groups_users b on (b.group_id = {$group['id']} and a.username = b.username)";
$col_names = array('a.username as username');
$cond = "1";
$tail = "order by a.username asc";
$config = array('page_len' => 100);
echoLongTable($col_names, $from, $cond, $tail, $header_row, $print_row, $config);
?>