X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar_view.c;h=0e8ac9843385bc217f6326014f2110af9c2033cd;hb=fb6f6fa4ec4e3277e30d84326d48e6850822d318;hp=0d81611a69af775afbab2124307a3ebaad805b72;hpb=a3ba94ad306d781296c53012f732f3a910015263;p=citadel.git diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 0d81611a6..0e8ac9843 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -1,7 +1,15 @@ /* - * $Id$ - * * Handles the HTML display of calendar items. + * + * Copyright (c) 1996-2012 by the citadel.org team + * + * This program is open source software. You can redistribute it and/or + * modify it under the terms of the GNU General Public License, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. */ #include "webcit.h" @@ -26,7 +34,7 @@ void embeddable_mini_calendar(int year, int month) long weekstart = 0; char url[256]; char div_id[256]; - + snprintf(div_id, sizeof div_id, "mini_calendar_%d", rand() ); /* Determine what day to start. If an impossible value is found, start on Sunday. @@ -80,7 +88,7 @@ void embeddable_mini_calendar(int year, int month) wc_printf("»", (int)(tm.tm_year)+1900, tm.tm_mon + 1); - wc_printf("
%d | ", url, tm.tm_mday); } @@ -174,7 +182,7 @@ void calendar_month_view_display_events(int year, int month, int day) time_t tt; if (GetCount(WCC->disp_cal_items) == 0) { - wc_printf("