summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/checkoverlapdrop.phtml
diff options
context:
space:
mode:
authorSebastian Wagner2011-10-21 19:13:38 +0200
committerSebastian Wagner2011-10-21 19:13:38 +0200
commit4561f98c7a00d74462ac771eae1796b6cca13566 (patch)
tree8f44694d11f066a7f90dc810d09fe73b1b704fb1 /application/views/scripts/event/checkoverlapdrop.phtml
parentverschiedenesĀ§ (diff)
downloadpoolctrl-4561f98c7a00d74462ac771eae1796b6cca13566.tar.gz
poolctrl-4561f98c7a00d74462ac771eae1796b6cca13566.tar.xz
poolctrl-4561f98c7a00d74462ac771eae1796b6cca13566.zip
overlapping for resizing and selecting implemented
Diffstat (limited to 'application/views/scripts/event/checkoverlapdrop.phtml')
-rw-r--r--application/views/scripts/event/checkoverlapdrop.phtml34
1 files changed, 34 insertions, 0 deletions
diff --git a/application/views/scripts/event/checkoverlapdrop.phtml b/application/views/scripts/event/checkoverlapdrop.phtml
new file mode 100644
index 0000000..6558e19
--- /dev/null
+++ b/application/views/scripts/event/checkoverlapdrop.phtml
@@ -0,0 +1,34 @@
+<?php
+// Output
+//print_r($this->overlaps);
+//$overlaps[] = array();
+
+
+
+if(count($this->overlapswithrepeat) == 0) {
+ $output['withrepeat'] = -1;
+}
+else {
+ $output['withrepeat'] = '<ul id="conflictEvents">';
+ foreach($this->overlapswithrepeat as $o){
+ $output['withrepeat'] .= '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
+ }
+ $output['withrepeat'] .= '</ul>';
+ // Echo contents of output, e.g. required values, such as title, date, etc.
+ //echo json_encode($this->overlaps);
+}
+
+if(count($this->overlapswithoutrepeat) == 0) {
+ $output['withoutrepeat'] = -1;
+}
+else {
+ $output['withoutrepeat'] = '<ul id="conflictEvents">';
+ foreach($this->overlapswithoutrepeat as $o){
+ $output['withoutrepeat'] .= '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
+ }
+ $output['withoutrepeat'] .= '</ul>';
+ // Echo contents of output, e.g. required values, such as title, date, etc.
+ //echo json_encode($this->overlaps);
+}
+echo json_encode($output);
+?> \ No newline at end of file