-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain.php
91 lines (90 loc) · 2.15 KB
/
train.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
<html>
<head>
<title> Тренировки </title>
<link type="text/css" rel="stylesheet" href="assest/css/style.css">
<link type="text/css" rel="stylesheet" href="assest/css/contest.css">
<script src="assest/js/jquery-3.2.0.min.js"></script>
<style type="text/css">
table{
border-collapse: collapse;
width: 100%;
}
td, th {
padding: 3px;
text-align: left;
border: 2px solid black;
}
</style>
<meta charset="utf-8">
</head>
<body>
<body>
<?php
include('srchead');
?>
<div id="body">
<div id="general_content">
<table>
<tbody>
<tr style="background: #99D;">
<td class="default" style="text-align: center;">
№
</td>
<td class="default">
Название
</td>
<td class="default" style="text-align: center;">
Уровень
</td>
<td class="default">
Тип
</td>
<td class="default">
</td>
</tr>
<?php if ($type < 3) {
?>
<tr>
<td colspan="5">
<a href="newtask.php" style="display: block;">
Создать задачу
</a>
</td>
</tr>
<?php }
include("tasks");
$length = count($task);
for ($i = $length; $i >= max($length - $length % 50,1); $i--) {
?>
<tr>
<td class="default" style="text-align: center;">
<?php echo $i; ?>
</td>
<td class="default">
<?php echo $task[$i-1]["title"];?>
</td>
<td class="default" style="text-align: center;">
<?php echo $task[$i-1]["level"];?>
</td>
<td class="default">
<?php echo $task[$i-1]["type"];?>
</td>
<td class="default" style="text-align: center;">
<?php echo("<a href=\"problem.php?number=".$i."\">Решить</a>");?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
include("srcnews");
?>
</div>
<?php include("srcfooter");
?>
</body>
</html>