width: 100%;
}
-.smtpqueue_background, .tabs_background, .useredit_background, .userlist_background, .downloads_background, .vcard_edit_background, .who_background {
+.smtpqueue_background, .tabs_background, .useredit_background, .userlist_background, .downloads_background, .vcard_edit_background {
border: 0;
width: 100%;
background-color: #ffffff;
color: #000;
}
-.from_host {
+.edit_col, .host_col {
display: none;
}
-.who_is_online .from_host {
+.who_is_online .edit_col, .who_is_online .host_col {
display: block;
}
border-top: 1px solid #aaaaaa;
}
+table.altern {
+ background-color: #ffffff;
+ width: 100%;
+}
+table.altern .even {
+ background-color: #dddddd;
+}
+
+table.altern .odd {
+ background-color: #ffffff;
+}
time_t now;
int bg = 0;
- wprintf("<table class=\"who_background\">"
+ wprintf("<table class=\"altern\">"
"<tr>\n");
- wprintf("<th colspan=\"3\"> </th>\n");
+ wprintf("<th class=\"edit_col\"> </th>\n");
+ wprintf("<th colspan=\"2\"> </th>\n");
wprintf("<th>%s</th>\n", _("User name"));
wprintf("<th>%s</th>", _("Room"));
- wprintf("<th class=\"from_host\">%s</th>\n</tr>\n", _("From host"));
+ wprintf("<th class=\"host_col\">%s</th>\n</tr>\n", _("From host"));
serv_puts("TIME");
serv_getln(buf, sizeof buf);
last_activity = extract_long(buf, 5);
bg = 1 - bg;
- wprintf("<tr bgcolor=\"#%s\">",
- (bg ? "DDDDDD" : "FFFFFF")
+ wprintf("<tr class=\"%s\">",
+ (bg ? "even" : "odd")
);
- wprintf("<td>");
+ wprintf("<td class=\"edit_col\">");
if ((WC->is_aide) &&
(sess != WC->ctdl_pid)) {
wprintf(" <a href=\"terminate_session?which_session=%d", sess);
wprintf("</td>");
/** (link to page this user) */
- wprintf("<td><a href=\"display_page?recp=");
+ wprintf("<td width=\"5%\"><a href=\"display_page?recp=");
urlescputs(user);
wprintf("\">"
"<img align=\"middle\" "
wprintf("</td>");
/** (idle flag) */
- wprintf("<td>");
+ wprintf("<td width=\"5%\">");
if ((now - last_activity) > 900L) {
wprintf(" "
"<img align=\"middle\" "
escputs(realroom);
wprintf("</i>");
}
- wprintf("</td>\n\t<td class=\"from_host\">");
+ wprintf("</td>\n\t<td class=\"host_col\">");
/** hostname */
escputs(host);