summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/PrebootController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/controllers/PrebootController.php')
-rw-r--r--application/modules/user/controllers/PrebootController.php42
1 files changed, 17 insertions, 25 deletions
diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php
index f3eac39..2b2955d 100644
--- a/application/modules/user/controllers/PrebootController.php
+++ b/application/modules/user/controllers/PrebootController.php
@@ -57,21 +57,19 @@ class User_PrebootController extends Zend_Controller_Action
$pbsNotifier = new Pbs_Notifier();
$this->view->notification = $pbsNotifier->notify('modify',$result);
}
- $result = $this->_request->getParam('updateresult');
- if($result != ""){
- $pbsNotifier = new Pbs_Notifier();
- $this->view->notification = $pbsNotifier->notify('update',$result);
- }
-
- $groupID = $this->membership->getGroupID();
-
- //ACL Darf er PrebootMenu sehen?
- if(!Pbs_Acl::checkRight('pro'))
- $this->_redirect('/user/index');
-
- $this->view->prebootlist = $this->prebootMapper->findBy(array("groupID" => $groupID));
-
- // Search
+
+ $groupID = $this->membership->getGroupID();
+
+ //ACL Darf er PrebootMenu sehen?
+ if(!Pbs_Acl::checkRight('pro'))
+ $this->_redirect('/user/index');
+
+ $this->view->prebootlist = $this->prebootMapper->findBy(array("groupID" => $groupID));
+ foreach ($this->view->prebootlist as $preboot){
+ $preboot->setCreated(date(Zend_Registry::get('dateformat'),$preboot->getCreated()));
+ }
+
+ // Search
$search = $this->_request->getParam('search');
$mySearch = new Pbs_Search();
$mySearch->setSearchTerm($search);
@@ -91,18 +89,12 @@ class User_PrebootController extends Zend_Controller_Action
$this->view->prebootlist = $pagination->getElements();
$this->view->pagination = $pagination->pagination();
- $this->view->page = $pagination->getRequestPage();
- $this->view->update = array();
-
- $update = $this->_request->getParam('checkupdate');
-
- foreach ($this->view->prebootlist as $preboot){
- $this->view->update[$preboot->getID()] = $update && $this->checkupdateAction($preboot);
- }
- }
+ $this->view->page = $pagination->getRequestPage();
- public function searchAction(){
+ }
+
+ public function searchAction(){
$this->_redirect('/user/preboot/index/search/'.($_GET['search']));
}