]> code.citadel.org Git - citadel.git/commitdiff
* templatized the "prompt for recipient" screen
authorArt Cancro <ajc@citadel.org>
Thu, 3 Jan 2002 22:32:39 +0000 (22:32 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 3 Jan 2002 22:32:39 +0000 (22:32 +0000)
webcit/ChangeLog
webcit/messages.c
webcit/static/README.txt
webcit/static/prompt_for_recipient.html [new file with mode: 0644]

index c03ca0b3e53dc4f82505043cfb617b2a22a71e19..37a12eb774a9cf10efe2c381efda657e96c7ee81 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 322.2  2002/01/03 22:32:38  ajc
+* templatized the "prompt for recipient" screen
+
 Revision 322.1  2001/12/28 09:43:05  error
 * Client support for hostnames up to 63 characters
 
@@ -701,4 +704,3 @@ 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 4bc642ba9201092eb63e2d9ad239f0b303c4f89a..33794ddca5a160cbd68465c2a353bcaf4a611bc3 100644 (file)
@@ -502,32 +502,6 @@ void post_message(void)
 
 
 
-
-
-
-
-/*
- * prompt for a recipient (to be called from display_enter() only)
- */
-void prompt_for_recipient()
-{
-
-       wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
-       wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
-       wprintf("<B>Send private e-mail</B>\n");
-       wprintf("</FONT></TD></TR></TABLE>\n");
-
-       wprintf("<CENTER>");
-       wprintf("<FORM METHOD=\"POST\" ACTION=\"/display_enter\">\n");
-       wprintf("Enter recipient: ");
-       wprintf("<INPUT TYPE=\"text\" NAME=\"recp\" MAXLENGTH=\"64\"><BR>\n");
-       wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Enter message\">");
-       wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Cancel\">");
-       wprintf("</FORM></CENTER>\n");
-}
-
-
-
 /*
  * display the message entry screen
  */
@@ -549,7 +523,7 @@ void display_enter(void)
                if (strlen(bstr("recp")) > 0) {
                        wprintf("<EM>%s</EM><BR>\n", &buf[4]);
                }
-               prompt_for_recipient();
+               do_template("prompt_for_recipient.html");
                goto DONE;
        }
        if (buf[0] != '2') {
index a939960be86976735ca0852f831a9ad991b3f02f..ff9953253242fd05d0ae0d425447a7a1567445bd 100644 (file)
@@ -1,8 +1,8 @@
-The program in this directory comprises a Java-based chat client to be used
-with the WebCit client for Citadel/UX.  Most of the code was lifted from an
-all-Java client I'm currently writing, but since we expect this one to work
-from the most popular browsers, everything has been tweaked in such a way as
-to make it run happily in a JDK 1.0.2 environment.
+The Java program in this directory comprises a Java-based chat client to be
+used with the WebCit client for Citadel/UX.  Most of the code was lifted from
+an all-Java client I was writing at the time, but since we expect this one to
+work from the most popular browsers, everything has been tweaked in such a way
+as to make it run happily in a JDK 1.0.2 environment.
  
  Since not everyone has a Java compiler on hand, I've supplied the binaries
 as a courtesy.  Since Java bytecode is universal, there should be no need to
diff --git a/webcit/static/prompt_for_recipient.html b/webcit/static/prompt_for_recipient.html
new file mode 100644 (file)
index 0000000..38937db
--- /dev/null
@@ -0,0 +1,12 @@
+<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700>
+<TR><TD><FONT SIZE=+1 COLOR="FFFFFF">
+<B>Send private e-mail</B>
+</FONT></TD></TR></TABLE>
+
+<CENTER>
+<FORM METHOD="POST" ACTION="/display_enter">
+Enter recipient:
+<INPUT TYPE="text" NAME="recp" MAXLENGTH="64"><BR>
+<INPUT TYPE="submit" NAME="sc" VALUE="Enter message">
+<INPUT TYPE="submit" NAME="sc" VALUE="Cancel">
+</FORM></CENTER>