use the same way to display all banners and services contents
[citadel.git] / webcit / userlist.c
index cbd6c669a69589ec20e163c2316b2b6b8c362cb9..20450d9281d7a7b8309c669d3b6f7cccea1e9ddf 100644 (file)
@@ -42,15 +42,14 @@ void userlist(void)
                        bio = bptr;
                }
        output_headers(1, 1, 2, 0, 0, 0);
-       wprintf("<div id=\"banner\">\n"
-               "<table width=100%% border=0 bgcolor=\"#444455\"><tr><td>"
-               "<span class=\"titlebar\">");
+       wprintf("<div id=\"banner\">\n");
+       wprintf("<h1>");
        snprintf(title, sizeof title, _("User list for %s"), serv_info.serv_humannode);
        escputs(title);
-       wprintf("</span>"
-               "</td></tr></table>\n"
-               "</div>\n<div id=\"content\">\n"
-       );
+       wprintf("</h1>");
+        wprintf("</div>");
+
+        wprintf("<div id=\"content\" class=\"service\">\n");
 
        serv_puts("LIST");
        serv_getln(buf, sizeof buf);
@@ -60,7 +59,7 @@ void userlist(void)
        }
 
        wprintf("<div class=\"fix_scrollbar_bug\">"
-               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
+               "<table class=\"userlist_background\"><tr><td>\n");
        wprintf("<tr><th>%s</th><th>%s</th><th>%s</th>"
                        "<th>%s</th><th>%s</th><th>%s</th></tr>",
                        _("User Name"),
@@ -122,18 +121,17 @@ void showuser(void)
        strcpy(who, bstr("who"));
 
        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/usermanag_48x.gif\"></td>"
-               "<td align=left><span class=\"titlebar\">");
+       wprintf("<div id=\"banner\">\n");
+       wprintf("<img src=\"static/usermanag_48x.gif\">");
+        wprintf("<h1>");
        wprintf(_("User profile"));
-       wprintf("</span>"
-               "</td></tr></table>\n"
-               "</div>\n<div id=\"content\">\n"
-       );
+        wprintf("</h1>");
+        wprintf("</div>");
+
+        wprintf("<div id=\"content\" class=\"service\">\n");
 
        wprintf("<div class=\"fix_scrollbar_bug\">"
-               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
+               "<table class=\"userlist_background\"><tr><td>\n");
 
        serv_printf("OIMG _userpic_|%s", who);
        serv_getln(buf, sizeof buf);
@@ -151,7 +149,9 @@ void showuser(void)
                urlescputs(who);
                wprintf("\">");
        }
-       wprintf("</td><td><h1>%s</h1></td></tr></table></center>\n", who);
+       wprintf("</td><td><h1>");
+       escputs(who);
+       wprintf("</h1></td></tr></table></center>\n");
        serv_printf("RBIO %s", who);
        serv_getln(buf, sizeof buf);
        if (buf[0] == '1') {