-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
113 lines (105 loc) · 2.89 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
include_once("header.php");
include_once("functions/sidebars.php");
include_once("functions/contests.php");
?>
<div class="hero-unit">
<h1>Welcome to BNUOJ 3.0!</h1>
<p>
IE 7+, Opera 11+, Safari 5+, Firefox 5+ and Chrome 14+ are <span class="badge badge-important"><b>REQUIRED</b></span> according to <a href="https://github.com/twitter/bootstrap/wiki/Browser-Compatibility" target='_blank'>Bootstrap compatibility page</a>.<br />
If you have none of them, click <a href='../bnuoj' target='_blank'>here</a> for BNUOJ 2.0, or <a href='../contest' target='_blank'>here</a> for the original BNUOJ.<br />
Enjoy and have fun!
</p>
</div>
<div class="row-fluid">
<div class="span3">
<?=sidebar_item_content_vjstatus_index()?>
</div>
<div class="span4">
<?=sidebar_item_content_news(false)?>
</div>
<div class="span5">
<?php
/** Running standard contests **/
$running_contest=contest_get_standard_running_list();
if (sizeof($running_contest)>0) {
?>
<h3>Running Contests</h3>
<p>
<?php
foreach ($running_contest as $contest) {
?>
<a href='contest_show.php?cid=<?=$contest["cid"]?>'><?=$contest["title"]?></a> ends at <?=$contest["end_time"]?><br />
<?php
}
?>
</p>
<?php
}
?>
<?php
/** Running virtual contests **/
$running_vcontest=contest_get_virtual_running_list();
if (sizeof($running_vcontest)>0) {
?>
<h3>Running Virtual Contests</h3>
<p>
<?php
foreach ($running_vcontest as $contest) {
?>
<a href='contest_show.php?cid=<?=$contest["cid"]?>'><?=$contest["title"]?></a> ends at <?=$contest["end_time"]?><br />
<?php
}
?>
</p>
<?php
}
?>
<?php
/** Scheduled standard contests **/
$scheduled_contest=contest_get_standard_scheduled_list();
if (sizeof($scheduled_contest)>0) {
?>
<h3>Upcoming Contests</h3>
<p>
<?php
foreach ($scheduled_contest as $contest) {
?>
<a href='contest_show.php?cid=<?=$contest["cid"]?>'><?=$contest["title"]?></a> at <?=$contest["start_time"]?><br />
<?php
}
?>
</p>
<?php
}
?>
<?php
/** Scheduled virtual contests **/
$scheduled_vcontest=contest_get_virtual_scheduled_list();
if (sizeof($scheduled_vcontest)>0) {
?>
<h3>Upcoming Virtual Contests</h3>
<p>
<?php
foreach ($scheduled_vcontest as $contest) {
?>
<a href='contest_show.php?cid=<?=$contest["cid"]?>'><?=$contest["title"]?></a> at <?=$contest["start_time"]?><br />
<?php
}
?>
</p>
<?php
}
?>
<h3>Todo list</h3>
<ol>
<li>Virtual Judge on many other OJs</li>
<li>Class/Interactive Module</li>
<li>AI Battle Module</li>
<li>SNS link</li>
</ol>
</div>
</div>
<?php
include_once("footer.php");
?>