+/*
+ * $Id$
+ *
+ * Display a list of all accounts on a Citadel system.
+ *
+ */
+
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include "webcit.h"
-
-
-
struct namelist {
struct namelist *next;
char name[32];
struct namelist *bio = NULL;
struct namelist *bptr;
int has_bio;
+ int bg = 0;
serv_puts("LBIO");
serv_gets(buf);
strcpy(bptr->name, buf);
bio = bptr;
}
- output_headers(3);
+ output_headers(1, 1, 0, 0, 0, 0, 0);
serv_puts("LIST");
serv_gets(buf);
if (buf[0] != '1') {
- wprintf("<EM>%s</EM><BR>\n", &buf[4]);
+ wprintf("<EM>%s</EM><br />\n", &buf[4]);
goto DONE;
}
do_template("beginbox");
wprintf("<CENTER>");
- wprintf("<TABLE border>");
+ wprintf("<TABLE border=0 width=100%%>");
wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
- wprintf("<TH>Last Call</TH><TH>Total Calls</TH><TH>Total Posts</TH></TR>\n");
+ wprintf("<TH>Last Login</TH><TH>Total Logins</TH><TH>Total Posts</TH></TR>\n");
while (serv_gets(buf), strcmp(buf, "000")) {
extract(fl, buf, 0);
if (!strcasecmp(fl, bptr->name))
has_bio = 1;
}
- wprintf("<TR><TD>");
+ bg = 1 - bg;
+ wprintf("<TR BGCOLOR=\"#%s\"><TD>",
+ (bg ? "DDDDDD" : "FFFFFF")
+ );
if (has_bio) {
wprintf("<A HREF=\"/showuser&who=");
urlescputs(fl);
char buf[SIZ];
int have_pic;
- output_headers(3);
+ output_headers(1, 1, 0, 0, 0, 0, 0);
svprintf("BOXTITLE", WCS_STRING, "User profile");
do_template("beginbox");
serv_printf("RBIO %s", who);
serv_gets(buf);
if (buf[0] == '1') {
- fmout(NULL);
+ fmout(NULL, "JUSTIFY");
}
- wprintf("<BR><A HREF=\"/display_page&recp=");
+ wprintf("<br /><A HREF=\"/display_page&recp=");
urlescputs(who);
wprintf("\">"
"<IMG SRC=\"/static/page.gif\" ALIGN=MIDDLE BORDER=0>"