summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/checkoverlapevents.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event/checkoverlapevents.phtml')
-rw-r--r--application/views/scripts/event/checkoverlapevents.phtml19
1 files changed, 11 insertions, 8 deletions
diff --git a/application/views/scripts/event/checkoverlapevents.phtml b/application/views/scripts/event/checkoverlapevents.phtml
index 5ce631b..6558e19 100644
--- a/application/views/scripts/event/checkoverlapevents.phtml
+++ b/application/views/scripts/event/checkoverlapevents.phtml
@@ -3,29 +3,32 @@
//print_r($this->overlaps);
//$overlaps[] = array();
+
+
if(count($this->overlapswithrepeat) == 0) {
- echo -1;
+ $output['withrepeat'] = -1;
}
else {
- echo '<ul id="conflictEvents">';
+ $output['withrepeat'] = '<ul id="conflictEvents">';
foreach($this->overlapswithrepeat as $o){
- echo '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
+ $output['withrepeat'] .= '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
}
- echo '</ul>';
+ $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) {
- echo -1;
+ $output['withoutrepeat'] = -1;
}
else {
- echo '<ul id="conflictEvents">';
+ $output['withoutrepeat'] = '<ul id="conflictEvents">';
foreach($this->overlapswithoutrepeat as $o){
- echo '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
+ $output['withoutrepeat'] .= '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
}
- echo '</ul>';
+ $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