= $contest['name'] ?>
@@ -462,18 +462,18 @@ EOD;
= HTML::tablist($tabs_info, $cur_tab) ?>
+ if ($cur_tab == 'dashboard') {
+ echoDashboard();
+ } elseif ($cur_tab == 'submissions') {
+ echoMySubmissions();
+ } elseif ($cur_tab == 'standings') {
+ echoStandings();
+ } elseif ($cur_tab == 'after_contest_standings') {
+ echoStandings(true);
+ } elseif ($cur_tab == 'backstage') {
+ echoBackstage();
+ }
+ ?>
@@ -485,14 +485,14 @@ EOD;
+ if ($contest['cur_progress'] <= CONTEST_IN_PROGRESS) {
+ echoContestCountdown();
+ } elseif ($contest['cur_progress'] <= CONTEST_TESTING) {
+ echoContestJudgeProgress();
+ } else {
+ echoContestFinished();
+ }
+ ?>
diff --git a/web/app/controllers/contest_manage.php b/web/app/controllers/contest_manage.php
index 8ec7a27..3a0980b 100644
--- a/web/app/controllers/contest_manage.php
+++ b/web/app/controllers/contest_manage.php
@@ -166,7 +166,7 @@
$time_form->runAtServer();
$managers_form->runAtServer();
$problems_form->runAtServer();
-?>
+ ?>
@@ -193,13 +193,13 @@
', '', $row_id, ' | ', '', getUserLink($row['username']), ' | ', '';
}
-?>
+ ?>
命令格式:命令一行一个,+mike表示把mike加入管理者,-mike表示把mike从管理者中移除
@@ -216,13 +216,13 @@
', '', $problem['id'], ' | ', '', getProblemLink($problem), ' ', "[$problem_config_str]", ' | ', '';
}
-?>
+ ?>
命令格式:命令一行一个,+233表示把题号为233的试题加入比赛,-233表示把题号为233的试题从比赛中移除
diff --git a/web/app/controllers/contest_members.php b/web/app/controllers/contest_members.php
index 2de5d28..50b0352 100644
--- a/web/app/controllers/contest_members.php
+++ b/web/app/controllers/contest_members.php
@@ -106,7 +106,7 @@
$unregister_form->runAtServer();
}
}
-?>
+ ?>
= $contest['name'] ?>
@@ -123,55 +123,55 @@
# | '.UOJLocale::get('username').' | remote_addr | ';
+ if ($show_ip) {
+ $header_row = '# | '.UOJLocale::get('username').' | remote_addr |
';
- $ip_owner = array();
- foreach (DB::selectAll("select * from contests_registrants where contest_id = {$contest['id']} order by username desc") as $reg) {
- $user = queryUser($reg['username']);
- $ip_owner[$user['remote_addr']] = $reg['username'];
+ $ip_owner = array();
+ foreach (DB::selectAll("select * from contests_registrants where contest_id = {$contest['id']} order by username desc") as $reg) {
+ $user = queryUser($reg['username']);
+ $ip_owner[$user['remote_addr']] = $reg['username'];
+ }
+ } else {
+ $header_row = '# | '.UOJLocale::get('username').' |
';
}
- } else {
- $header_row = '# | '.UOJLocale::get('username').' |
';
- }
- echoLongTable(array('*'), 'contests_registrants', "contest_id = {$contest['id']}", 'order by username desc',
- $header_row,
- function($contest, $num) {
- global $myUser;
- global $show_ip, $ip_owner;
+ echoLongTable(array('*'), 'contests_registrants', "contest_id = {$contest['id']}", 'order by username desc',
+ $header_row,
+ function($contest, $num) {
+ global $myUser;
+ global $show_ip, $ip_owner;
- $user = queryUser($contest['username']);
- $user_link = getUserLink($contest['username']);
- if (!$show_ip) {
- echo '';
- } else {
- if ($ip_owner[$user['remote_addr']] != $user['username']) {
- echo '
';
- } else {
+ $user = queryUser($contest['username']);
+ $user_link = getUserLink($contest['username']);
+ if (!$show_ip) {
echo '
';
+ } else {
+ if ($ip_owner[$user['remote_addr']] != $user['username']) {
+ echo '
';
+ } else {
+ echo '
';
+ }
}
- }
- echo ''.$num.' | ';
- echo ''.$user_link.' | ';
- if ($show_ip) {
- echo ''.$user['remote_addr'].' | ';
- }
- echo '
';
- },
- array('page_len' => 100,
- 'get_row_index' => '',
- 'print_after_table' => function() {
- global $add_new_contestant_form, $add_group_to_contest_form;
+ echo ''.$num.' | ';
+ echo ''.$user_link.' | ';
+ if ($show_ip) {
+ echo ''.$user['remote_addr'].' | ';
+ }
+ echo '';
+ },
+ array('page_len' => 100,
+ 'get_row_index' => '',
+ 'print_after_table' => function() {
+ global $add_new_contestant_form, $add_group_to_contest_form;
- if (isset($add_new_contestant_form)) {
- $add_new_contestant_form->printHTML();
+ if (isset($add_new_contestant_form)) {
+ $add_new_contestant_form->printHTML();
+ }
+ if (isset($add_group_to_contest_form)) {
+ $add_group_to_contest_form->printHTML();
+ }
}
- if (isset($add_group_to_contest_form)) {
- $add_group_to_contest_form->printHTML();
- }
- }
- )
- );
-?>
+ )
+ );
+ ?>
diff --git a/web/app/controllers/contest_registration.php b/web/app/controllers/contest_registration.php
index 6f96e71..1b5a2e0 100644
--- a/web/app/controllers/contest_registration.php
+++ b/web/app/controllers/contest_registration.php
@@ -28,7 +28,7 @@
$register_form->succ_href = "/contests";
$register_form->runAtServer();
-?>
+ ?>
diff --git a/web/app/controllers/contests.php b/web/app/controllers/contests.php
index 1440787..daa5c7a 100644
--- a/web/app/controllers/contests.php
+++ b/web/app/controllers/contests.php
@@ -48,11 +48,11 @@ EOD;
echo '', ' '.$click_zan_block.' ', ' | ';
echo '';
}
-?>
+ ?>
= UOJLocale::get('contests::current or upcoming contests') ?>
';
$table_header .= ''.UOJLocale::get('contests::contest name').' | ';
$table_header .= ''.UOJLocale::get('contests::start time').' | ';
@@ -81,22 +81,22 @@ $('#contest-countdown').countdown($rest_second, function() {
EOD;
}
-?>
+ ?>