]> code.citadel.org Git - citadel.git/blobdiff - webcit/floors.c
* Finished gzip compression of dynamic pages (when browser supports it)
[citadel.git] / webcit / floors.c
index ebcafcaef81e8998a1f65d9e4c59476a929447fc..511a5907ea7c6281153a6acc9687c8572a7db4e2 100644 (file)
@@ -43,7 +43,7 @@ void display_floorconfig(char *prepend_html)
        output_headers(3);
 
        if (prepend_html != NULL) {
-               write(WC->http_sock, prepend_html, strlen(prepend_html));
+               http_write(WC->http_sock, prepend_html, strlen(prepend_html));
        }
 
        serv_printf("LFLR");    /* FIXME put a real test here */
@@ -74,11 +74,19 @@ void display_floorconfig(char *prepend_html)
                extract(floorname, buf, 1);
                refcount = extract_int(buf, 2);
 
-               wprintf("<TR><TD>%d", floornum);
+               wprintf("<TR><TD><TABLE border=0><TR><TD>%d", floornum);
                if (refcount == 0) {
-                       wprintf(" <A HREF=\"/delete_floor?floornum=%d\">"
-                               "(delete floor)</A>");
+                       wprintf("</TD><TD>"
+                               "<A HREF=\"/delete_floor?floornum=%d\">"
+                               "<FONT SIZE=-1>(delete floor)</A>"
+                               "</FONT><BR>", floornum
+                       );
                }
+               wprintf("<FONT SIZE=-1>"
+                       "<A HREF=\"/display_editfloorpic&"
+                       "which_floor=%d\">(edit graphic)</A>",
+                       floornum);
+               wprintf("</TD></TR></TABLE>");
                wprintf("</TD>");
 
                wprintf("<TD>"