* Fixed bug that caused any events following an all day event to also appear
with the shadebox.
$Log$
+Revision 400.53 2002/11/16 23:15:02 ajc
+* Make the "all day event" shadebox smaller (month view) - no border.
+* Fixed bug that caused any events following an all day event to also appear
+ with the shadebox.
+
Revision 400.52 2002/11/16 05:40:54 ajc
* When adding new events to the calendar, default to the month [and day]
currently being viewed.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
ICAL_DTSTART_PROPERTY);
if (p != NULL) {
t = icalproperty_get_dtstart(p);
- tt = icaltime_as_timet(t);
- fmt_date(buf, tt);
- wprintf("<TR><TD><B>Starting date/time:</B></TD><TD>"
- "%s</TD></TR>", buf
- );
+
+ if (t.is_date) {
+ wprintf("<TR><TD><B>Date:"
+ "</B></TD><TD>"
+ "%s %d, %d</TD></TR>",
+ months[t.month - 1],
+ t.day, t.year
+ );
+ }
+ else {
+ tt = icaltime_as_timet(t);
+ fmt_date(buf, tt);
+ wprintf("<TR><TD><B>Starting date/time:"
+ "</B></TD><TD>"
+ "%s</TD></TR>", buf
+ );
+ }
}
p = icalcomponent_get_first_property(cal, ICAL_DTEND_PROPERTY);
&& (t.day == day)) {
if (t.is_date) all_day_event = 1;
+ else all_day_event = 0;
p = icalcomponent_get_first_property(
WC->disp_cal[i],
if (p != NULL) {
if (all_day_event) {
- wprintf("<TABLE border=1 cellpadding=2><TR>"
- "<TD BGCOLOR=#CCCCCC>"
+ wprintf("<TABLE border=0 cellpadding=2><TR>"
+ "<TD BGCOLOR=#AAAAAA>"
);
}