summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/checkoverlapresize.phtml
blob: 4f0ad3dbe23c6b08b90a17381c87f72c3f6a0ce9 (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
<?php
$output['cfevents'] = $this->cfevents;

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>';
}

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 json_encode($output);
?>