-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlist_spouses.php
More file actions
39 lines (32 loc) · 841 Bytes
/
list_spouses.php
File metadata and controls
39 lines (32 loc) · 841 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
37
38
39
<?php
$title = "Writers whose spouses are writers";
require("template/top.tpl.php");
require_once ("gb/mapper/SpouseMapper.php");
$mapper = new gb\mapper\SpouseMapper();
$allSpouses = $mapper->findAll();
?>
<form method="post">
<table style="width: 100%">
<tr>
<td>Writer</td>
<td>Spouse</td>
<td>From time</td>
<td>To time </td>
</tr>
<?php
foreach($allSpouses as $spouse) {
?>
<tr>
<td><?php echo $spouse->getWriterUri(); ?> </td>
<td><?php echo $spouse->getPersonUri(); ?> </td>
<td><?php echo $spouse->getFrom(); ?> </td>
<td><?php echo $spouse->getTo(); ?> </td>
</tr>
<?php
}
?>
</table>
</form>
<?php
require("template/bottom.tpl.php");
?>