]> code.citadel.org Git - citadel.git/blobdiff - webcit/listsub.c
Fix minor spacing problem in listsub HTML
[citadel.git] / webcit / listsub.c
index 28300597317bd9501d49ee207622154f8aaddc2d..cadf60b4884c93c5e58df29ae1fd64742fc5f2bf 100644 (file)
@@ -1,16 +1,18 @@
 /*
  * $Id$
- *
- * Web forms for handling mailing list subscribe/unsubscribe requests.
- *
+ */
+/**
+ * \defgroup ListSubForms Web forms for handling mailing list subscribe/unsubscribe requests.
+ * \ingroup WebcitDisplayItems
  */
 
+/*@{*/
 #include "webcit.h"
 
 
 
-/*
- * List subscription handling
+/**
+ * \brief List subscription handling
  */
 void do_listsub(void)
 {
@@ -26,6 +28,7 @@ void do_listsub(void)
        int self;
        char sroom[SIZ];
 
+       strcpy(WC->wc_fullname, "");
        strcpy(WC->wc_username, "");
        strcpy(WC->wc_password, "");
        strcpy(WC->wc_roomname, "");
@@ -48,12 +51,12 @@ void do_listsub(void)
        strcpy(subtype, bstr("subtype"));
 
        wprintf("<CENTER>"
-               "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+               "<TABLE class=\"listsub_banner\"><TR><TD>"
                "<SPAN CLASS=\"titlebar\">");
        wprintf(_("List subscribe/unsubscribe"));
        wprintf("</SPAN></TD></TR></TABLE><br />\n");
 
-       /*
+       /**
         * Subscribe command
         */
        if (!strcasecmp(cmd, "subscribe")) {
@@ -95,7 +98,7 @@ void do_listsub(void)
                }
        }
 
-       /*
+       /**
         * Unsubscribe command
         */
        else if (!strcasecmp(cmd, "unsubscribe")) {
@@ -133,7 +136,7 @@ void do_listsub(void)
                }
        }
 
-       /* 
+       /**
         * Confirm command
         */
        else if (!strcasecmp(cmd, "confirm")) {
@@ -161,7 +164,7 @@ void do_listsub(void)
                wprintf("%s</CENTER><br />\n", &buf[4]);
        }
 
-       /*
+       /**
         * Any other (invalid) command causes the form to be displayed
         */
        else {
@@ -199,10 +202,10 @@ FORM:             wprintf("<FORM METHOD=\"POST\" action=\"listsub\">\n"
 
                wprintf("</TABLE>"
                        "(If subscribing) preferred format: "
-                       "<INPUT TYPE=\"radio\" NAME=\"subtype\""
-                       "VALUE=\"list\">One message at a time&nbsp; "
-                       "<INPUT TYPE=\"radio\" NAME=\"subtype\""
-                       "VALUE=\"digest\" CHECKED>Digest format&nbsp; "
+                       "<INPUT TYPE=\"radio\" NAME=\"subtype\" "
+                       "VALUE=\"list\" CHECKED>One message at a time&nbsp; "
+                       "<INPUT TYPE=\"radio\" NAME=\"subtype\" "
+                       "VALUE=\"digest\">Digest format&nbsp; "
                        "<br />\n"
                        "<INPUT TYPE=\"submit\" NAME=\"cmd\""
                        " VALUE=\"subscribe\">\n"
@@ -225,3 +228,7 @@ FORM:               wprintf("<FORM METHOD=\"POST\" action=\"listsub\">\n"
        wDumpContent(0);
        end_webcit_session();
 }
+
+
+
+/*@}*/