-
Notifications
You must be signed in to change notification settings - Fork 8
/
problem_stat.php
41 lines (41 loc) · 1.42 KB
/
problem_stat.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
<?php
include_once('functions/problems.php');
$pid = intval($_GET['pid']);
$show_problem=new Problem;
$show_problem->set_problem($pid);
if ($show_problem->is_valid() && $show_problem->get_val("hide")==0) $pagetitle="Statistics of Problem ".$pid;
else $pagetitle="Problem Unavailable";
include_once("header.php");
include_once("functions/sidebars.php");
?>
<div class="span8">
<h3>Leaderboard of <a href="problem_show.php?pid=<?= $pid ?>">Problem <?=$pid ?></a></h3>
<table class="table table-hover table-striped" id="pleader">
<thead>
<tr>
<th width="10%">Rank</th>
<th width="10%">ACs</th>
<th width="10%">Runid</th>
<th width="20%">Username</th>
<th width="15%">Time</th>
<th width="10%">Memory</th>
<th width="15%">Language</th>
<th width="10%">Length</th>
</tr>
</thead>
<tfoot></tfoot>
<tbody></tbody>
</table>
</div>
<div class="span4">
<?=sidebar_problem_stat($show_problem)?>
</div>
<script type="text/javascript">
var ppid='<?=$pid?>';
var pstatperpage=<?=$config["limits"]["users_on_problem_stat"] ?>;
</script>
<script type="text/javascript" src="js/highcharts.js"></script>
<script type="text/javascript" src="js/problem_stat.js"></script>
<?php
include("footer.php");
?>