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

         
                           
                        
 

 
                                           
                             

      
                                                           
                                                 
                                                                                                                                                                       
         
                                         
                                                                               
                                        
 

                                              
                                

      
                                                        
                                              
                                                                                                                                                               
   
                                      


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