diff options
| author | Simon | 2011-03-04 18:33:19 +0100 |
|---|---|---|
| committer | Simon | 2011-03-04 18:33:19 +0100 |
| commit | 2c3d9f3d53afedf153a28f1f0ac2c8c4957dcf51 (patch) | |
| tree | 99e2391da8bedfcbda3122653c26144a8a439d92 /application/views/scripts | |
| parent | Filtertypen in SQL hinzugefügt && notes (von notiz-zettel)n hinzugefügt (diff) | |
| download | pbs2-2c3d9f3d53afedf153a28f1f0ac2c8c4957dcf51.tar.gz pbs2-2c3d9f3d53afedf153a28f1f0ac2c8c4957dcf51.tar.xz pbs2-2c3d9f3d53afedf153a28f1f0ac2c8c4957dcf51.zip | |
Filters Übersicht, FilterEntries hinzufügen
Diffstat (limited to 'application/views/scripts')
| -rw-r--r-- | application/views/scripts/filter/editfilter.phtml | 16 | ||||
| -rw-r--r-- | application/views/scripts/filter/index.phtml | 34 |
2 files changed, 43 insertions, 7 deletions
diff --git a/application/views/scripts/filter/editfilter.phtml b/application/views/scripts/filter/editfilter.phtml index 452a096..9b54ac7 100644 --- a/application/views/scripts/filter/editfilter.phtml +++ b/application/views/scripts/filter/editfilter.phtml @@ -1 +1,15 @@ -<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>editfilter</b></center>
\ No newline at end of file +<h1>Edit Filter</h1> +<?php +echo "<h2>".$this->filterID."</h2>"; +echo 'test'; +?> +<?php +echo + +$this->editfilterform->setAction($this->url()); + + +$this->editfilterform; + + +?> diff --git a/application/views/scripts/filter/index.phtml b/application/views/scripts/filter/index.phtml index 711bad9..4e5f8af 100644 --- a/application/views/scripts/filter/index.phtml +++ b/application/views/scripts/filter/index.phtml @@ -1,4 +1,9 @@ <h1>Filters</h1> +<style> +table{font-family:verdana;font-size:12px;} +td{border:1px solid #CCC;} +tr.filter{background-color:#DDD;} +</style> <p><a href="<?php echo $this->url( array( 'controller' => 'filter', @@ -12,13 +17,15 @@ <!-- A table of filters. --> <table border=1> <tr> - <th>filterid</th> - <th>filterID</th> + <th>filterID</th> + <th>Title</th> + <th>Priority</th> </tr> <?php foreach ($this->filters as $filter): ?> - <tr> + <tr class='filter'> <td><?php echo $this->escape($filter->getID()) ?></td> <td><?php echo $this->escape($filter->title) ?></td> + <td><?php echo $this->escape($filter->priority) ?></td> <td><a href="<?php echo $this->url( array( 'controller' => 'filter', @@ -35,11 +42,26 @@ ), 'default', true) ?>">delete filter</a></td> + </tr> + <tr><td></td> + <td colspan=4> + <table style='width:100%;'> + <?php foreach ($this->filterentries as $filterentry): ?> + <?php + // TODO: Quick and dirty + // hier wird die gesamte liste durchgegangen... unperformant + if($filterentry->filterID == $filter->getID()): ?> + <tr> + <td><?php echo $filterentry->getFiltertypeID();?></td> + <td><?php echo $filterentry->getFiltervalue();?></td> + <td><?php echo $filterentry->getFiltervalue();?></td> + </tr> + <?php endif; ?> + <?php endforeach ?> + </table> + </td> </tr> <?php endforeach ?> - - - </table> <?php else: ?> |
