localtime_r(&event_tt, &event_tm);
}
-lprintf(9, "Event: %04d-%s-%02d, Now: %04d-%s-%02d\n",
- event_tm.tm_year + 1900,
- ascmonths[event_tm.tm_mon],
- event_tm.tm_mday,
- today_tm.tm_year + 1900,
- ascmonths[today_tm.tm_mon],
- today_tm.tm_mday);
-
if ((event_tm.tm_year == today_tm.tm_year)
&& (event_tm.tm_mon == today_tm.tm_mon)
&& (event_tm.tm_mday == today_tm.tm_mday)) {
}
/* Outer table (to get the background color) */
- wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
+ wprintf("<div id=\"fix_scrollbar_bug\">"
+ "<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
"bgcolor=#204B78><TR><TD>\n");
wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0><tr>\n");
wprintf("<TR>");
}
- wprintf("<TD BGCOLOR=\"#%s\" WIDTH=14%% HEIGHT=60 VALIGN=TOP><B>",
+ wprintf("<TD BGCOLOR=\"#%s\" WIDTH=14%% HEIGHT=60 align=left VALIGN=TOP><B>",
((tm.tm_mon != month-1) ? "DDDDDD" :
((tm.tm_wday==0 || tm.tm_wday==6) ? "EEEECC" :
"FFFFFF"))
wprintf("</TABLE>" /* end of inner table */
"</TD></TR></TABLE>" /* end of outer table */
- "</CENTER>\n");
+ "</div>\n");
}
int all_day_event = 0;
if (WC->num_cal == 0) {
- wprintf("<br /><br /><br />\n");
+ // FIXME wprintf("<br /><br /><br />\n");
return;
}
/* Outer table (to get the background color) */
- wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
+ wprintf("<div id=\"fix_scrollbar_bug\">"
+ "<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
"bgcolor=#204B78><TR><TD>\n");
/* Inner table (the real one) */
wprintf("</TR></TABLE>\n");
/* End todays-date-with-left-and-right-arrows */
- wprintf("<br /><br /><CENTER><font color=#FFFFFF>"
- " <A HREF=\"/display_edit_event?msgnum=0"
- "&year=%d&month=%d&day=%d\">"
- "Add new calendar event</A>"
- "<br /><br />\n",
- year, month, day
- );
-
- wprintf("<A HREF=\"readfwd?calview=month&year=%d&month=%d&day=1\">"
- "Back to month view</A>\n", year, month);
+ /* In the future we might want to put a month-o-matic here */
wprintf("</FONT></CENTER>\n");
wprintf("</TR></TABLE>" /* end of inner table */
- "</TD></TR></TABLE>" /* end of outer table */
+ "</TD></TR></TABLE></div>" /* end of outer table */
);
char buf[SIZ];
icalproperty *p;
- do_template("beginbox_nt");
-
- wprintf("<TABLE BORDER=0 CELLSPACING=0 WIDTH=100%%>\n<TR>\n"
+ wprintf("<div id=\"fix_scrollbar_bug\">"
+ "<table border=0 cellspacing=0 width=100%% bgcolor=\"#FFFFFF\">\n<tr>\n"
"<TH>Name of task</TH>\n"
"<TH>Date due</TH></TR>\n"
);
wprintf(">%s</FONT></TD></TR>\n", buf);
}
- wprintf("</TABLE>\n");
-
- do_template("endbox");
-
+ wprintf("</table></div>\n");
/* Free the list */
free_calendar_buffer();