$Log$
+Revision 400.47 2002/11/12 05:57:27 ajc
+* Display a nicer looking screen when replying to calendar invitations
+* When displaying day view, don't show all day events twice
+* Day or month view: denote all day events by displaying them inside
+ a grey box.
+
Revision 400.46 2002/11/12 03:26:39 ajc
* Tell the user about broken Citadel server connections instead of
simply printing "Goodbye"
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
icalproperty *p;
struct icaltimetype t;
int month, day, year;
+ int all_day_event = 0;
if (WC->num_cal == 0) {
wprintf("<BR><BR><BR>\n");
&& (t.month == month)
&& (t.day == day)) {
+ if (t.is_date) all_day_event = 1;
+
p = icalcomponent_get_first_property(
WC->disp_cal[i],
ICAL_SUMMARY_PROPERTY);
if (p != NULL) {
+
+ if (all_day_event) {
+ wprintf("<TABLE border=1 cellpadding=2><TR>"
+ "<TD BGCOLOR=#CCCCCC>"
+ );
+ }
+
wprintf("<FONT SIZE=-1>"
"<A HREF=\"/display_edit_event?msgnum=%ld&calview=%s&year=%s&month=%s&day=%s\">",
WC->cal_msgnum[i],
escputs((char *)
icalproperty_get_comment(p));
wprintf("</A></FONT><BR>\n");
+
+ if (all_day_event) {
+ wprintf("</TD></TR></TABLE>");
+ }
+
}
}
int i;
icalproperty *p;
struct icaltimetype t;
+ int all_day_event = 0;
if (WC->num_cal == 0) {
wprintf("<BR><BR><BR>\n");
if ((t.year == year)
&& (t.month == month)
&& (t.day == day)
- && ( (t.hour == hour) || ((hour<0)&&(t.is_date)) )
+ && ( ((t.hour == hour)&&(!t.is_date)) || ((hour<0)&&(t.is_date)) )
) {
+ if (t.is_date) all_day_event = 1;
+
p = icalcomponent_get_first_property(
WC->disp_cal[i],
ICAL_SUMMARY_PROPERTY);
if (p != NULL) {
+
+ if (all_day_event) {
+ wprintf("<TABLE border=1 cellpadding=2><TR>"
+ "<TD BGCOLOR=#CCCCCC>"
+ );
+ }
+
wprintf("<FONT SIZE=-1>"
"<A HREF=\"/display_edit_event?msgnum=%ld&calview=day&year=%d&month=%d&day=%d\">",
WC->cal_msgnum[i],
escputs((char *)
icalproperty_get_comment(p));
wprintf("</A></FONT><BR>\n");
+
+ if (all_day_event) {
+ wprintf("</TD></TR></TABLE>");
+ }
}
}