forked from BNUACM/bnuoj-web-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
problem.php
59 lines (58 loc) · 2.05 KB
/
problem.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
<?php
$pagetitle="Problem List";
include_once("header.php");
if (isset($_GET["page"])&&$_GET["page"]!="") $stp=intval(convert_str($_GET["page"]))-1;
else $stp="0";
?>
<div class="span12">
<!-- insert the page content here -->
<div class="span12">
<?php
if ($current_user->is_valid()) {
?>
<div class="btn-group">
<button class="btn btn-info active" id="showall">All</button>
<button class="btn btn-info" id="showunsolve">Unsolved</button>
</div>
<?php
}
?>
<div class="btn-group">
<button class="btn btn-info active" id="showlocal">Local Stat</button>
<button class="btn btn-info" id="showremote">Remote Stat</button>
<button class="btn btn-info" id="showremu">Remote User Stat</button>
</div>
</div>
<div id="flip-scroll">
<table class="table table-striped table-hover cf basetable" id="problist" width="100%">
<thead>
<tr>
<th width="3%"> Flag </th>
<th width="7%"> PID </th>
<th width="30%"> Title </th>
<th width="28%"> Source </th>
<th width="8%"> AC </th>
<th width="8%"> All </th>
<th width="8%"> AC </th>
<th width="8%"> All </th>
<th width="8%"> AC(U) </th>
<th width="8%"> All(U) </th>
<th width="10%" class="selectoj"> OJ </th>
<th width="8%"> VID </th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script type="text/javascript">
var probperpage=<?= $config["limits"]["problems_per_page"] ?>;
var pstart=<?= $stp ?>;
var searchstr=<?= json_encode(isset($_GET['search']) ? $_GET['search'] : "") ?>;
var ojoptions='<?= $ojoptions ?>';
</script>
<script type="text/javascript" src="js/problem.js?<?=filemtime("js/problem.js") ?>"></script>
<?php
include("footer.php");
?>