-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathawards_by_book.php
More file actions
36 lines (32 loc) · 965 Bytes
/
Copy pathawards_by_book.php
File metadata and controls
36 lines (32 loc) · 965 Bytes
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
<?php
require_once("gb/controller/AwardController.php");
$AwardController = new gb\controller\AwardController();
$AwardController->process();
$awards = $AwardController->getAwardInfo();
$title = "book_uri =" . $AwardController->getSelectedBookUri();
require("template/top.tpl.php");
?>
<table style="width: 100%">
<tr>
<td>Award name</td>
<td>Date</td>
<td>Description</td>
<td>Genre</td>
<td>Country</td>
<?php
foreach($awards as $award) {
?>
<tr>
<td><?php echo $award->getAwardName(); ?></td>
<td><?php echo $award->getDate(); ?></td>
<td><?php echo $award->getDescription(); ?></td>
<td><?php echo $award->getGenre(); ?></td>
<td><?php echo $award->getCountryName(); ?></td>
</tr>
<?php
}
?>
</table>
<?php
require("template/bottom.tpl.php");
?>