summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/checkoverlapresize.phtml
blob: 05a7f4256face9b81ffb58019aa4fc6b6c54e6ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
?>