mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-12 00:46:20 +00:00
Compare commits
No commits in common. "519dbb870082f46b2cc6bfe8198787becaf38f75" and "4fabe53a51e4d4d6ed3da30857ac34243dacfe37" have entirely different histories.
519dbb8700
...
4fabe53a51
@ -60,7 +60,7 @@ EOD;
|
|||||||
$table_header .= '<th style="width:100px;">'.UOJLocale::get('contests::the number of registrants').'</th>';
|
$table_header .= '<th style="width:100px;">'.UOJLocale::get('contests::the number of registrants').'</th>';
|
||||||
$table_header .= '<th style="width:180px;">'.UOJLocale::get('appraisal').'</th>';
|
$table_header .= '<th style="width:180px;">'.UOJLocale::get('appraisal').'</th>';
|
||||||
$table_header .= '</tr>';
|
$table_header .= '</tr>';
|
||||||
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by start_time desc, id desc', $table_header,
|
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by id desc', $table_header,
|
||||||
echoContest,
|
echoContest,
|
||||||
array('page_len' => 40)
|
array('page_len' => 40)
|
||||||
);
|
);
|
||||||
@ -85,7 +85,7 @@ EOD;
|
|||||||
|
|
||||||
<h4><?= UOJLocale::get('contests::ended contests') ?></h4>
|
<h4><?= UOJLocale::get('contests::ended contests') ?></h4>
|
||||||
<?php
|
<?php
|
||||||
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by start_time desc, id desc', $table_header,
|
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by id desc', $table_header,
|
||||||
echoContest,
|
echoContest,
|
||||||
array('page_len' => 40,
|
array('page_len' => 40,
|
||||||
'print_after_table' => function() {
|
'print_after_table' => function() {
|
||||||
|
@ -169,17 +169,10 @@ function calcStandings($contest, $contest_data, &$score, &$standings, $update_co
|
|||||||
|
|
||||||
for ($i = 0; $i < $n_people; $i++) {
|
for ($i = 0; $i < $n_people; $i++) {
|
||||||
if ($i == 0 || !$is_same_rank($standings[$i - 1], $standings[$i])) {
|
if ($i == 0 || !$is_same_rank($standings[$i - 1], $standings[$i])) {
|
||||||
if ($show_reviews) {
|
$standings[$i][] = $standings[$i][3];
|
||||||
$standings[$i][] = $standings[$i][3];
|
$standings[$i][3] = $i + 1;
|
||||||
$standings[$i][3] = $i + 1;
|
|
||||||
} else {
|
|
||||||
$standings[$i][] = $i + 1;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($show_reviews) {
|
$standings[$i][] = $standings[$i][3];
|
||||||
$standings[$i][] = $standings[$i][3];
|
|
||||||
}
|
|
||||||
|
|
||||||
$standings[$i][] = $standings[$i - 1][3];
|
$standings[$i][] = $standings[$i - 1][3];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user