$tmpl->assign('repeat_bymonth_options', $repeat_bymonth_options); $tmpl->assign('repeat_byweekno_options', $repeat_byweekno_options); $tmpl->assign('repeat_bymonthday_options', $repeat_bymonthday_options); $tmpl->assign('repeat_weekofmonth_options', $repeat_weekofmonth_options); $tmpl->assign('title', $summary); $tmpl->assign('accessclass', $accessclass); $tmpl->assign('location', $location); $tmpl->assign('categories', $categories); $tmpl->assign('calendar', $data['calendarid']); $tmpl->assign('allday', $allday); $tmpl->assign('startdate', $startdate); $tmpl->assign('starttime', $starttime); $tmpl->assign('enddate', $enddate); $tmpl->assign('endtime', $endtime); $tmpl->assign('description', $description); $alarms = OC_Calendar_Object::getAlarms($id); $tmpl->assign('alarms', $alarms); $tmpl->assign('repeat', $repeat['repeat']); if ($repeat['repeat'] != 'doesnotrepeat') { if (array_key_exists('weekofmonth', $repeat) === false) { $repeat['weekofmonth'] = 1; } $tmpl->assign('repeat_month', isset($repeat['month']) ? $repeat['month'] : 'monthday'); $tmpl->assign('repeat_weekdays', isset($repeat['weekdays']) ? $repeat['weekdays'] : array()); $tmpl->assign('repeat_interval', isset($repeat['interval']) ? $repeat['interval'] : '1'); $tmpl->assign('repeat_end', isset($repeat['end']) ? $repeat['end'] : 'never'); $tmpl->assign('repeat_count', isset($repeat['count']) ? $repeat['count'] : '10'); $tmpl->assign('repeat_weekofmonth', $repeat['weekofmonth']); $tmpl->assign('repeat_date', isset($repeat['date']) ? $repeat['date'] : ''); $tmpl->assign('repeat_year', isset($repeat['year']) ? $repeat['year'] : array()); $tmpl->assign('repeat_byyearday', isset($repeat['byyearday']) ? $repeat['byyearday'] : array());