summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorSimon2011-04-04 16:33:59 +0200
committerSimon2011-04-04 16:33:59 +0200
commite5e65c03c4d1879c4cf4ef5e0f77a80e7eb73ece (patch)
treeb5e094bd07a9b783e6b8e4418997be0458af74e0 /application
parentleerzeichen in kcl entfernt (diff)
downloadpbs2-e5e65c03c4d1879c4cf4ef5e0f77a80e7eb73ece.tar.gz
pbs2-e5e65c03c4d1879c4cf4ef5e0f77a80e7eb73ece.tar.xz
pbs2-e5e65c03c4d1879c4cf4ef5e0f77a80e7eb73ece.zip
highlight für suche eingebaut
Diffstat (limited to 'application')
-rw-r--r--application/modules/user/controllers/ClientController.php4
-rw-r--r--application/modules/user/views/scripts/client/index.phtml15
2 files changed, 17 insertions, 2 deletions
diff --git a/application/modules/user/controllers/ClientController.php b/application/modules/user/controllers/ClientController.php
index 2a57cf0..acb6a65 100644
--- a/application/modules/user/controllers/ClientController.php
+++ b/application/modules/user/controllers/ClientController.php
@@ -53,7 +53,9 @@ class User_ClientController extends Zend_Controller_Action
if($search != ''){
$this->view->search = $search;
$mySearch = new Pbs_Search();
- $clientsInGroup = $mySearch->search($clientsInGroup,$search);
+ $mySearch->setSearchTerm($search);
+ $clientsInGroup = $mySearch->search($clientsInGroup);
+ $this->view->searchterms = $mySearch->getSearchTerms();
}
// Pagination
diff --git a/application/modules/user/views/scripts/client/index.phtml b/application/modules/user/views/scripts/client/index.phtml
index 0442d95..ca78db1 100644
--- a/application/modules/user/views/scripts/client/index.phtml
+++ b/application/modules/user/views/scripts/client/index.phtml
@@ -5,7 +5,20 @@
<input type='submit' value='search'>
<?php
if(isset($this->search)){
- echo "<a href='/user/client/'><img src='/media/img/delete.png' alt='Delete Client'/></a>";
+ ?>
+ <a href='/user/client/'><img src='/media/img/delete.png' alt='Delete Client'/></a>
+ <script type='text/javascript' src='/media/js/jquery.highlight-3.js'></script>
+ <script>
+ $(document).ready(function(){
+ <?php foreach($this->searchterms as $term){?>
+ $('table').highlight('<?php echo $term;?>');
+ <?php
+ }
+ ?>
+ });
+ </script>
+
+ <?php
}
?>
</form>