= $username == $myUser['username'] ? '我' : $username . ' ' ?>的所有赛后总结
10,
'table_classes' => array('table', 'table-bordered', 'table-text-center', 'table-vertical-middle'),
);
$header_row = '';
$header_row .= '';
$header_row .= ''.UOJLocale::get('contests::contest name').' | ';
$header_row .= ''.UOJLocale::get('problems::problem').' | ';
$header_row .= ''.UOJLocale::get('contests::problem self review').' | ';
$header_row .= ''.UOJLocale::get('contests::contest self review').' | ';
$header_row .= '
';
$print_row = function($row) {
global $username;
$contest_id = $row['contest_id'];
$contest = queryContest($contest_id);
$contest_problems = queryContestProblems($contest_id);
$n_contest_problems = count($contest_problems);
$result = '';
$dom_sanitize_config = DOM_SANITIZE_CONFIG;
for ($i = 0; $i < $n_contest_problems; $i++) {
$problem_id = $contest_problems[$i]['problem_id'];
$problem = queryProblemBrief($problem_id);
$problem_self_review = DB::selectFirst("select content from contests_reviews where contest_id = $contest_id and problem_id = $problem_id and poster = '$username'");
$result .= '';
if ($i == 0) {
$result .= '' . $contest['name'] . ' | ';
}
$problem_review_id = "review-$contest_id-$i";
$result .= '' . chr(ord('A') + $i) . '. ' . $problem['title'] . ' | ';
$result .= ' | ';
$esc_problem_self_review = rawurlencode($problem_self_review != null ? $problem_self_review['content'] : '');
$result .= '';
if ($i == 0) {
$contest_review_id = "review-$contest_id-overall";
$contest_self_review = DB::selectFirst("select content from contests_reviews where contest_id = $contest_id and problem_id = -1 and poster = '$username'");
$esc_contest_self_review = rawurlencode($contest_self_review != null ? $contest_self_review['content'] : '');
$result .= ' | ';
$result .= '';
}
$result .= '
';
}
echo $result;
};
echoLongTable($col_names, $from, $cond, $tail, $header_row, $print_row, $config);
?>