Cal,
delete_cal);
-#ifdef TECH_PREVIEW
-
/* handle recurring events */
if (icaltime_is_null_time(dtstart)) return; /* Can't recur without a start time */
}
lprintf(9, "Performed %d recurrences; final one is %s", num_recur, ctime(&final_recurrence));
-#endif /* TECH_PREVIEW */
-
}
char attendee_string[SIZ];
char buf[SIZ];
int organizer_is_me = 0;
- int i;
+ int i, j = 0;
int sequence = 0;
lprintf(9, "display_edit_individual_event(%ld) calview=%s year=%s month=%s day=%s\n",
struct icalrecurrencetype recur;
rrule = icalcomponent_get_first_property(vevent, ICAL_RRULE_PROPERTY);
+
+ wprintf("<INPUT TYPE=\"checkbox\" id=\"is_recur\" NAME=\"is_recur\" "
+ "VALUE=\"yes\" "
+ /* "onclick=\"GreyOrUnGrayStuffFIXME();\"" */
+ " %s >%s",
+ (rrule ? "CHECKED=\"CHECKED\"" : "" ),
+ _("This is a repeating event")
+ );
+
if (rrule) {
recur = icalproperty_get_rrule(rrule);
wprintf(_("Repeats"));
wprintf("</b></td><td>");
if ((recur.freq < 0) || (recur.freq > 6)) recur.freq = 4;
- wprintf("every %d %s", recur.interval, frequency_units[recur.freq]);
+ wprintf("every %d %s", recur.interval, frequency_units[recur.freq]); //FIXME
+ wprintf("</td></tr>\n");
+
+ wprintf("<tr><td><b>");
+ wprintf("byday"); //FIXME
+ wprintf("</b></td><td>");
+ for (i=0; i<ICAL_BY_DAY_SIZE; ++i) {
+ if (recur.by_day[i] == ICAL_RECURRENCE_ARRAY_MAX) {
+ i = ICAL_RECURRENCE_ARRAY_MAX; /* all done */
+ }
+ else {
+ for (j=1; j<=ICAL_SATURDAY_WEEKDAY; ++j) {
+ if (icalrecurrencetype_day_day_of_week(recur.by_day[i]) == j) {
+ wprintf("day%d, ", j);
+ }
+ }
+ }
+ }
wprintf("</td></tr>\n");
wprintf("</table>\n");