/
best10.php
59 lines (54 loc) · 1.86 KB
/
best10.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
<?php
include('./partials/errorDisplay.php');
require_once "./classes/models/Person.php";
require_once "./classes/controllers/PersonController.php";
$personController = new PersonController();
$peopleRanking = $personController->get10Best();
?>
<!DOCTYPE html>
<html lang="sk">
<head>
<title>Slovenskí olympijskí víťazi</title>
<meta charset="UTF-8">
<meta name="author" content="Juraj Lapčák">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link href="css/main-style.css" rel="stylesheet">
<script src="js/modify-delete.js"></script>
</head>
<body>
<div class="container">
<?php include('./partials/header.php') ?>
<div class="row mt-5">
<main class="col-lg site-content">
<table class="table table-striped table-dark">
<thead>
<tr class="table-head">
<th scope="col" id="name">
Meno
</th>
<th scope="col" id="surname">
Priezvisko
</th>
<th scope="col" id="wins">
Počet výher
</th>
<th colspan="2" scope="col" id="action1">
</th>
</tr>
</thead>
<tbody id="winners-body">
<?php
foreach ($peopleRanking as $person) {
echo $person->getShortRow();
}
?>
</tbody>
</table>
</main>
</div>
</div>
<?php include('./partials/footer.php') ?>
</body>
</html>