From dea970a32cbab520088e9eea46fc9aca36e9883e Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Sun, 7 Oct 2007 07:36:26 +0000 Subject: [PATCH] display webcit calendar day view with dayend parameter --- webcit/calendar_view.c | 18 +++++++++++++++--- webcit/static/webcit.css | 14 +++++--------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 86acbb416..c02e0d2d0 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -787,8 +787,20 @@ void calendar_day_view(int year, int month, int day) { wprintf(" \n"); /** Innermost cell (contains hours etc.) */ - wprintf(""); /* end of innermost table */ /** Extra events on the middle */ - wprintf("
"); - wprintf("
"); + wprintf("
"); + wprintf("
", + (dayend - daystart) * 30, + (dayend - daystart) * 30 + ); /** Now the middle of the day... */ for (hour = 0; hour <= dayend; ++hour) { /* could do HEIGHT=xx */ if (hour >= daystart) { @@ -819,7 +831,7 @@ void calendar_day_view(int year, int month, int day) { wprintf("
"); + wprintf(""); wprintf("
"); diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index abc68d6ba..1caa35bd7 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -1117,18 +1117,14 @@ ul.tabbed_dialog li { height: 302px; } -dl.middle_of_the_day { - padding:0 ; - margin: 0; - position: absolute ; - top: 0; - left: 0; +td.middle_of_the_day { width: 500px; - clip: rect(0px 500px 300px 0px); - clip: rect(0px, 500px, 300px, 0px); } -.middle_of_the_day dt { +.middle_of_the_day dl { +} + +.middle_of_the_day dl dt { background-color: #FFFFFF; padding:0 ; width: 100%; -- 2.39.2