2 * Administrative screen to add/change/delete user accounts
13 #include <sys/types.h>
15 #include <sys/socket.h>
18 #include <netinet/in.h>
32 void select_user_to_edit(void)
37 output_headers(3); /* No room banner on this screen */
39 wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
40 wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>"
41 "Add/change/delete user accounts"
42 "</B></FONT></TD></TR></TABLE>\n");
44 wprintf("<TABLE border=0 CELLSPACING=10><TR VALIGN=TOP>"
45 "<TD>To edit an existing user account, select the user "
46 "name from the list and click 'Edit'.<BR><BR>");
48 wprintf("<CENTER><FORM METHOD=\"POST\" ACTION=\"/display_edituser\">\n");
49 wprintf("<SELECT NAME=\"username\" SIZE=10>\n");
53 while (serv_gets(buf), strcmp(buf, "000")) {
54 extract(username, buf, 0);
60 wprintf("</SELECT><BR>\n");
62 wprintf("<input type=submit name=sc value=\"Edit\">");
63 wprintf("</FORM></CENTER>\n");
66 "To create a new user account, enter the desired "
67 "user name in the box below and click 'Create'.<BR><BR>");
69 wprintf("<CENTER><FORM METHOD=\"POST\" ACTION=\"/create_user\">\n");
70 wprintf("New user: ");
71 wprintf("<input type=text name=username><BR>\n"
72 "<input type=submit value=\"Create\">"
73 "</FORM></CENTER>\n");
75 wprintf("</TD></TR></TABLE>\n");