]> code.citadel.org Git - citadel.git/blobdiff - webcit/who.c
- Deleted the (too wide) remote host in summary screen
[citadel.git] / webcit / who.c
index e81b911e9aa52f6bcf1b09174e494731cd5cc4d2..7143ba29dc6669967da1385131557ce110393cf8 100644 (file)
@@ -21,12 +21,12 @@ void who_inner_div(void) {
        time_t now;
        int bg = 0;
 
-       wprintf("<table border=\"0\" cellspacing=\"0\" width=\"100%%\" bgcolor=\"#FFFFFF\">"
+       wprintf("<table class=\"who_background\">"
                "<tr>\n");
        wprintf("<th colspan=\"3\"> </th>\n");
        wprintf("<th>%s</th>\n", _("User name"));
        wprintf("<th>%s</th>", _("Room"));
-       wprintf("<th>%s</th>\n</tr>\n", _("From host"));
+       wprintf("<th class=\"from_host\">%s</th>\n</tr>\n", _("From host"));
 
        serv_puts("TIME");
        serv_getln(buf, sizeof buf);
@@ -109,7 +109,7 @@ void who_inner_div(void) {
                                escputs(realroom);
                                wprintf("</i>");
                        }
-                       wprintf("</td>\n\t<td>");
+                       wprintf("</td>\n\t<td class=\"from_host\">");
 
                        /** hostname */
                        escputs(host);
@@ -142,7 +142,7 @@ void who(void)
        );
 
        wprintf("<div id=\"banner\">\n");
-       wprintf("<table width=100%% border=0 bgcolor=\"#444455\"><tr><td>");
+       wprintf("<table class=\"who_banner\"><tr><td>");
        wprintf("<img src=\"static/usermanag_48x.gif\" alt=\" \" "
                "align=middle "
                ">");
@@ -156,7 +156,7 @@ void who(void)
        wprintf("</td></tr></table>\n");
        wprintf("</div>\n");
 
-       wprintf("<div id=\"content\">\n");
+       wprintf("<div id=\"content\" class=\"who_is_online\">\n");
 
        wprintf("<div style=\"display:inline\" id=\"fix_scrollbar_bug\">");
        who_inner_div();
@@ -223,7 +223,7 @@ void edit_me(void)
                output_headers(1, 1, 0, 0, 0, 0);
 
                wprintf("<div id=\"banner\">\n");
-               wprintf("<table width=100%% border=0 bgcolor=\"#444455\"><tr><td>");
+               wprintf("<table class=\"who_banner\"><tr><td>");
                wprintf("<span class=\"titlebar\">");
                wprintf(_("Edit your session display"));
                wprintf("</span></td></tr></table>\n");
@@ -237,6 +237,7 @@ void edit_me(void)
                wprintf("<br />\n");
 
                wprintf("<form method=\"POST\" action=\"edit_me\">\n");
+               wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
 
                wprintf("<table border=0 width=100%%>\n");