HTML/CSS calendar mimepart display
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 23 Jul 2007 06:29:41 +0000 (06:29 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 23 Jul 2007 06:29:41 +0000 (06:29 +0000)
webcit/calendar.c
webcit/static/webcit.css

index c61fc7c464365b245aeb568108fb4cfcd9217192..d37721a2f17e8f40991f0132d5eaef15d77023fa 100644 (file)
@@ -308,7 +308,7 @@ void cal_process_object(icalcomponent *cal,
 
        /** Trailing HTML for the display of this object */
        if (recursion_level == 0) {
-               wprintf("<p>&nbsp;</p></</div>\n");
+               wprintf("<p>&nbsp;</p></div>\n");
        }
 }
 
@@ -359,8 +359,7 @@ void respond_to_request(void) {
        serv_getln(buf, sizeof buf);
 
        if (buf[0] == '2') {
-               wprintf("<table border=0 cellpadding=0><tr><td>");
-               wprintf("<td><img align=\"center\" src=\"static/calarea_48x.gif\"></td><td><b><i>");
+               wprintf("<img src=\"static/calarea_48x.gif\"><span>");
                if (!strcasecmp(bstr("sc"), "accept")) {
                        wprintf(_("You have accepted this meeting invitation.  "
                                "It has been entered into your calendar.")
@@ -376,10 +375,11 @@ void respond_to_request(void) {
                }
                wprintf(" ");
                wprintf(_("A reply has been sent to the meeting organizer."));
-               wprintf("</i></b></td></tr></table>");
+               wprintf("</span>");
        } else {
-               wprintf("<img align=\"center\" src=\"static/error.gif\">&nbsp;<b><i>");
+               wprintf("<img align=\"center\" src=\"static/error.gif\"><span>");
                wprintf("%s\n", &buf[4]);
+               wprintf("</span>");
        }
 
        end_ajax_response();
@@ -403,8 +403,7 @@ void handle_rsvp(void) {
        serv_getln(buf, sizeof buf);
 
        if (buf[0] == '2') {
-               wprintf("<table border=0 cellpadding=0><tr><td>");
-               wprintf("<td><img align=\"center\" src=\"static/calarea_48x.gif\"></td><td><b><i>");
+               wprintf("<img src=\"static/calarea_48x.gif\"><span>");
                if (!strcasecmp(bstr("sc"), "update")) {
                        wprintf(_("Your calendar has been updated to reflect this RSVP."));
                } else if (!strcasecmp(bstr("sc"), "ignore")) {
@@ -412,9 +411,10 @@ void handle_rsvp(void) {
                                "Your calendar has <b>not</b> been updated.")
                        );
                }
-               wprintf("</i></b></td></tr></table>");
+               wprintf("</span>");
        } else {
-               wprintf("<img src=\"static/error.gif\" align=center> %s\n", &buf[4]);
+               wprintf("<img src=\"static/error.gif\"><span> %s\n", &buf[4]);
+               wprintf("</span>");
        }
 
        end_ajax_response();
index 24afab9964ad7667d2efb513db53c0846fb674c1..444c925359516363f847a2d2977e71094cca3f3a 100644 (file)
@@ -447,15 +447,24 @@ a:hover {
        font-style: italic;
 }
 .mimepart {
-       margin-top: 0;
+       margin-top: 15px;
+       margin-bottom: 15px;
        margin-left: 15%;
        width: 70%;
-       padding: 1%;
+       padding: 0;
        background-color: #FFFFDD;
+       border: 2px solid lightgrey;
+}
+
+.mimepart img {
+        vertical-align: middle;
 }
 
 .mimepart div {
-       font-size: 12pt;
+       margin:0 ;
+       padding: 5px;
+        background-color: #FFFFFF;
+       font-size: 11pt;
         font-weight: bold;
 }
 
@@ -465,7 +474,9 @@ a:hover {
 
 .mimepart dl {
        width: 100%;
+       padding: 5px;
 }
+
 .mimepart dl dt {
        width: 30%;
        float: left;
@@ -481,7 +492,7 @@ dt { clear: both; }
 
 .mimepart dl dd {
        float: left;
-       width: 65%;
+       width: 62%;
        margin: 0 0 0 0;
        padding: .5em;
        border-top: 1px solid #999;