egroupware/calendar/edit_status.php

46 lines
2.0 KiB
PHP
Raw Normal View History

2001-03-12 04:18:02 +01:00
<?php
/**************************************************************************\
* phpGroupWare - Calendar *
* http://www.phpgroupware.org *
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
* http://www.radix.net/~cknudsen *
* Modified by Mark Peters <skeeter@phpgroupware.org> *
* -------------------------------------------- *
* 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');
2001-05-21 05:20:31 +02:00
$phpgw->calendar->open('INBOX',$owner,'');
$event = $phpgw->calendar->fetch_event($id);
2001-03-12 04:18:02 +01:00
reset($event->participants);
2001-06-04 05:28:02 +02:00
if(!$event->participants[$owner])
2001-03-12 04:18:02 +01:00
{
2001-05-16 06:34:36 +02:00
echo '<center>The user '.$phpgw->common->grab_owner_name($owner).' is not participating in this event!</center>';
2001-03-12 04:18:02 +01:00
$phpgw->common->footer();
$phpgw->common->phpgw_exit();
}
if($phpgw->calendar->check_perms(PHPGW_ACL_EDIT) == False)
{
echo '<center>You do not have permission to edit this appointment!</center>';
$phpgw->common->footer();
$phpgw->common->phpgw_exit();
}
2001-05-21 05:20:31 +02:00
$freetime = $phpgw->calendar->datetime->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $phpgw->calendar->datetime->tz_offset);
2001-03-12 04:18:02 +01:00
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();
?>