summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/checkoverlapselect.phtml
blob: e6fc8c17640033374be68f41976dcbe014cdb744 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
// Output
//print_r($this->overlaps);
//$overlaps[] = array();

if(count($this->overlaps) == 0) {
  $output = -1;
}
else {
  $output = '<ul id="conflictEvents">';
  foreach($this->overlaps as $o){
    $output .= '<li>' . 'EventID: ' . $o['eventID'] . ', Title: ' . $o['title'] . ', Start: ' . $o['start'] . ', End: ' . $o['end'] . '</li>';
  }
  $output .= '</ul>';
    // Echo contents of output, e.g. required values, such as title, date, etc.
    //echo json_encode($this->overlaps);
}
echo json_encode($output);
?>