* * http://www.radix.net/~cknudsen * * Modified by Mark Peters * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ $phpgw_info['flags']['currentapp'] = 'calendar'; include('../header.inc.php'); $cal_stream = $phpgw->calendar->open('INBOX',$owner,''); $event = $phpgw->calendar->fetch_event($cal_stream,$id); reset($event->participants); $participating = False; for($j=0;$jparticipants);$j++) { if($event->participants[$j] == $owner) { $participating = True; } } if($participating == False) { echo '
The user '.$phpgw->common->grab_owner($owner).' is not participating in this event!
'; $phpgw->common->footer(); $phpgw->common->phpgw_exit(); } if($phpgw->calendar->check_perms(PHPGW_ACL_EDIT) == False) { echo '
You do not have permission to edit this appointment!
'; $phpgw->common->footer(); $phpgw->common->phpgw_exit(); } reset($event->participants); $tz_offset = ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset'])); $freetime = $phpgw->calendar->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $tz_offset); echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$event->participants); echo $phpgw->calendar->view_event($event); echo $phpgw->calendar->get_response(); $phpgw->common->phpgw_footer(); ?>