summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-22 15:58:05 +0200
committerBjörn Geiger2011-09-22 15:58:05 +0200
commit4fba0a8a025999483387689db44523fbb0201281 (patch)
tree7079aaa825eded0a26b3aa393d1012ab9284ad1a /application
parentNur so viele Clients werden gestartet/heruntergefahren, wie in Participants a... (diff)
downloadpoolctrl-4fba0a8a025999483387689db44523fbb0201281.tar.gz
poolctrl-4fba0a8a025999483387689db44523fbb0201281.tar.xz
poolctrl-4fba0a8a025999483387689db44523fbb0201281.zip
show repeat Events
Diffstat (limited to 'application')
-rwxr-xr-xapplication/controllers/EventController.php7
-rw-r--r--application/views/scripts/event/getrepeatevents.phtml7
2 files changed, 14 insertions, 0 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index b959ec7..68e882e 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -642,6 +642,13 @@ class EventController extends Zend_Controller_Action
$this->view->right = $this->acl->checkRight($rightShortcut);
}
+ public function getrepeateventsAction() {
+ $this->_helper->layout->disableLayout();
+ $eventTitle = $this->_request->getParam("title");
+ $events = $this->eventMapper->findBy(array('title' => $eventTitle, 'repeat' => 1));
+ $this->view->events = $events;
+ }
+
/*
* ----------------------
* END CALENDAR FUNCTIONS
diff --git a/application/views/scripts/event/getrepeatevents.phtml b/application/views/scripts/event/getrepeatevents.phtml
new file mode 100644
index 0000000..f409c2b
--- /dev/null
+++ b/application/views/scripts/event/getrepeatevents.phtml
@@ -0,0 +1,7 @@
+<?php
+if(count($this->events) == 0){
+ echo "no Events";
+} else {
+ print_r($this->events);
+}
+?> \ No newline at end of file