/** Begin output */
output_headers(1, 1, 2, 0, 0, 0);
wprintf("<div id=\"banner\">\n"
- "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+ "<TABLE class=\"event_banner\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">");
wprintf(_("Add or edit an event"));
wprintf("</SPAN>"
wprintf("<div class=\"fix_scrollbar_bug\">"
- "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
+ "<table class=\"event_background\"><tr><td>\n");
/************************************************************
* Uncomment this to see the UID in calendar events for debugging
"<FONT SIZE=-2>");
wprintf(_("(One per line)"));
wprintf("</FONT></TD><TD>"
- "<TEXTAREA %s NAME=\"attendees\" wrap=soft "
+ "<TEXTAREA %s NAME=\"attendees\" id=\"attendees_box\" wrap=soft "
"ROWS=3 COLS=80 WIDTH=80>\n",
(organizer_is_me ? "" : "DISABLED ")
);
lprintf(9, "Encapsulating into full VCALENDAR component\n");
encaps = ical_encapsulate_subcomponent(icalcomponent_new_clone(vevent));
+ /* Set the method to PUBLISH */
+ icalcomponent_set_method(encaps, ICAL_METHOD_PUBLISH);
+
/** If the user clicked 'Save' then save it to the server. */
lprintf(9, "Serializing it for saving\n");
if ( (encaps != NULL) && (strlen(bstr("save_button")) > 0) ) {
serv_puts(icalcomponent_as_ical_string(encaps));
serv_puts("000");
}
- while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
- lprintf(9, "ENT0 REPLY: %s\n", buf);
+ if ( (buf[0] == '8') || (buf[0] == '4') ) {
+ while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
+ lprintf(9, "ENT0 REPLY: %s\n", buf);
+ }
+ }
+ if (buf[0] == '2') {
+ strcpy(WC->ImportantMessage, &buf[4]);
}
icalcomponent_free(encaps);
}
icalcomponent_free(vevent);
}
- /** If this was a save or deelete, go back to the calendar view. */
+ /** If this was a save or delete, go back to the calendar view. */
if (strlen(bstr("check_button")) == 0) {
readloop("readfwd");
}