$Log$
+Revision 400.41 2002/10/19 17:10:14 ajc
+* Add "Tentative" accept button
+* Only display Accept/Tentative/Decline button when method=REQUEST
+
Revision 400.40 2002/10/19 04:16:37 ajc
* Save an incoming meeting request into the user's calendar.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
) {
icalcomponent *c;
icalproperty *method = NULL;
- icalproperty_method the_method;
+ icalproperty_method the_method = ICAL_METHOD_NONE;
icalproperty *p;
struct icaltimetype t;
time_t tt;
</TD></TR>\n"
);
break;
+ case ICAL_METHOD_PUBLISH:
+ wprintf("<TR><TD COLSPAN=2>\n"
+ "<IMG ALIGN=CENTER "
+ "SRC=\"/static/vcalendar.gif\">"
+ " "
+ "<B>Published event</B>
+ </TD></TR>\n"
+ );
+ break;
default:
wprintf("<TR><TD COLSPAN=2>"
"I don't know what to do with this.</TD></TR>"
cal_process_object(c, recursion_level+1, msgnum, cal_partnum);
}
- /* Trailing HTML for the display of this object */
- if (recursion_level == 0) {
+ /* If this is a REQUEST, display the Accept/Decline buttons */
+ if (the_method == ICAL_METHOD_REQUEST) {
wprintf("<TR><TD COLSPAN=2>"
"<FORM METHOD=\"GET\" "
"ACTION=\"/respond_to_request\">\n"
"<INPUT TYPE=\"hidden\" NAME=\"cal_partnum\" "
"VALUE=\"%s\">"
"</FORM>"
- "</TD></TR></TABLE></CENTER>\n",
+ "</TD></TR>\n",
msgnum, cal_partnum
);
}
+
+ /* Trailing HTML for the display of this object */
+ if (recursion_level == 0) {
+ wprintf("</TD></TR></TABLE></CENTER>\n");
+ }
}