Merge of the NewUI changes into the trunk

This commit is contained in:
Eric J. Bowersox
2002-01-07 02:05:37 +00:00
parent b86ef1c3b0
commit c3e2870572
516 changed files with 32853 additions and 26097 deletions

View File

@@ -0,0 +1,87 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%
JSPView view = JSPView.get(request);
%>
<util:comment>Category browser for community "<comm:name/>"</util:comment>
<util:header title="Set Community Category:">
<util:subtitle><comm:name/></util:subtitle>
</util:header>
<DIV ALIGN="LEFT"><util:xlink>
<util:href type="servlet">comm/admin_menu.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="cancel"/></util:text>
</util:xlink></DIV>
<util:font color="content.fg" size="content">
<% CategoryDescriptor prev_cat = (CategoryDescriptor)(view.getRequestAttribute("category.previous")); %>
<B>Previous community Category:</B> <util:escape><%= prev_cat.toString() %></util:escape><P>
<B>Current category:</B><BR>
<% CategoryDescriptor curr_cat = (CategoryDescriptor)(view.getRequestAttribute("category.current")); %>
<% if (curr_cat.getCategoryID()>=0) { %><util:xlink>
<util:href type="servlet">comm/category.js.vs?cc=<comm:ID/>&go=-1</util:href>
<util:text>Top</util:text>
</util:xlink><% } else { %>Top<% } // end if %>:
<% for (int i=0; i<curr_cat.getNumLevels(); i++) { %>
<% int tmpid = curr_cat.getIDAtLevel(i); %>
<% if (tmpid!=curr_cat.getCategoryID()) { %><util:xlink>
<util:href type="servlet">comm/category.js.vs?cc=<comm:ID/>&go=<%= tmpid %></util:href>
<util:text><util:escape><%= curr_cat.getTitleAtLevel(i) %></util:escape></util:text>
</util:xlink>: <% } else { %><util:escape><%= curr_cat.getTitleAtLevel(i) %></util:escape><% } %>
<% } // end for %>
<% if (curr_cat.getCategoryID()>=0) { %>&nbsp;&nbsp;&nbsp;&nbsp;[<util:xlink>
<util:href type="servlet">comm/category.js.vs?cc=<comm:ID/>&set=<%= curr_cat.getCategoryID() %></util:href>
<util:text>set</util:text>
</util:xlink>]<% } // end if %>
<P><B>Subcategories:</B><BR>
<% List subcats = (List)(view.getRequestAttribute("category.subcats")); %>
<% if (subcats.size()>0) { %>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2>
<% Iterator it = subcats.iterator(); %>
<% while (it.hasNext()) { %>
<% CategoryDescriptor c = (CategoryDescriptor)(it.next()); %>
<% int subid = c.getLinkedCategoryID(); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">comm/category.js.vs?cc=<comm:ID/>&go=<%= subid %></util:href>
<util:text><util:escape><%= c.getTitleAtLevel(c.getNumLevels()-1) %></util:escape></util:text>
</util:xlink>
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
&nbsp;&nbsp;&nbsp;&nbsp;[<util:xlink>
<util:href type="servlet">comm/category.js.vs?cc=<comm:ID/>&set=<%= subid %></util:href>
<util:text>set</util:text>
</util:xlink>]
</util:font></TD>
</TR>
<% } // end while %>
</TABLE>
<% } else { %><EM>(None)</EM><% } // end if (subcategory display) %><P>
Click on a subcategory name to make that category the currently displayed one.<P>
Click on a [set] link to set that category as the community's new category and return to the
<B>Community Administration</B> menu.<P>
</util:font>

45
web/format/comm/email.jsp Normal file
View File

@@ -0,0 +1,45 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<util:comment>E-Mail to Community "<comm:name/>"</util:comment>
<util:header title="Community E-Mail:">
<util:subtitle><comm:name/></util:subtitle>
</util:header>
<util:form action="comm/email.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><util:font color="content.fg" size="content">
Send E-mail to all members of the community:
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">Subject:</util:font></TD>
<TD ALIGN=LEFT CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="subj" SIZE=65
MAXLENGTH=255 VALUE=""></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="cinput" COLSPAN=2><TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA></TD>
</TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<util:button id="send" type="input"/>&nbsp;<util:button id="cancel" type="input"/>
</TD></TR>
</TABLE>
</DIV></util:form>

View File

@@ -0,0 +1,52 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
JSPView view = JSPView.get(request);
%>
<util:comment>Invitation form</util:comment>
<util:header>
<util:title><%= view.getRequestAttribute("invitation.title").toString() %></util:title>
<util:subtitle><%= view.getRequestAttribute("invitation.subtitle").toString() %></util:subtitle>
</util:header>
<FORM METHOD=POST ACTION="<%= view.getRequestAttribute("invitation.action").toString() %>">
<DIV CLASS="content">
<%= view.getRequestAttribute("invitation.params").toString() %>
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content">
<util:font color="content.fg" size="content">Send to:&nbsp;</util:font>
</TD>
<TD ALIGN=LEFT CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="addr" SIZE=65
MAXLENGTH=255 VALUE=""></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<util:font color="content.fg" size="content">Personal message to be added to invitation:</util:font>
</TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT COLSPAN=2 CLASS="cinput"><TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA></TD>
</TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<util:button id="send" type="input"/>&nbsp;<util:button id="cancel" type="input"/>
</TD></TR>
</TABLE>
</DIV>
</FORM>

141
web/format/comm/members.jsp Normal file
View File

@@ -0,0 +1,141 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.Iterator" %>
<%@ page import = "java.util.List" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.MembersView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%
MembersView view = MembersView.get(request);
%>
<util:comment>Members view for community <comm:name/></util:comment>
<util:header title="Members of Community:">
<util:subtitle><comm:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="subhead"><B>Find members of community "<comm:name/>":</B></util:font><P>
<util:form action="comm/members.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="sl" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<util:font color="content.fg" size="content">
Display all community members whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
<% if (view.testField(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (view.testField(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (view.testField(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (view.testField(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (view.testMode(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (view.testMode(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (view.testMode(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= view.getTerm() %>"></SPAN><BR>
<util:button id="search" type="input"/>
</util:font>
</DIV></util:form>
<% List results = view.getResults(); %>
<% if (results!=null) { %>
<HR>
<%
int dcount = results.size();
// Determine the number of results to display and whether to display a "next" button
boolean go_next = false;
if (dcount>view.getMaxResults())
{ // there's a "next"
dcount = view.getMaxResults();
go_next = true;
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<%-- The community members/search results header --%>
<FONT SIZE=+1><B>
<% if (view.getSimple()) { %>Community Members:<% } else { %>Search Results:<% } %>
</B></FONT>
(Displaying <%= view.getOffset() + 1 %>-<%= view.getOffset() + dcount %> of
<%= view.getFindCount() %>)
</util:font></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (view.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<util:comment>Navigational Form</util:comment>
<util:form action="comm/members.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="sl" VALUE="<%= view.getSimple() ? 1 : 0 %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= view.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= view.getField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= view.getMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= view.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= view.getFindCount() %>">
<% if (view.getOffset()>0) { %>
<util:button id="previous" type="input"/>
<% } else { %>
<util:button id="_null_"/>
<% } // end if %>
&nbsp;
<% if (go_next) { %>
<util:button id="next" type="input"/>
<% } else { %>
<util:button id="_null_"/>
<% } // end if %>
</DIV></util:form>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<%-- Display the results of the search --%>
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
<% for (int i=0; i<dcount; i++) { %>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<% UserFound uf = (UserFound)(results.get(i)); %>
<util:xlink>
<util:href type="servlet">user/<%= uf.getName() %></util:href>
<util:text><%= uf.getName() %></util:text>
</util:xlink><BR>
<util:escape><%= uf.getGivenName() %> <%= uf.getFamilyName() %></util:escape>,
from <util:escape><%= uf.getLocality() %>, <%= uf.getRegion() %></util:escape>
<%= uf.getCountry() %>
<% if (view.isCommunityAdmin(uf)) { %>
&nbsp;<util:image src="tag_host.gif" fixup="true" alt="Host!" width="40" height="20"/>
<% } // end if %>
<% if (uf.getDescription()!=null) { %>
<BR><EM><util:escape><%= uf.getDescription() %></util:escape></EM>
<% } // end if %>
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if %>

49
web/format/comm/new.jsp Normal file
View File

@@ -0,0 +1,49 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
JSPView view = JSPView.get(request);
CommunityContext comm = (CommunityContext)(view.getRequestAttribute("new.community"));
%>
<util:comment>Welcome to new community <%= comm.getName() %></util:comment>
<util:header title="Welcome!"/>
<util:font color="content.fg" size="content">
Your new community <B>&quot;<util:escape><%= comm.getName() %></util:escape>&quot;</B> has been
created, and you are its host. You may now wish to send out invitations to other people to join your new
community. You will also want to enter your community's administration page and set its category and/or
additional security options, if desired.<P>
Your new community's URL is:
<DIV ALIGN=CENTER><B>
<util:escape><util:expand_servlet>community/<%= comm.getAlias() %></util:expand_servlet></util:escape>
</B></DIV><BR>
Enjoy your new community on our system!
<DIV ALIGN=CENTER>
<util:xlink>
<util:href type="servlet">community/<%= comm.getAlias() %></util:href>
<util:text>Enter Community</util:text>
</util:xlink>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">comm/invite.js.vs?cc=<%= comm.getCommunityID() %></util:href>
<util:text>Invite Users</util:text>
</util:xlink>
</DIV>
</util:font>

114
web/format/comm/profile.jsp Normal file
View File

@@ -0,0 +1,114 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.FindView" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/user" prefix="user" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%
JSPView view = JSPView.get(request);
CommunityContext comm = view.getCommunity();
String tmp;
%>
<util:comment>Profile for community #<comm:ID/></util:comment>
<util:header title="Community Profile:" subtitle="<%= comm.getName() %>"/>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="c2"><util:font color="content.fg" size="profile-dates">
<%= view.getRequestAttribute("community.logo").toString() %><BR>
<% java.util.Date tmpd = comm.getCreationDate(); %>
<% if (tmpd!=null) { %>
Community created:<BR><util:escape><%= view.formatDate(tmpd) %></util:escape><BR>
<% } // end if %>
<% tmpd = comm.getLastAccessDate(); %>
<% if (tmpd!=null) { %>
Last accessed:<BR><util:escape><%= view.formatDate(tmpd) %></util:escape><BR>
<% } // end if %>
<% tmpd = comm.getLastUpdateDate(); %>
<% if (tmpd!=null) { %>
Profile last updated:<BR><util:escape><%= view.formatDate(tmpd) %></util:escape><BR>
<% } // end if %>
<user:is_logged_in>
<DIV ALIGN="CENTER">
<comm:can_join>
<util:xlink>
<util:href type="servlet">comm/join.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="join_now"/></util:text>
</util:xlink>
</comm:can_join>
<comm:cannot_join>
<comm:can_send_invite>
<util:xlink>
<util:href type="servlet">comm/invite.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="invite"/></util:text>
</util:xlink>
</comm:can_send_invite>
</comm:cannot_join>
</DIV>
</user:is_logged_in>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<comm:is_public><B><U>Public Community</U></B><BR></comm:is_public>
<comm:is_private><B><U>Private Community</U></B><BR></comm:is_private>
<B>Category:</B>
<% CategoryDescriptor cat = (CategoryDescriptor)(view.getRequestAttribute("category")); %>
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
<% if (i>0) { %>: <% } %>
<util:xlink>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= cat.getIDAtLevel(i) %></util:href>
<util:text><util:escape><%= cat.getTitleAtLevel(i) %></util:escape></util:text>
</util:xlink>
<% } // end for %><P>
<EM><util:escape><comm:synopsis/></util:escape></EM><P>
<% UserProfile prof = (UserProfile)(view.getRequestAttribute("host.profile")); %>
<B>Host:</B>
<util:xlink>
<util:href type="servlet">user/<%= prof.getUserName() %></util:href>
<util:text><%= prof.getUserName() %></util:text>
</util:xlink><BR>
<% ContactInfo ci = (ContactInfo)(view.getRequestAttribute("contact.info")); %>
<B>Location:</B><BR>
<% tmp = ci.getCompany(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = ci.getAddressLine1(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = ci.getAddressLine2(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = view.getRequestAttribute("address.lastline").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = view.getRequestAttribute("address.country").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<BR>
<% tmp = comm.getLanguageFullName(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Primary Language:</B>
<util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = comm.getRules(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Standards of Conduct:</B>
<util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = ci.getURL(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Homepage:</B>
<A HREF="<%= tmp %>"><util:escape><%= tmp %></util:escape></A><BR><% } %>
</util:font></TD>
</TR></TABLE>

View File

@@ -0,0 +1,67 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
JSPView view = JSPView.get(request);
List community_list = (List)(view.getRequestAttribute("communities.list"));
%>
<util:comment>User community hotlist</util:comment>
<util:header title="Your Communities"/>
<util:font color="content.fg" size="content">
<util:link href="top.js.vs" type="servlet">Return to Front Page</util:link>
</util:font><P>
<% if (community_list.size()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<community_list.size(); i++) { %>
<% CommunityContext comm = (CommunityContext)(community_list.get(i)); %>
<TR>
<TD ALIGN=CENTER WIDTH=16>
<% if (comm.canUnjoin()) { %>
<util:xlink>
<util:href type="servlet">comm/sb_unjoin.js.vs?cc=<%= comm.getCommunityID() %></util:href>
<util:text><util:image src="icn_x.gif" fixup="true" alt="Unjoin" width="16"
height="16"/></util:text>
</util:xlink>
<% } else { %>&nbsp;<% } %>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">community/<%= comm.getAlias() %></util:href>
<util:text><util:escape><%= comm.getName() %></util:escape></util:text>
</util:xlink>
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_x.gif" fixup="true" alt="Unjoin" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to unjoin the specified community.
</util:font></TD>
</TR>
</TABLE>
<% } else { %>
<util:font color="content.fg" size="content"><EM>You are not a member of any communities.</EM></util:font>
<% } // end if %>

View File

@@ -0,0 +1,173 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.Iterator" %>
<%@ page import = "java.util.List" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.security.Role" %>
<%@ page import = "com.silverwrist.venice.ui.view.SetMemberView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%
SetMemberView view = SetMemberView.get(request);
%>
<util:comment>Set membership view for community <comm:name/></util:comment>
<util:header title="Set Community Membership:">
<util:subtitle><comm:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">comm/set_member.js.vs?cc=<comm:ID/></util:href>
<util:text>Redisplay Member List</util:text>
</util:xlink>&nbsp;|&nbsp;<util:xlink>
<util:href type="servlet">comm/admin_menu.js.vs?cc=<comm:ID/></util:href>
<util:text>Return to Community Administration Menu</util:text>
</util:xlink></util:font><P>
<util:font color="content.fg" size="subhead"><B>Find Users:</B></util:font><P>
<util:form action="comm/set_member.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="sl" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<util:font color="content.fg" size="content">
Display all users whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
<% if (view.testField(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (view.testField(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (view.testField(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (view.testField(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (view.testMode(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (view.testMode(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (view.testMode(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= view.getTerm() %>"></SPAN><BR>
<util:button id="search" type="input"/>
</util:font>
</DIV></util:form>
<% List results = view.getResults(); %>
<% if (results!=null) { %>
<HR>
<%
int dcount = results.size();
// Determine the number of results to display and whether to display a "next" button
boolean go_next = false;
if (dcount>view.getMaxResults())
{ // there's a "next"
dcount = view.getMaxResults();
go_next = true;
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<%-- The community members/search results header --%>
<FONT SIZE=+1><B>
<% if (view.getSimple()) { %>Community Members:<% } else { %>Search Results:<% } %>
</B></FONT>
(Displaying <%= view.getOffset() + 1 %>-<%= view.getOffset() + dcount %> of
<%= view.getFindCount() %>)
</util:font></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (view.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<util:comment>Navigational Form</util:comment>
<util:form action="comm/set_member.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE=HIDDEN NAME="sl" VALUE="<%= view.getSimple() ? 1 : 0 %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= view.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= view.getField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= view.getMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= view.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= view.getFindCount() %>">
<% if (view.getOffset()>0) { %>
<util:button id="previous" type="input"/>
<% } else { %>
<util:button id="_null_"/>
<% } // end if %>
&nbsp;
<% if (go_next) { %>
<util:button id="next" type="input"/>
<% } else { %>
<util:button id="_null_"/>
<% } // end if %>
</DIV></util:form>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<%-- Display the results of the search --%>
<% if (results.size()>0) { %>
<util:comment>Update Form</util:comment>
<util:form action="comm/set_member.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE=HIDDEN NAME="sl" VALUE="<%= view.getSimple() ? 1 : 0 %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= view.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= view.getField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= view.getMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= view.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= view.getFindCount() %>">
<% StringBuffer buf = new StringBuffer(":"); %>
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
<% for (int i=0; i<dcount; i++) { %>
<TR VALIGN=TOP>
<% UserFound uf = (UserFound)(results.get(i)); %>
<% buf.append(uf.getUID()).append(":"); %>
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">user/<%= uf.getName() %></util:href>
<util:text><%= uf.getName() %></util:text>
</util:xlink>
</util:font></TD>
<TD>&nbsp;&nbsp;</TD>
<TD ALIGN=LEFT CLASS="content">
<INPUT TYPE=HIDDEN NAME="zxcur_<%= uf.getUID() %>" VALUE="<%= uf.getLevel() %>">
<SELECT NAME="zxnew_<%= uf.getUID() %>" SIZE=1>
<% if (uf.getLevel()==view.getHostRole().getLevel()) { %>
<OPTION VALUE="<%= uf.getLevel() %>" SELECTED><util:escape><%= view.getHostRole().getName() %></util:escape></OPTION>
<% } else { %>
<% Iterator it = view.getRoleList().iterator(); %>
<% while (it.hasNext()) { %>
<% Role r = (Role)(it.next()); %>
<OPTION VALUE="<%= r.getLevel() %>" <% if (r.getLevel()==uf.getLevel()) { %>SELECTED<% } %> ><util:escape><%= r.getName() %></util:escape></OPTION>
<% } // end while %>
<% } // end if %>
</SELECT>
</TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<INPUT TYPE=HIDDEN NAME="listuids" VALUE="<%= buf.toString() %>">
<util:button id="update" type="input"/>
</DIV></util:form>
<% } // end if %>
<% } // end if %>

View File

@@ -0,0 +1,30 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<util:comment>Welcome to <comm:name/></util:comment>
<util:header title="Welcome!"/>
<util:font color="content.fg" size="content">
Welcome to the <B>&quot;<util:escape><comm:name/></util:escape>&quot;</B> community!
As a community member, you now have access to the various resources which your community's host
has elected to provide. Enjoy your membership!<P>
<DIV ALIGN="CENTER"><util:xlink>
<util:href type="servlet">community/<comm:alias/></util:href>
<util:text>Enter Community</util:text>
</util:xlink></DIV>
</util:font>