diff options
| author | michael pereira | 2011-04-05 15:35:35 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-05 15:35:35 +0200 |
| commit | 324b653c50e328019127c0aad29939fb933e4bcf (patch) | |
| tree | 10f6eaa134ab8a8bb804b8699293ad8fa2ef5b65 /application/modules/user/controllers/BootisoController.php | |
| parent | Rechte in Controller eingepflanzt (diff) | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-324b653c50e328019127c0aad29939fb933e4bcf.tar.gz pbs2-324b653c50e328019127c0aad29939fb933e4bcf.tar.xz pbs2-324b653c50e328019127c0aad29939fb933e4bcf.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/controllers/BootisoController.php')
| -rw-r--r-- | application/modules/user/controllers/BootisoController.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php index 84d51ab..5c3acaa 100644 --- a/application/modules/user/controllers/BootisoController.php +++ b/application/modules/user/controllers/BootisoController.php @@ -79,6 +79,16 @@ class user_BootisoController extends Zend_Controller_Action $this->view->bootisolist = array_reverse($this->view->bootisolist); + // Search + $search = $this->_request->getParam('search'); + $mySearch = new Pbs_Search(); + $mySearch->setSearchTerm($search); + $mySearch->setModule('bootiso'); + $this->view->searchform = $mySearch->searchForm(); + if($search != ''){ + $this->view->search = $mySearch->getSearchTerm(); + $this->view->bootisolist = $mySearch->search($this->view->bootisolist); + } // Pagination $pagination = new Pbs_Pagination(); @@ -104,6 +114,10 @@ class user_BootisoController extends Zend_Controller_Action } + public function searchAction(){ + $this->_redirect('/user/bootiso/index/search/'.($_GET['search'])); + } + public function downloadbootisoAction() { $this->_helper->layout->disableLayout(); |
