* by feivel: make the current day be highlighted in monthly calendar view. Fixes...
[citadel.git] / webcit / calendar_view.c
index 48ac994666d7fa64fe4b77293b809b101fd4d569..bee159b82f24cb79fb67d7246e21aec32c86dfc3 100644 (file)
@@ -596,8 +596,9 @@ void calendar_month_view(int year, int month, int day) {
 
                wprintf("<td class=\"cal%s\"><div class=\"day\">",
                        ((tm.tm_mon != month-1) ? "out" :
+                               ((tm.tm_mday == day) ? "today" :
                                ((tm.tm_wday==0 || tm.tm_wday==6) ? "weekend" :
-                                       "day"))
+                                       "day")))
                        );
                if ((i==0) || (tm.tm_mday == 1)) {
                        wc_strftime(colheader_label, sizeof colheader_label, "%B", &tm);