From 35545339a95fb7bd7a8725e157e23a40412c9a7c Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Fri, 20 Jul 2007 12:08:58 +0000 Subject: [PATCH] - some HTML/CSS improvments - I began the improvment the display of mime type calendar in messages (to avoid black background display with IE) --- webcit/calendar.c | 72 +++++++++++++++++++--------------------- webcit/iconbar.c | 4 +-- webcit/mainmenu.c | 5 ++- webcit/static/webcit.css | 8 ++--- webcit/summary.c | 5 ++- 5 files changed, 44 insertions(+), 50 deletions(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index 64d32d50c..6db5de728 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -92,7 +92,7 @@ void cal_process_object(icalcomponent *cal, /** Leading HTML for the display of this object */ if (recursion_level == 0) { - wprintf("
\n"); + wprintf("
\n"); } /** Look for a method */ @@ -103,6 +103,7 @@ void cal_process_object(icalcomponent *cal, the_method = icalproperty_get_method(method); char *title; + wprintf("

"); switch(the_method) { case ICAL_METHOD_REQUEST: title = _("Meeting invitation"); @@ -117,32 +118,33 @@ void cal_process_object(icalcomponent *cal, title = _("This is an unknown type of calendar item."); break; } + wprintf(""); - wprintf("

\n", + wprintf("" + "  %s", title ); + wprintf(""); } + wprintf("
"); p = icalcomponent_get_first_property(cal, ICAL_SUMMARY_PROPERTY); if (p != NULL) { - wprintf("
\n"); + wprintf("\n"); } p = icalcomponent_get_first_property(cal, ICAL_LOCATION_PROPERTY); if (p != NULL) { - wprintf("\n"); + wprintf("\n"); } /** @@ -164,16 +166,16 @@ void cal_process_object(icalcomponent *cal, d_tm.tm_mon = t.month - 1; d_tm.tm_mday = t.day; wc_strftime(d_str, sizeof d_str, "%x", &d_tm); - wprintf("", d_str); + wprintf("
%s
", d_str); } else { tt = icaltime_as_timet(t); fmt_date(buf, tt, 0); - wprintf("", buf); + wprintf("
%s
", buf); } } @@ -182,27 +184,27 @@ void cal_process_object(icalcomponent *cal, t = icalproperty_get_dtend(p); tt = icaltime_as_timet(t); fmt_date(buf, tt, 0); - wprintf("", buf); + wprintf("
%s
", buf); } } p = icalcomponent_get_first_property(cal, ICAL_DESCRIPTION_PROPERTY); if (p != NULL) { - wprintf("\n"); + wprintf("\n"); } /** If the component has attendees, iterate through them. */ for (p = icalcomponent_get_first_property(cal, ICAL_ATTENDEE_PROPERTY); (p != NULL); p = icalcomponent_get_next_property(cal, ICAL_ATTENDEE_PROPERTY)) { - wprintf("\n"); + wprintf("\n"); } /** If the component has subcomponents, recurse through them. */ @@ -248,31 +250,29 @@ void cal_process_object(icalcomponent *cal, _("This event would conflict with '%s' which is already in your calendar."), conflict_name); } - wprintf("\n"); + wprintf("\n"); } } lprintf(9, "...done.\n"); + wprintf(""); + /** Display the Accept/Decline buttons */ - wprintf("\n", + "\n", divname, _("How would you like to respond to this invitation?"), divname, divname, msgnum, cal_partnum, _("Accept"), @@ -293,16 +293,12 @@ void cal_process_object(icalcomponent *cal, ***********/ /** Display the update buttons */ - wprintf("\n", + "\n", divname, _("Click Update to accept this reply and update your calendar."), divname, divname, msgnum, cal_partnum, _("Update"), @@ -313,7 +309,7 @@ void cal_process_object(icalcomponent *cal, /** Trailing HTML for the display of this object */ if (recursion_level == 0) { - wprintf("
\n"); wprintf("
", divname); - wprintf("" - "  %s
"); + wprintf("
"); wprintf(_("Summary:")); - wprintf("
"); + wprintf("
"); escputs((char *)icalproperty_get_comment(p)); - wprintf("
"); + wprintf("
"); wprintf(_("Location:")); - wprintf("
"); + wprintf("
"); escputs((char *)icalproperty_get_comment(p)); - wprintf("
"); + wprintf("
"); wprintf(_("Date:")); - wprintf("
%s
"); + wprintf("
"); wprintf(_("Starting date/time:")); - wprintf("
%s
"); + wprintf("
"); wprintf(_("Ending date/time:")); - wprintf("
%s
"); + wprintf("
"); wprintf(_("Description:")); - wprintf("
"); + wprintf("
"); escputs((char *)icalproperty_get_comment(p)); - wprintf("
"); + wprintf("
"); wprintf(_("Attendee:")); - wprintf("
"); + wprintf("
"); safestrncpy(buf, icalproperty_get_attendee(p), sizeof buf); if (!strncasecmp(buf, "MAILTO:", 7)) { @@ -216,7 +218,7 @@ void cal_process_object(icalcomponent *cal, partstat_as_string(buf, p); escputs(buf); } - wprintf("
%s", + wprintf("
%s", (is_update ? _("Update:") : _("CONFLICT:") ) ); escputs(conflict_message); - wprintf("
" - "
" + wprintf("
" "%s " - "" "%s" " | " "%s" " | " "%s" - "" - "
" - "
" - "
" + wprintf("
" "%s" - "" "%s" " | " "%s" - "" - "
" - "
\n"); + wprintf("\n"); } } diff --git a/webcit/iconbar.c b/webcit/iconbar.c index 00ecb0fa9..6c43ac706 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -485,7 +485,7 @@ void display_customize_iconbar(void) { } output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); + wprintf("
\n"); wprintf("

"); wprintf(_("Customize the icon bar")); wprintf("

\n"); @@ -791,7 +791,7 @@ void commit_iconbar(void) { set_preference("iconbar", iconbar, 1); output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); + wprintf("
\n"); wprintf("

"); wprintf(_("Customize the icon bar")); wprintf("

\n"); diff --git a/webcit/mainmenu.c b/webcit/mainmenu.c index 352687760..a11dc66ae 100644 --- a/webcit/mainmenu.c +++ b/webcit/mainmenu.c @@ -198,12 +198,11 @@ void display_aide_menu(void) { output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); - wprintf("
\n"); + wprintf("
\n"); wprintf("

"); wprintf(_("System Administration Menu")); wprintf("

"); - wprintf("
"); + wprintf("
"); wprintf("
"); diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index 7fbec05ca..060b37f46 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -71,12 +71,12 @@ body { background: #445; } -#banner .room_banner, #banner .service_banner { +#banner .room_banner, #banner .service { float: left; width: 48%; } -.room_banner img, .service_banner img { +.room_banner img, .service img { float: left; margin-top: 0; margin-left: 0; @@ -92,7 +92,7 @@ body { padding: 2px; } -.service_banner h1 { +.service h1 { font-size: 12pt; font-weight: bold; color: #FFFFEE; @@ -100,7 +100,7 @@ body { padding: 2px; } -.service_banner h2 { +.service h2 { font-size: 11pt; font-weight: bold; color: #FFFFEE; diff --git a/webcit/summary.c b/webcit/summary.c index d3457e71a..c2df827a3 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -309,15 +309,14 @@ void summary(void) { char title[256]; output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); - wprintf("
\n"); + wprintf("
\n"); wprintf(""); wprintf("

"); snprintf(title, sizeof title, _("Summary page for %s"), WC->wc_fullname); escputs(title); wprintf("

\n"); output_date(); - wprintf("

"); + wprintf(""); wprintf("
  • "); offer_start_page(); wprintf("
"); -- 2.30.2