[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-developers] enhancement to calendar conflicts
From: |
Tom Gasaway |
Subject: |
[Phpgroupware-developers] enhancement to calendar conflicts |
Date: |
Mon, 06 May 2002 13:19:15 -0600 |
I added the following code to function overlap in
calendar/inc/clas.uicalendar.inc.php
so that when a conflict occurs, the participants that have the conflict are
listed
as well as the owner of the conflicting event.
Tom Gasaway
--- class.uicalendar.inc.php.1.66.2.12 Mon May 6 12:12:27 2002
+++ class.uicalendar.inc.php Mon May 6 11:53:11 2002
@@ -2145,7 +2145,17 @@
$overlap = '';
for($i=0;$i<count($overlapping_events);$i++)
{
- $overlap .=
'<li>'.$this->link_to_entry($this->bo->read_entry($overlapping_events[$i]),$month,$mday,$year);
+ $overlapped_event =
$this->bo->read_entry($overlapping_events[$i]);
+ $overlap .= '<li>
['.$GLOBALS['phpgw']->common->grab_owner_name($overlapped_event['owner']).']
'.$this->link_to_entry($overlapped_event,$month,$mday,$year);
+ $overlap .= "<ul>";
+ while (list($id,$status) =
each($event['participants']))
+ {
+ if
(isset($overlapped_event['participants'][$id])) {
+ $overlap .=
'<li>'.$GLOBALS['phpgw']->common->grab_owner_name($id);
+ }
+ }
+ $overlap .= "</ul>";
+
}
unset($GLOBALS['phpgw_info']['flags']['noheader']);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-developers] enhancement to calendar conflicts,
Tom Gasaway <=