-/*
- * list all rooms by floor (only should get called from knrooms() because
- * that's where output_headers() is called from)
- */
-void tabular_room_list(void)
-{
- int a;
- char buf[SIZ];
-
- do_template("beginbox_nt");
- wprintf("<TABLE width=100%% border><TR><TH>Floor</TH>");
- wprintf("<TH>Rooms with new messages</TH>");
- wprintf("<TH>Rooms with no new messages</TH></TR>\n");
-
- for (a = 0; a < 128; ++a)
- if (floorlist[a][0] != 0) {
-
- /* Floor name column */
- wprintf("<TR><TD>");
-
- serv_printf("OIMG _floorpic_|%d", a);
- serv_gets(buf);
- if (buf[0] == '2') {
- serv_puts("CLOS");
- serv_gets(buf);
- wprintf("<IMG SRC=\"/image&name=_floorpic_&parm=%d\" ALT=\"%s\">",
- a, &floorlist[a][0]);
- } else {
- escputs(&floorlist[a][0]);
- }
-
- wprintf("</TD>");
-
- /* Rooms with new messages column */
- wprintf("<TD>");
- sprintf(buf, "LKRN %d", a);
- listrms(buf);
- wprintf("</TD>\n<TD>");
-
- /* Rooms with old messages column */
- sprintf(buf, "LKRO %d", a);
- listrms(buf);
- wprintf("</TD></TR>\n");
- }
- wprintf("</TABLE>\n");
- do_template("endbox");
- wDumpContent(1);
-}
-
-
-
-
-
-
-
-
-