* fix_scrollbar_bug is now a class instead of an id. Fixes validator warnings.
[citadel.git] / webcit / calendar.c
index 49e572a90206c22bc0d30f22595a746ac472c3c8..b52ce71591ce243ebe9b82d728652ea8965afebb 100644 (file)
@@ -84,7 +84,7 @@ void cal_process_object(icalcomponent *cal,
                    case ICAL_METHOD_REQUEST:
                        wprintf("<tr><td colspan=\"2\">\n"
                                "<img align=\"center\" "
-                               "src=\"/static/calarea_48x.gif\">"
+                               "src=\"static/calarea_48x.gif\">"
                                "&nbsp;&nbsp;"  
                                "<B>");
                        wprintf(_("Meeting invitation"));
@@ -93,7 +93,7 @@ void cal_process_object(icalcomponent *cal,
                    case ICAL_METHOD_REPLY:
                        wprintf("<TR><TD COLSPAN=2>\n"
                                "<IMG ALIGN=CENTER "
-                               "SRC=\"/static/calarea_48x.gif\">"
+                               "src=\"static/calarea_48x.gif\">"
                                "&nbsp;&nbsp;"  
                                "<B>");
                        wprintf(_("Attendee's reply to your invitation"));
@@ -102,7 +102,7 @@ void cal_process_object(icalcomponent *cal,
                    case ICAL_METHOD_PUBLISH:
                        wprintf("<TR><TD COLSPAN=2>\n"
                                "<IMG ALIGN=CENTER "
-                               "SRC=\"/static/calarea_48x.gif\">"
+                               "src=\"static/calarea_48x.gif\">"
                                "&nbsp;&nbsp;"  
                                "<B>");
                        wprintf(_("Published event"));
@@ -249,11 +249,11 @@ void cal_process_object(icalcomponent *cal,
                /* Display the Accept/Decline buttons */
                wprintf("<TR><TD>How would you like to respond to this invitation?</td>"
                        "<td><FONT SIZE=+1>"
-                       "<A HREF=\"/respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Accept\">%s</a>"
+                       "<a href=\"respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Accept\">%s</a>"
                        " | "
-                       "<A HREF=\"/respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Tentative\">%s</a>"
+                       "<a href=\"respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Tentative\">%s</a>"
                        " | "
-                       "<A HREF=\"/respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Decline\">%s</a>"
+                       "<a href=\"respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Decline\">%s</a>"
                        "</FONT></TD></TR>\n",
                        msgnum, cal_partnum, _("Accept"),
                        msgnum, cal_partnum, _("Tentative"),
@@ -277,9 +277,9 @@ void cal_process_object(icalcomponent *cal,
                wprintf("<TR><TD>"
                        "%s"
                        "</td><td><font size=+1>"
-                       "<a href=\"/handle_rsvp?msgnum=%ld&cal_partnum=%s&sc=Update\">%s</a>"
+                       "<a href=\"handle_rsvp?msgnum=%ld&cal_partnum=%s&sc=Update\">%s</a>"
                        " | "
-                       "<a href=\"/handle_rsvp?msgnum=%ld&cal_partnum=%s&sc=Ignore\">%s</a>"
+                       "<a href=\"handle_rsvp?msgnum=%ld&cal_partnum=%s&sc=Ignore\">%s</a>"
                        "</font>"
                        "</TD></TR>\n",
                        _("Click <i>Update</i> to accept this reply and update your calendar."),
@@ -328,7 +328,7 @@ void cal_process_attachment(char *part_source, long msgnum, char *cal_partnum) {
 void respond_to_request(void) {
        char buf[SIZ];
 
-       output_headers(1, 1, 2, 0, 0, 0, 0);
+       output_headers(1, 1, 2, 0, 0, 0);
 
        wprintf("<div id=\"banner\">\n");
        wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
@@ -348,7 +348,7 @@ void respond_to_request(void) {
 
        if (buf[0] == '2') {
                wprintf("<TABLE BORDER=0><TR><TD>"
-                       "<IMG SRC=\"static/calarea_48x.gif\" ALIGN=CENTER>"
+                       "<img src=\"static/calarea_48x.gif\" ALIGN=CENTER>"
                        "</TD><TD>"
                );
                if (!strcasecmp(bstr("sc"), "accept")) {
@@ -368,11 +368,11 @@ void respond_to_request(void) {
                wprintf(_("A reply has been sent to the meeting organizer."));
                wprintf("</TD></TR></TABLE>\n");
        } else {
-               wprintf("<IMG SRC=\"static/error.gif\" ALIGN=CENTER>"
+               wprintf("<img src=\"static/error.gif\" ALIGN=CENTER>"
                        "%s\n", &buf[4]);
        }
 
-       wprintf("<A HREF=\"/dotskip?room=");
+       wprintf("<a href=\"dotskip?room=");
        urlescputs(WC->wc_roomname);
        wprintf("\"><br />");
        wprintf(_("Return to messages"));
@@ -389,7 +389,7 @@ void respond_to_request(void) {
 void handle_rsvp(void) {
        char buf[SIZ];
 
-       output_headers(1, 1, 2, 0, 0, 0, 0);
+       output_headers(1, 1, 2, 0, 0, 0);
 
        wprintf("<div id=\"banner\">\n");
        wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
@@ -409,7 +409,7 @@ void handle_rsvp(void) {
 
        if (buf[0] == '2') {
                wprintf("<TABLE BORDER=0><TR><TD>"
-                       "<IMG SRC=\"static/calarea_48x.gif\" ALIGN=CENTER>"
+                       "<img src=\"static/calarea_48x.gif\" ALIGN=CENTER>"
                        "</TD><TD>"
                );
                if (!strcasecmp(bstr("sc"), "update")) {
@@ -422,11 +422,11 @@ void handle_rsvp(void) {
                wprintf("</TD></TR></TABLE>\n"
                );
        } else {
-               wprintf("<IMG SRC=\"static/error.gif\" ALIGN=CENTER>"
+               wprintf("<img src=\"static/error.gif\" ALIGN=CENTER>"
                        "%s\n", &buf[4]);
        }
 
-       wprintf("<A HREF=\"/dotskip?room=");
+       wprintf("<a href=\"dotskip?room=");
        urlescputs(WC->wc_roomname);
        wprintf("\"><br />");
        wprintf(_("Return to messages"));
@@ -502,10 +502,10 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum) {
                created_new_vtodo = 1;
        }
 
-       output_headers(1, 1, 2, 0, 0, 0, 0);
+       output_headers(1, 1, 2, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR>"
-               "<TD><IMG SRC=\"/static/taskmanag_48x.gif\"></TD>"
+               "<TD><img src=\"static/taskmanag_48x.gif\"></TD>"
                "<td><SPAN CLASS=\"titlebar\">");
        wprintf(_("Edit task"));
        wprintf("</SPAN>"
@@ -513,10 +513,10 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum) {
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<div id=\"fix_scrollbar_bug\">"
+       wprintf("<div class=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>");
        
-       wprintf("<FORM METHOD=\"POST\" ACTION=\"/save_task\">\n");
+       wprintf("<FORM METHOD=\"POST\" action=\"save_task\">\n");
        wprintf("<INPUT TYPE=\"hidden\" NAME=\"msgnum\" VALUE=\"%ld\">\n",
                msgnum);
 
@@ -924,8 +924,8 @@ void do_freebusy(char *req) {
        serv_getln(buf, sizeof buf);
 
        if (buf[0] != '1') {
-               wprintf("HTTP/1.0 404 %s\n", &buf[4]);
-               output_headers(0, 0, 0, 0, 0, 0, 0);
+               wprintf("HTTP/1.1 404 %s\n", &buf[4]);
+               output_headers(0, 0, 0, 0, 0, 0);
                wprintf("Content-Type: text/plain\r\n");
                wprintf("\r\n");
                wprintf("%s\n", &buf[4]);