forked from wille/relayawards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
awards.php
39 lines (34 loc) · 1.18 KB
/
awards.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
<?php
$title = "List of Awards - RelayAwards";
require_once "header.php";
require_once "awards/award.php";
?>
<title>RelayAwards - Awards</title>
<div class="container">
<div class="row">
<div class="container">
<table class="table">
<thead>
<tr>
<th>Award</th>
<th>Description</th>
<th>Points</th>
</tr>
</thead>
<tbody>
<?php
foreach ($awards as $award) {
echo "<tr>";
echo '<td><img src="images/rewards/' . $award->get_icon() . '"></td>';
echo "<td>" . $award->get_description() . "</td>";
echo "<td>" . $award->get_points() . "</td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>