task #9747: Can show content of external calendar (ical) into agenda

This commit is contained in:
Juanjo Menent 2011-06-07 11:05:20 +00:00
parent f213196ca2
commit 902f70dac3
2 changed files with 3 additions and 3 deletions

View File

@ -44,8 +44,8 @@ $actionsave=GETPOST("save");
if (empty($conf->global->AGENDA_EXT_NB)) $conf->global->AGENDA_EXT_NB=5;
$MAXAGENDA=empty($conf->global->AGENDA_EXT_NB)?5:$conf->global->AGENDA_EXT_NB;
// List of Google colors (A lot of colors are ignored by Google)
$colorlist=array('29527A','5229A3','A32929','7A367A','B1365F','0D7813');
// List of aviable colors
$colorlist=array('BECEDD','DDBECE','BFDDBE','F598B4','F68654','CBF654','9FAF9');
/*
* Actions

View File

@ -514,7 +514,7 @@ if ($conf->global->ENABLE_AGENDA_EXT==1 && $conf->global->AGENDA_EXT_NB>0)
$event->datep=$icalevent[DTSTART];
$event->datef=$icalevent[DTEND];
$event->type_code="ICALEVENT";
$event->libelle='<b>'.$icalevent[SUMMARY].'</b><br>'.str_replace("\\n", "<br>", "$icalevent[DESCRIPTION]");;
$event->libelle='<b>'.$icalevent[SUMMARY].'</b><br>'.str_replace("\\n", "<br>", "$icalevent[DESCRIPTION]");
//$event->fulldayevent=$obj->fulldayevent;
$event->date_start_in_calendar=$event->datep;