mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
A few more fixes for the calendar.
This commit is contained in:
parent
c1f7e245d5
commit
551661182f
@ -228,11 +228,11 @@
|
|||||||
$p->set_var('color',$phpgw_info['theme']['bg_text']);
|
$p->set_var('color',$phpgw_info['theme']['bg_text']);
|
||||||
$p->set_var('overlap_title',lang('Scheduling Conflict'));
|
$p->set_var('overlap_title',lang('Scheduling Conflict'));
|
||||||
|
|
||||||
$cal_stream = $phpgw->calendar->open('INBOX',intval($owner),'');
|
$phpgw->calendar->open('INBOX',intval($owner),'');
|
||||||
$overlap = '';
|
$overlap = '';
|
||||||
for($i=0;$i<count($overlapping_events);$i++)
|
for($i=0;$i<count($overlapping_events);$i++)
|
||||||
{
|
{
|
||||||
$over = $phpgw->calendar->fetch_event($cal_stream,$overlapping_events[$i]);
|
$over = $phpgw->calendar->fetch_event($overlapping_events[$i]);
|
||||||
$overlap .= '<li>'.$phpgw->calendar->link_to_entry($over,$event->start->month,$event->start->mday,$event->start->year);
|
$overlap .= '<li>'.$phpgw->calendar->link_to_entry($over,$event->start->month,$event->start->mday,$event->start->year);
|
||||||
}
|
}
|
||||||
if(strlen($overlap) > 0)
|
if(strlen($overlap) > 0)
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
$phpgw_info['flags']['currentapp'] = 'calendar';
|
$phpgw_info['flags']['currentapp'] = 'calendar';
|
||||||
include('../header.inc.php');
|
include('../header.inc.php');
|
||||||
|
|
||||||
$cal_stream = $phpgw->calendar->open('INBOX',$owner,'');
|
$phpgw->calendar->open('INBOX',$owner,'');
|
||||||
$event = $phpgw->calendar->fetch_event($cal_stream,$id);
|
$event = $phpgw->calendar->fetch_event($id);
|
||||||
|
|
||||||
reset($event->participants);
|
reset($event->participants);
|
||||||
$participating = False;
|
$participating = False;
|
||||||
@ -45,8 +45,7 @@
|
|||||||
|
|
||||||
reset($event->participants);
|
reset($event->participants);
|
||||||
|
|
||||||
$tz_offset = ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset']));
|
$freetime = $phpgw->calendar->datetime->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $phpgw->calendar->datetime->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->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$event->participants);
|
||||||
|
|
||||||
echo $phpgw->calendar->view_event($event);
|
echo $phpgw->calendar->view_event($event);
|
||||||
|
@ -196,7 +196,7 @@ class calendar_ extends calendar__
|
|||||||
{
|
{
|
||||||
while($this->stream->next_record())
|
while($this->stream->next_record())
|
||||||
{
|
{
|
||||||
if($this->stream->f('cal_login') == $this->user)
|
if(intval($this->stream->f('cal_login')) == intval($this->user))
|
||||||
{
|
{
|
||||||
$this->event->users_status = $this->stream->f('cal_status');
|
$this->event->users_status = $this->stream->f('cal_status');
|
||||||
}
|
}
|
||||||
@ -486,7 +486,7 @@ class calendar_ extends calendar__
|
|||||||
ACCEPTED => 'A'
|
ACCEPTED => 'A'
|
||||||
);
|
);
|
||||||
$temp_event = $this->event;
|
$temp_event = $this->event;
|
||||||
$old_event = $this->fetch_event($this->stream,$id);
|
$old_event = $this->fetch_event($id);
|
||||||
switch($status)
|
switch($status)
|
||||||
{
|
{
|
||||||
case REJECTED:
|
case REJECTED:
|
||||||
|
@ -38,6 +38,10 @@
|
|||||||
$phpgw->calendar->open('INBOX',$owner,'');
|
$phpgw->calendar->open('INBOX',$owner,'');
|
||||||
$event = $phpgw->calendar->fetch_event($id);
|
$event = $phpgw->calendar->fetch_event($id);
|
||||||
|
|
||||||
|
echo '<center>';
|
||||||
|
|
||||||
|
if($event != False)
|
||||||
|
{
|
||||||
echo $phpgw->calendar->view_event($event);
|
echo $phpgw->calendar->view_event($event);
|
||||||
|
|
||||||
$thisyear = $event->start->year;
|
$thisyear = $event->start->year;
|
||||||
@ -51,8 +55,6 @@
|
|||||||
);
|
);
|
||||||
$p->set_file($templates);
|
$p->set_file($templates);
|
||||||
|
|
||||||
echo '<center>';
|
|
||||||
|
|
||||||
if (($event->owner == $owner) && ($phpgw->calendar->check_perms(PHPGW_ACL_EDIT) == True))
|
if (($event->owner == $owner) && ($phpgw->calendar->check_perms(PHPGW_ACL_EDIT) == True))
|
||||||
{
|
{
|
||||||
$var = Array(
|
$var = Array(
|
||||||
@ -76,7 +78,11 @@
|
|||||||
$p->set_var($var);
|
$p->set_var($var);
|
||||||
echo $p->finish($p->parse('out','form_button'));
|
echo $p->finish($p->parse('out','form_button'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo lang("Sorry, the owner has just deleted this event").'.';
|
||||||
|
}
|
||||||
echo '</center>';
|
echo '</center>';
|
||||||
|
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
|
@ -543,6 +543,7 @@ size email en Size
|
|||||||
small notes en Small
|
small notes en Small
|
||||||
sorry, that group name has already been taking. admin en Sorry, that group name has already been taking.
|
sorry, that group name has already been taking. admin en Sorry, that group name has already been taking.
|
||||||
sorry, the follow users are still a member of the group x admin en Sorry, the follow users are still a member of the group %1
|
sorry, the follow users are still a member of the group x admin en Sorry, the follow users are still a member of the group %1
|
||||||
|
sorry, the owner has just deleted this event calendar en Sorry, the owner has just deleted this event
|
||||||
sorry, there was a problem processing your request. common en Sorry, there was a problem processing your request.
|
sorry, there was a problem processing your request. common en Sorry, there was a problem processing your request.
|
||||||
sorry, your login has expired login en Sorry, your login has expired
|
sorry, your login has expired login en Sorry, your login has expired
|
||||||
source language transy en Source Language
|
source language transy en Source Language
|
||||||
|
Loading…
Reference in New Issue
Block a user