summaryrefslogtreecommitdiffstats
path: root/application/controllers/EventController.php
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-07 16:38:56 +0200
committerSebastian Wagner2011-09-07 16:38:56 +0200
commit346fc009513ab6f573fd57188f11bd2abfece9b0 (patch)
treefa119e54560bba76d1ffeb683534c122bdd8794e /application/controllers/EventController.php
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-346fc009513ab6f573fd57188f11bd2abfece9b0.tar.gz
poolctrl-346fc009513ab6f573fd57188f11bd2abfece9b0.tar.xz
poolctrl-346fc009513ab6f573fd57188f11bd2abfece9b0.zip
timeselection to add events implemented
Diffstat (limited to 'application/controllers/EventController.php')
-rw-r--r--application/controllers/EventController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 798f674..410fd76 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -225,8 +225,10 @@ class EventController extends Zend_Controller_Action
}
}
$add = $this->getRequest()->getParam("add");
+ $evstart = date ('m/d/Y H:i', strtotime(substr($this->getRequest()->getParam('evstart'), 0, 24)));
+ $evend = date ('m/d/Y H:i', strtotime(substr($this->getRequest()->getParam('evend'), 0, 24)));
if (!isset($add)){
- $addForm = new Application_Form_EventAdd(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist));
+ $addForm = new Application_Form_EventAdd(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist, 'start' => $evstart, 'end' => $evend));
} else {
$addForm = new Application_Form_EventAdd(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist, $this->getRequest()->getParams()));
if ($addForm->isValid($this->getRequest()->getParams())) {