From 7857d170be031ea2e4e80ff978d0789cb44e5f88 Mon Sep 17 00:00:00 2001 From: Bill Lynch Date: Wed, 9 Apr 2003 22:50:15 +0000 Subject: [PATCH] Initial checkin git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1871 b35dd754-fafc-0310-a699-88a17e54d16e --- apps/webchat/build/ant | 1 + apps/webchat/build/ant.bat | 1 + apps/webchat/build/build.xml | 1 + apps/webchat/source/web/chat-form.html | 96 ++++++++++++++++++ apps/webchat/source/web/chat-hiddenform.jsp | 18 ++++ apps/webchat/source/web/chat-launcher.jsp | 35 +++++++ apps/webchat/source/web/chat-main.html | 66 ++++++++++++ apps/webchat/source/web/chat.jsp | 26 +++++ apps/webchat/source/web/data.jsp | 26 +++++ apps/webchat/source/web/form.html | 18 ++++ apps/webchat/source/web/iframe.html | 55 ++++++++++ apps/webchat/source/web/images/logo.gif | Bin 0 -> 1052 bytes apps/webchat/source/web/index.jsp | 107 ++++++++++++++++++++ apps/webchat/source/web/logo.html | 13 +++ apps/webchat/source/web/menu.html | 32 ++++++ apps/webchat/source/web/style.css | 9 ++ 16 files changed, 504 insertions(+) create mode 100644 apps/webchat/build/ant create mode 100644 apps/webchat/build/ant.bat create mode 100644 apps/webchat/build/build.xml create mode 100644 apps/webchat/source/web/chat-form.html create mode 100644 apps/webchat/source/web/chat-hiddenform.jsp create mode 100644 apps/webchat/source/web/chat-launcher.jsp create mode 100644 apps/webchat/source/web/chat-main.html create mode 100644 apps/webchat/source/web/chat.jsp create mode 100644 apps/webchat/source/web/data.jsp create mode 100644 apps/webchat/source/web/form.html create mode 100644 apps/webchat/source/web/iframe.html create mode 100644 apps/webchat/source/web/images/logo.gif create mode 100644 apps/webchat/source/web/index.jsp create mode 100644 apps/webchat/source/web/logo.html create mode 100644 apps/webchat/source/web/menu.html create mode 100644 apps/webchat/source/web/style.css diff --git a/apps/webchat/build/ant b/apps/webchat/build/ant new file mode 100644 index 000000000..676f925b5 --- /dev/null +++ b/apps/webchat/build/ant @@ -0,0 +1 @@ +# blank for now \ No newline at end of file diff --git a/apps/webchat/build/ant.bat b/apps/webchat/build/ant.bat new file mode 100644 index 000000000..32f4b36c6 --- /dev/null +++ b/apps/webchat/build/ant.bat @@ -0,0 +1 @@ +REM blank for now \ No newline at end of file diff --git a/apps/webchat/build/build.xml b/apps/webchat/build/build.xml new file mode 100644 index 000000000..0dcc00300 --- /dev/null +++ b/apps/webchat/build/build.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/webchat/source/web/chat-form.html b/apps/webchat/source/web/chat-form.html new file mode 100644 index 000000000..67601cc68 --- /dev/null +++ b/apps/webchat/source/web/chat-form.html @@ -0,0 +1,96 @@ + + + + + + Chat Session + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+   +   +   + +   +   +   +
+ + + + + diff --git a/apps/webchat/source/web/chat-hiddenform.jsp b/apps/webchat/source/web/chat-hiddenform.jsp new file mode 100644 index 000000000..41005ab8b --- /dev/null +++ b/apps/webchat/source/web/chat-hiddenform.jsp @@ -0,0 +1,18 @@ + + + + + + Chat Form + + + + +
+ + +
+ + + + \ No newline at end of file diff --git a/apps/webchat/source/web/chat-launcher.jsp b/apps/webchat/source/web/chat-launcher.jsp new file mode 100644 index 000000000..8bcab102f --- /dev/null +++ b/apps/webchat/source/web/chat-launcher.jsp @@ -0,0 +1,35 @@ + + + + + + Chat Session + + + + + + +

Chat Session Options

+ +You chat session should have already started. If for some reason it did +not, click this link +to start your chat session. + +

+ +Other options: + + + + + + diff --git a/apps/webchat/source/web/chat-main.html b/apps/webchat/source/web/chat-main.html new file mode 100644 index 000000000..56ac27f03 --- /dev/null +++ b/apps/webchat/source/web/chat-main.html @@ -0,0 +1,66 @@ + + + + + + Chat Session + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + + + diff --git a/apps/webchat/source/web/chat.jsp b/apps/webchat/source/web/chat.jsp new file mode 100644 index 000000000..3fc7db5f5 --- /dev/null +++ b/apps/webchat/source/web/chat.jsp @@ -0,0 +1,26 @@ + + + + + + Chat Session + + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/webchat/source/web/data.jsp b/apps/webchat/source/web/data.jsp new file mode 100644 index 000000000..333aa4bb3 --- /dev/null +++ b/apps/webchat/source/web/data.jsp @@ -0,0 +1,26 @@ +<%-- + - + - +--%> + +<% // get the username of the current user + String nickname = (String)session.getAttribute("messenger.servlet.nickname"); + if (nickname == null) { + nickname = ""; + } +%> + + + + + + Chat Data + + + + + + diff --git a/apps/webchat/source/web/form.html b/apps/webchat/source/web/form.html new file mode 100644 index 000000000..77f13f6cf --- /dev/null +++ b/apps/webchat/source/web/form.html @@ -0,0 +1,18 @@ + + + + + + Chat Form + + + + +
+ + +
+ + + + \ No newline at end of file diff --git a/apps/webchat/source/web/iframe.html b/apps/webchat/source/web/iframe.html new file mode 100644 index 000000000..536eed056 --- /dev/null +++ b/apps/webchat/source/web/iframe.html @@ -0,0 +1,55 @@ + + + + + + + Chat Session + + + + + + + + +  + + + + + \ No newline at end of file diff --git a/apps/webchat/source/web/images/logo.gif b/apps/webchat/source/web/images/logo.gif new file mode 100644 index 0000000000000000000000000000000000000000..78b709c84fabf78e52e4d0a9b2e7cc27d713d46a GIT binary patch literal 1052 zcmV+%1mpWhNk%w1VXpuj0J8u9|5Q}}*Vq4yjQ;=t|95x)|NsBz=l{vc{}dGeqN4vh zJOA;xVZlc3jg~0A^8LV00000EC2ui0IvWX000F4u*gZPy*TU5yZ>M)j$~<` zXsWJk>%Q>x1OmVyc&_V=LNtpDV6ZC|8GuC4^B_2g0??yDP~42hL?MBADo(T76{~X) z3X6n5psWN4h=F`guh$)b!=o~^`~3g`9s*Bu4IMK8g@1q&33Fd125^jj41xy=a|j806Mdq83W6J-bqod@4_v9QtOChZ3%H4m}FZ&d<&_ zby}x$%+T0YbO1{j52$nmrWm-t*V)e0Te&0wpvvdyKBfW14Fat0bP56o2LAv92CSz@ zStkjo2nbvVut6_F8feLRN95RrWCQRd2*7Y5g>nP`bb(j^j-S7d0mlhzz)3f+eV;c;Gch90r~?F)D~(>8*RW%|CVHVJuoG0}AP`i! zgTw&>`o5e~ih^nfrVC)SD*`nWR0tSIpH96x_2d-_A+RXv9fD4g4GbGk{y;rSbuApI z3V^l*xYi7-)g6{GyODW)ZF8Spx4IJg5CLBQPn!Wi1`c%uSAhYjFu>gebYZqc1MfJ% zpM5rkK$?E9JZ3?K*p0BBZn0E0Ni9fKFw-I-x}@4|0S@pWh9Qa2AOQg6sN;@2Cb5BP z0HEMRhFkG9np2f9(1sgTDPW##u2BeyAb1g|*nO$xBGm$1cIoApnpM!iDF2C&n;bgz z7R+x%5Fh{n2^gT+H>0pb1_O(n6~vGkd8ibYAIz6gizRG0(TqFgwcB2D_~Z#iX4Lml zIGg2H2{19PavGo?Kv(7o5fV{KnBF)L=|qXLVFL+3thl&9@@f;5KDu;9*;Cj$g* zYpy>Tkd!Bf`?#lO1?rB%D+LXN=BtX(9m3hVzMKIPyT|g$u3Q;3Q5C=lw8w{$-k{eg zQScQOf>44i;IJ=O{mbEZ69|AOhmLh{00B4f`-cP3`Dnqr7tr+7wNS_;aEb*qU_%$F zgj@hGCWnGtS0k643UVMApazN?WnhDJY-uni9YD}A?^|^wMT4<_{PzaCQ!iLUDqY7Q W_Sj^XZT8t{r>*wdY`1+v1OPiSM#IDa literal 0 HcmV?d00001 diff --git a/apps/webchat/source/web/index.jsp b/apps/webchat/source/web/index.jsp new file mode 100644 index 000000000..5e7479614 --- /dev/null +++ b/apps/webchat/source/web/index.jsp @@ -0,0 +1,107 @@ +<%-- + - + - +--%> + +<%@ page import="java.util.*" %> + +<% // Get error map as a request attribute: + Map errors = (Map)request.getAttribute("messenger.servlet.errors"); + if (errors == null) { errors = new HashMap(); } +%> + + + + + + Chat + + + + + + +

Jive Chat Login

+ +<% if (errors.get("general") != null) { %> + +

+ Error logging in. Make sure your username and password is correct. +

+ +<% } %> + +
+ + + + + + + + + + + + + + + + + + + + +
Username: + + <% if (errors.get("username") != null) { %> + +
+ Please enter a valid username. +
+ + <% } %> +
Password: + + <% if (errors.get("password") != null) { %> + +
+ Please enter a valid password. +
+ + <% } %> +
Nickname: + + <% if (errors.get("nickname") != null) { %> + +
+ Please enter a valid nickname. +
+ + <% } %> +
Room: + + <% if (errors.get("room") != null) { %> + +
+ Please enter a valid room. +
+ + <% } %> +
+ +
+ + +
+ + + + + diff --git a/apps/webchat/source/web/logo.html b/apps/webchat/source/web/logo.html new file mode 100644 index 000000000..936da4a71 --- /dev/null +++ b/apps/webchat/source/web/logo.html @@ -0,0 +1,13 @@ + + + + + Chat Logo + + + + + + + + diff --git a/apps/webchat/source/web/menu.html b/apps/webchat/source/web/menu.html new file mode 100644 index 000000000..8af2c042a --- /dev/null +++ b/apps/webchat/source/web/menu.html @@ -0,0 +1,32 @@ + + + + + Chat Menu + + + + + + + + + + +
+   + + + End Chat (Log Off) + +
+ + + diff --git a/apps/webchat/source/web/style.css b/apps/webchat/source/web/style.css new file mode 100644 index 000000000..0d47f4f28 --- /dev/null +++ b/apps/webchat/source/web/style.css @@ -0,0 +1,9 @@ +BODY, TD, TH { + font-family : tahoma; font-size : 0.8em; +} +H3 { + font-size : 1.2em; +} +.error-text { + color : red; +} \ No newline at end of file