summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/filter/index.phtml
blob: 19b21ccdb89ecb36a9b453827258fba3e0b649b1 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
<h1>Filters</h1>
<p><a href="<?php echo $this->url(
    array(
        'controller' => 'filter',
        'action'     => 'addfilter'
    ),
    'default',
    true) ?>">add new filter</a></p>

<?php if ($this->filters): ?>
 
    <!-- A table of filters. -->
    <table border=1>
        <tr>
            <th>filterid</th>
			<th>filterID</th>
        </tr>
	<?php foreach ($this->filters as $filter): ?>
    <tr>
			<td><?php echo $this->escape($filter->getID()) ?></td>
            <td><?php echo $this->escape($filter->title) ?></td>
			<td><a href="<?php echo $this->url(
					array(
						'controller' => 'filter',
						'action'     => 'editfilter',
						'filterID'	=> $filter->getID()
					),
					'default',
					true) ?>">edit filter</a></td>
			<td><a href="<?php echo $this->url(
					array(
						'controller' => 'filter',
						'action'     => 'deletefilter',
						'filterID'	=> $filter->getID()
					),
					'default',
					true) ?>">edit filter</a></td>
        </tr>
    <?php endforeach ?> 


 
    </table>
 
<?php else: ?>
 
    <p>There are no filters to display.</p>
 
<?php endif;?>