]> code.citadel.org Git - citadel.git/commitdiff
* Began implementing the "signature" feature. It doesn't work yet.
authorArt Cancro <ajc@citadel.org>
Thu, 29 Sep 2005 02:54:17 +0000 (02:54 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 29 Sep 2005 02:54:17 +0000 (02:54 +0000)
webcit/ChangeLog
webcit/preferences.c

index 16de36cbe12dda5f3c30c52ea251d92219d26060..3c41e794591c7de526af475fb18282c255b0391a 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 625.29  2005/09/29 02:54:17  ajc
+* Began implementing the "signature" feature.  It doesn't work yet.
+
 Revision 625.28  2005/09/28 03:29:47  ajc
 * Don't display room banner on "Confirm move of message" screen
 
@@ -3084,3 +3087,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 335274b110f2e92b0c0de24ff944ad6a67bda277..342477123553b33ea209e83758d3916b9d7c596d 100644 (file)
@@ -195,7 +195,9 @@ void display_preferences(void)
                "method=\"post\">\n"
                "<table border=0 cellspacing=5 cellpadding=5>\n");
 
-
+       /*
+        * Room list view
+        */
        get_preference("roomlistview", buf, sizeof buf);
        wprintf("<tr><td>");
        wprintf(_("Room list view"));
@@ -215,7 +217,9 @@ void display_preferences(void)
 
        wprintf("</td></tr>\n");
 
-
+       /*
+        * Calendar hour format
+        */
        get_preference("calhourformat", buf, sizeof buf);
        if (buf[0] == 0) strcpy(buf, "12");
        wprintf("<tr><td>");
@@ -236,6 +240,40 @@ void display_preferences(void)
 
        wprintf("</td></tr>\n");
 
+       /*
+        * Calendar hour format
+        */
+       get_preference("use_sig", buf, sizeof buf);
+       if (buf[0] == 0) strcpy(buf, "no");
+       wprintf("<tr><td>");
+       wprintf(_("Attach signature to email messages?"));
+       wprintf("</td><td>");
+
+       wprintf("<input type=\"radio\" name=\"use_sig\" VALUE=\"no\"");
+       if (!strcasecmp(buf, "no")) wprintf(" checked");
+       wprintf(">");
+       wprintf(_("No signature"));
+       wprintf("<br></input>\n");
+
+       wprintf("<input type=\"radio\" name=\"use_sig\" VALUE=\"yes\"");
+       if (!strcasecmp(buf, "yes")) wprintf(" checked");
+       wprintf(">");
+       wprintf(_("Use this signature:"));
+       wprintf("<div id=\"signature_box\">"
+               "<br><textarea name=\"signature\" cols=\"40\" rows=\"5\">"
+       );
+       get_preference("signature", buf, sizeof buf);
+       msgescputs(buf);
+       wprintf("</textarea>"
+               "</div>"
+       );
+
+       wprintf("<br></input>\n");
+
+       wprintf("</td></tr>\n");
+
+
+
        wprintf("</table>\n"
                "<input type=\"submit\" name=\"change_button\" value=\"%s\">"
                "&nbsp;"
@@ -270,7 +308,9 @@ void set_preferences(void)
         * we don't send the prefs file to the server repeatedly
         */
        set_preference("roomlistview", bstr("roomlistview"), 0);
-       set_preference("calhourformat", bstr("calhourformat"), 1);
+       set_preference("calhourformat", bstr("calhourformat"), 0);
+       set_preference("use_sig", bstr("use_sig"), 0);
+       set_preference("signature", bstr("signature"), 1);
 
        display_main_menu();
 }