/*
* $Id$
*
- *
+ * Handles the HTML display of calendar items.
*/
#include <ctype.h>
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("<center>"
+ "<TABLE width=99%% border=0 cellpadding=0 cellspacing=0 "
"bgcolor=#204B78><TR><TD>\n");
wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0><tr>\n");
- wprintf("<TD align=left><font color=#FFFFFF size=-2>"
- "Click on any date for day view "
- "</FONT></TD>\n");
wprintf("<TD ALIGN=CENTER>");
(int)(tm.tm_year)+1900, tm.tm_mon + 1);
wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/forward.gif\" BORDER=0></A>\n");
- wprintf("</TD><TD align=right><font color=#FFFFFF size=-2>"
- "Click on any date for day view "
- "</FONT></TD></TR></TABLE>\n");
+ wprintf("</TD></TR></TABLE>\n");
/* Inner table (the real one) */
wprintf("<TABLE width=100%% border=0 cellpadding=1 cellspacing=1 "
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"))
/* Outer table (to get the background color) */
- wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
+ wprintf("<center>"
+ "<TABLE width=99%% border=0 cellpadding=0 cellspacing=0 "
"bgcolor=#204B78><TR><TD>\n");
/* Inner table (the real one) */
wprintf("</TR></TABLE>" /* end of inner table */
- "</TD></TR></TABLE>" /* end of outer table */
+ "</TD></TR></TABLE></center>" /* end of outer table */
);
wprintf("</TABLE>\n");
- wprintf("<hr /><A HREF=\"/display_edit_task?msgnum=0\">"
- "Add new task</A>\n"
- );
-
do_template("endbox");