summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/pool/index.phtml
blob: 989cf418ee3cd533cc16dfb51ed7276463b18a69 (plain) (blame)
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
<h1>Pools</h1>

<?php if ($this->pools): ?>
 
    <!-- A table of filters. -->
    <table border=1>
        <tr>
            <th>poolID</th>
			<th>Title</th>
			<th>Description</th>
			<th>Location</th>
        </tr>
	<?php foreach ($this->pools as $pool): ?>
	 	<tr class='pool'>
			<td><?php echo $this->escape($pool->getID()) ?></td>
			<td><?php echo $this->escape($pool->getTitle()) ?></td>
			<td><?php echo $this->escape($pool->getDescription()) ?></td>
			<td><?php echo $this->escape($pool->getLocation()) ?></td>
			<td><a href="<?php echo $this->url(
						array(
							'controller' => 'pool',
							'action'     => 'removepool',
							'poolID'	=> $pool->getID()
						),
						'default',
						true) ?>">remove pool</a></td>
		</tr>
    <?php endforeach ?> 
    </table>
 
<?php else: ?>

 
    <p>There are no pools to display.</p>
 
<?php endif;?>