* Doxygen groups. Sorted the files into groups. so now we have a nice structure
[citadel.git] / webcit / userlist.c
index 0104f0449e4b325d0303f5ed7fb3b38ae3ba399e..a5a59103daffdab6cd967746dc99a239d8ae69ee 100644 (file)
@@ -1,19 +1,24 @@
 /*
  * $Id$
- *
- * Display a list of all accounts on a Citadel system.
- *
+ */
+/**
+ * \defgroup AccDisplay Display a list of all accounts on a Citadel system.
+ * \ingroup CitadelConfig
  */
 
+/*@{*/
 #include "webcit.h"
 
+/** 
+ * \brief structure to keep namelists in
+ */
 struct namelist {
-       struct namelist *next;
-       char name[32];
+       struct namelist *next; /**< next item of the linked list */
+       char name[32];         /**< name of the userentry */
 };
 
-/*
- * display the userlist
+/**
+ * \brief display the userlist
  */
 void userlist(void)
 {
@@ -54,7 +59,7 @@ void userlist(void)
                goto DONE;
        }
 
-       wprintf("<div id=\"fix_scrollbar_bug\">"
+       wprintf("<div class=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
        wprintf(_("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>"
                "<TH>Last Login</TH><TH>Total Logins</TH><TH>Total Posts</TH></TR>"));
@@ -71,7 +76,7 @@ void userlist(void)
                        (bg ? "DDDDDD" : "FFFFFF")
                );
                if (has_bio) {
-                       wprintf("<a href=\"/showuser&who=");
+                       wprintf("<a href=\"showuser&who=");
                        urlescputs(fl);
                        wprintf("\">");
                        escputs(fl);
@@ -99,8 +104,8 @@ DONE:        wDumpContent(1);
 }
 
 
-/*
- * Display (non confidential) information about a particular user
+/**
+ * \brief Display (non confidential) information about a particular user
  */
 void showuser(void)
 {
@@ -113,7 +118,7 @@ void showuser(void)
        output_headers(1, 1, 2, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR>"
-               "<TD><img src=\"/static/usermanag_48x.gif\"></TD>"
+               "<TD><img src=\"static/usermanag_48x.gif\"></TD>"
                "<td align=left><SPAN CLASS=\"titlebar\">");
        wprintf(_("User profile"));
        wprintf("</SPAN>"
@@ -121,7 +126,7 @@ void showuser(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<div id=\"fix_scrollbar_bug\">"
+       wprintf("<div class=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        serv_printf("OIMG _userpic_|%s", who);
@@ -136,7 +141,7 @@ void showuser(void)
 
        wprintf("<CENTER><TABLE><TR><TD>");
        if (have_pic == 1) {
-               wprintf("<img src=\"/image&name=_userpic_&parm=");
+               wprintf("<img src=\"image&name=_userpic_&parm=");
                urlescputs(who);
                wprintf("\">");
        }
@@ -146,10 +151,10 @@ void showuser(void)
        if (buf[0] == '1') {
                fmout("JUSTIFY");
        }
-       wprintf("<br /><a href=\"/display_page?recp=");
+       wprintf("<br /><a href=\"display_page?recp=");
        urlescputs(who);
        wprintf("\">"
-               "<img src=\"/static/citadelchat_24x.gif\" "
+               "<img src=\"static/citadelchat_24x.gif\" "
                "ALIGN=MIDDLE BORDER=0>&nbsp;&nbsp;");
        snprintf(buf, sizeof buf, _("Click here to send an instant message to %s"), who);
        escputs(buf);
@@ -158,3 +163,6 @@ void showuser(void)
        wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
+
+
+/*@}*/