mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-27 15:16:21 +00:00
Compare commits
2 Commits
4fabe53a51
...
519dbb8700
Author | SHA1 | Date | |
---|---|---|---|
519dbb8700 | |||
d9be3be581 |
@ -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 id desc', $table_header,
|
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by start_time desc, 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 id desc', $table_header,
|
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by start_time desc, id desc', $table_header,
|
||||||
echoContest,
|
echoContest,
|
||||||
array('page_len' => 40,
|
array('page_len' => 40,
|
||||||
'print_after_table' => function() {
|
'print_after_table' => function() {
|
||||||
|
@ -169,10 +169,17 @@ 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])) {
|
||||||
$standings[$i][] = $standings[$i][3];
|
if ($show_reviews) {
|
||||||
$standings[$i][3] = $i + 1;
|
$standings[$i][] = $standings[$i][3];
|
||||||
|
$standings[$i][3] = $i + 1;
|
||||||
|
} else {
|
||||||
|
$standings[$i][] = $i + 1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$standings[$i][] = $standings[$i][3];
|
if ($show_reviews) {
|
||||||
|
$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