summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/event/checkoverlapdrop.phtml
blob: 1ca1b29da4f1d66b59ffe7b988ceb13dba45ba37 (plain) (tree)
1
2
3
4
5
6
7
8
9
     
                                      
 
                                           
                             

      
                                                           
                                                 
                                                                                                                                                                       
         
                                         
 

                                              
                                

      
                                                        
                                              
                                                                                                                                                               
   
                                      
 
                          
 
<?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);
?>