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

@@ -17,6 +17,6 @@
--%>
<%
ServletContext ctxt = getServletConfig().getServletContext();
RequestDispatcher disp = ctxt.getNamedDispatcher("top");
RequestDispatcher disp = ctxt.getRequestDispatcher("/top.js.vs");
disp.forward(request,response);
%>

View File

@@ -1,148 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
AdminFindUser data = AdminFindUser.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
%>
<% rdat.writeContentHeader(out,"User Account Management",null); %>
<%= stdfont %><A HREF="<%= rdat.getEncodedServletPath("sysadmin") %>">Return to
System Administration Menu</A></FONT><P>
<%-- Display the search form --%>
<% if (rdat.useHTMLComments()) { %><!-- User Search Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="UF">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Users:</B></FONT><BR>
<%= stdfont %>
Display all users whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (data.searchModeIs(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (data.searchModeIs(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (data.searchModeIs(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
&nbsp;&nbsp;
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</DIV></FORM>
<% List results = data.getResultsList(); %>
<% if (results!=null) { %>
<% if (rdat.useHTMLComments()) { %><!-- Display Search Results --><% } %>
<%
// Determine the number of results to display and whether to display a "next" button
int dcount = results.size();
boolean go_next = false;
if (dcount>data.getNumResultsDisplayed())
{ // there's a "next"
dcount = data.getNumResultsDisplayed();
go_next = true;
} // end if
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B>Search Results</B>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="UF">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getSearchMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getSearchTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;&nbsp;
<% if (go_next) { %>
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</DIV></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>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<% UserFound uf = (UserFound)(results.get(i)); %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A><BR>
<%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,
from <%= StringUtil.encodeHTML(uf.getLocality()) %>, <%= StringUtil.encodeHTML(uf.getRegion()) %>
<%= uf.getCountry() %>
<% if (!StringUtil.isStringEmpty(uf.getDescription())) { %>
<BR><EM><%= StringUtil.encodeHTML(uf.getDescription()) %></EM>
<% } // end if %>
<BR>
<A HREF="<%= rdat.getEncodedServletPath("sysadmin?cmd=UM&uid=" + uf.getUID()) %>">[Modify User]</A>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if (results found) %>

View File

@@ -1,43 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
AdminUserPhotoData data = AdminUserPhotoData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Change User Photo","User: " + data.getUserName()); %>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("adminuserphoto") %>">
<DIV CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<INPUT TYPE=HIDDEN NAME="uid" VALUE="<%= data.getUID() %>">
<%= data.getPhotoTag(rdat) %>
New user photo:<BR>
<INPUT TYPE="FILE" NAME="thepic"><P>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_upload.gif") %>" NAME="upload" ALT="Upload"
WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel" ALT="Cancel"
WIDTH=80 HEIGHT=24 BORDER=0><BR CLEAR=LEFT><P>
<B><A HREF="<%= rdat.getEncodedServletPath("adminuserphoto?null=true&uid=" + data.getUID()) %>">Click
here to clear user's photo</A></B>
</FONT></DIV>
</FORM>

View File

@@ -1,163 +0,0 @@
<%--
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.net.URLEncoder" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
BaseJSPData basedat = BaseJSPData.retrieve(request);
Variables.failIfNull(basedat);
UserContext user = Variables.getUserContext(application,request,session);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String header_font = rdat.getStdFontTag(ColorSelectors.TITLE_FOREGROUND,3);
String header_link_hilite = rdat.getStdFontTag(ColorSelectors.TITLE_LINK,3);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
String leftfont = rdat.getStdFontTag(ColorSelectors.LEFT_FOREGROUND,2);
String smallfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1);
String partial_tgt, foo;
%>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<HTML>
<HEAD>
<%= rdat.getTitleTag(basedat.getTitle(rdat)) %>
<%= rdat.getStdBaseFontTag(3) %>
<% if (rdat.useStyleSheet()) { %>
<LINK REL="stylesheet" HREF="<%= rdat.getEncodedServletPath("stylesheet") %>" TYPE="text/css">
<% } // end if %>
<% if (rdat.noSmartTags()) { %>
<META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE">
<% } // end if %>
</HEAD>
<BODY BGCOLOR="<%= rdat.getStdColor(ColorSelectors.FRAME_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE HEADER --><% } %>
<TABLE CLASS="tbar" BORDER=0 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.TITLE_BACKGROUND) %>" WIDTH="100%"
CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2 CLASS="tbar">
<% if (rdat.useHTMLComments()) { %><!-- Site logo --><% } %>
<%= rdat.getSiteImageTag(2,2) %>
</TD>
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2 CLASS="tbar"><%= header_font %><B>
<% if (rdat.useHTMLComments()) { %><!-- Links to Front Page, Help, Find --><% } %>
<A CLASS="tbar" HREF="<%= rdat.getEncodedServletPath("top") %>"><%= header_link_hilite %>Front Page</FONT></A><P>
<A CLASS="tbar" HREF="/TODO"><%= header_link_hilite %>Help</FONT></A>&nbsp;|&nbsp;
<A CLASS="tbar" HREF="<%= rdat.getEncodedServletPath("find") %>"><%= header_link_hilite %>Find</FONT></A>
</B></FONT></TD>
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2 CLASS="tbar">
<% if (rdat.useHTMLComments()) { %><!-- Banner Ad --><% } %>
<% basedat.renderBannerAd(out,rdat); %>
</TD>
</TR>
<% if (rdat.useHTMLComments()) { %><!-- Login reminders --><% } %>
<TR VALIGN=MIDDLE><TD ALIGN=CENTER COLSPAN=3 CLASS="tbar"><%= header_font %>
<% if (user.isLoggedIn()) { %>
You are logged in as <B><%= StringUtil.encodeHTML(user.getUserName()) %></B>
<% if (basedat.displayLoginLinks()) { %>
<%
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
foo = rdat.getEncodedServletPath(partial_tgt + "L");
%>
&nbsp;-&nbsp;<A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Log Out</FONT></A>
<% foo = rdat.getEncodedServletPath(partial_tgt + "P"); %>
&nbsp;|&nbsp;<A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Profile</FONT></A>
<% } // end if %>
<% } else { %>
You are not logged in
<% if (basedat.displayLoginLinks()) { %>
<%
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
foo = rdat.getEncodedServletPath(partial_tgt + "L");
%>
&nbsp;-&nbsp;<A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Log In</FONT></A>
<% foo = rdat.getEncodedServletPath(partial_tgt + "C"); %>
&nbsp;|&nbsp;<A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Create Account</FONT></A>
<% } // end if %>
<% } // end if %>
</FONT></TD></TR>
</TABLE>
<% if (rdat.useHTMLComments()) { %><!-- END PAGE HEADER --><% } %>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
<% if (rdat.useHTMLComments()) { %><!-- BEGIN LEFT SIDEBAR --><% } %>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><%= leftfont %>
<% if (rdat.useHTMLComments()) { %><!-- variable menu --><% } %>
<% basedat.renderMenu(session,out,rdat); %>
</FONT></TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT>&nbsp;</TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><%= leftfont %>
<% if (rdat.useHTMLComments()) { %><!-- fixed menu --><% } %>
<% basedat.renderFixedMenu(out,rdat); %>
</FONT></TD></TR>
<% if (rdat.useHTMLComments()) { %><!-- END LEFT SIDEBAR --><% } %>
</TABLE>
</TD>
<TD ALIGN=LEFT WIDTH="100%" CLASS="content"
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE CONTENT --><% } %>
<% basedat.renderContent(application,out,rdat); %>
<% if (rdat.useHTMLComments()) { %><!-- END PAGE CONTENT --><% } %>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar"
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" CLASS="footer"
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- PAGE FOOTER --><% } %>
<HR WIDTH="80%">
<% String qid = basedat.getPageQID(); %>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT CLASS="footer">
<%= smallfont %><%= rdat.getStockMessage("footer-text") %></FONT>
</TD>
<TD <% if (qid!=null) { %>ROWSPAN=2<% } %> ALIGN=LEFT CLASS="footer">
<A HREF="http://venice.sourceforge.net" TARGET="_blank"><IMG
SRC="<%= rdat.getFullImagePath("powered-by-venice.gif") %>" ALT="Powered by Venice"
WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0
HSPACE=0 VSPACE=0></A>
</TD>
</TR>
<% if (qid!=null) { %>
<TR VALIGN=TOP><TD ALIGN=RIGHT CLASS="footer">
<% if (rdat.useHTMLComments()) { %><!-- HITCOUNTER FOR QID "<%= qid %>" --><% } %>
<%-- Reserved for future use --%>
</TD></TR>
<% } // end if %>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

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 %>

View File

@@ -7,7 +7,7 @@
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 Community System.
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
@@ -15,28 +15,35 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
NewCommunityWelcome data = NewCommunityWelcome.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
JSPView view = JSPView.get(request);
CommunityContext comm = (CommunityContext)(view.getRequestAttribute("new.community"));
%>
<% if (rdat.useHTMLComments()) { %><!-- Welcome to new community <%= data.getCommunityName() %> --><% } %>
<% rdat.writeContentHeader(out,"Welcome!",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Your new community <B>&quot;<%= StringUtil.encodeHTML(data.getCommunityName()) %>&quot</B> has been
<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><%= StringUtil.encodeHTML(data.getDisplayURL(rdat)) %></B></DIV>
<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>
<A HREF="<%= data.getEntryURL(rdat) %>">Enter Community</A>&nbsp;|&nbsp;
<A HREF="<%= data.getInviteURL(rdat) %>">Invite Users</A>
<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>
</FONT>
</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

@@ -15,21 +15,16 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
CommunityWelcome data = CommunityWelcome.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Welcome to <%= data.getCommunityName() %> --><% } %>
<% rdat.writeContentHeader(out,"Welcome!",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Welcome to the <B>&quot;<%= StringUtil.encodeHTML(data.getCommunityName()) %>&quot;</B> community!
<%@ 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><A HREF="<%= data.getEntryURL(rdat) %>">Enter Community</A></DIV>
</FONT>
<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>

View File

@@ -1,57 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
CommunityEMail data = CommunityEMail.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- E-mail to community #<%= data.getCommunityID() %> --><% } %>
<% rdat.writeContentHeader(out,"Community E-Mail:",data.getCommunityName()); %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="I">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Send E-mail to all members of the community:
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Subject:</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">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel"
ALT="Cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</DIV></FORM>

View File

@@ -1,41 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
CommunityLogoData data = CommunityLogoData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Change Community Logo",null); %>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("commlogo") %>">
<DIV CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<%= data.getLogoTag(rdat) %>
New community logo:<BR>
<INPUT TYPE="FILE" NAME="thepic"><P>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_upload.gif") %>" NAME="upload" ALT="Upload"
WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel" ALT="Cancel"
WIDTH=80 HEIGHT=24 BORDER=0><BR CLEAR=LEFT>
</FONT></DIV>
</FORM>

View File

@@ -1,151 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
CommunityMembership data = CommunityMembership.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Set Community Membership:",data.getCommunityName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sigadmin?sig=" + data.getCommunityID()) %>">Return to Community
Administration Menu</A>
</FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find Users:</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all users whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (data.searchModeIs(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (data.searchModeIs(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (data.searchModeIs(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="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</DIV></FORM>
<% if (data.displayList()) { %>
<% int dcount = data.getSize(); %>
<HR>
<% if (data.isCommunityMemberList()) { %>
<%-- The community list header --%>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
Members of community "<%= StringUtil.encodeHTML(data.getCommunityName()) %>":
</B></FONT><BR>
<% } else { %>
<%
// Determine the number of results to display and whether to display a "next" button
boolean go_next = false;
if (dcount>data.getNumResultsDisplayed())
{ // there's a "next"
dcount = data.getNumResultsDisplayed();
go_next = true;
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The search results header --%>
<FONT SIZE=+1><B>Search Results:</B></FONT>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getSearchMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getSearchTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;
<% if (go_next) { %>
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<% } // end if %>
<%-- Display the results of the search --%>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
<% for (int i=0; i<dcount; i++) { %>
<% UserFound uf = data.getItem(i); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% data.outputDropDown(out,uf.getUID(),uf.getLevel()); %>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_update.gif") %>" NAME="update" ALT="Update"
WIDTH=80 HEIGHT=24 BORDER=0>
</DIV></FORM><BR>
<% } // end if %>

View File

@@ -1,71 +0,0 @@
<%--
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 Community 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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
CommunityCategoryBrowseData data = CommunityCategoryBrowseData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
CategoryDescriptor cat = data.getCurrentCategory();
int catid = cat.getCategoryID();
%>
<% rdat.writeContentHeader(out,"Set Community Category:",data.getCommunityName()); %>
<DIV ALIGN="LEFT">
<A HREF="<%= data.getCancelURL(rdat) %>"><IMG SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>"
ALT=\"Cancel\" WIDTH=80 HEIGHT=24 BORDER=0></A>
</DIV>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B>Previous community Category:</B> <%= StringUtil.encodeHTML(data.getPreviousCategory()) %><P>
<B>Current category:</B><BR>
<% if (catid>=0) { %><A HREF="<%= data.getGoLink(rdat,-1) %>"><% } %>Top<% if (catid>=0) { %></A><% } %>:
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
<% int tmpid = cat.getIDAtLevel(i); %>
<% if (catid!=tmpid) { %><A HREF="<%= data.getGoLink(rdat,tmpid) %>"><% } %><%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %><% if (catid!=tmpid) { %></A>: <% } %>
<% } // end for %>
<% if (catid>=0) { %>&nbsp;&nbsp;&nbsp;&nbsp;[<A HREF="<%= data.getSetLink(rdat,catid) %>">set</A>]<% } %>
<P><B>Subcategories:</B><BR>
<% if (data.hasSubcategories()) { %>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2>
<% Iterator it = data.getSubcategoryIterator(); %>
<% while (it.hasNext()) { %>
<% CategoryDescriptor c = (CategoryDescriptor)(it.next()); %>
<% int subid = c.getLinkedCategoryID(); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= data.getGoLink(rdat,subid) %>"><%= StringUtil.encodeHTML(c.getTitleAtLevel(c.getNumLevels()-1)) %></A>
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
&nbsp;&nbsp;&nbsp;&nbsp;[<A HREF="<%= data.getSetLink(rdat,subid) %>">set</A>]
</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>
</FONT>

View File

@@ -1,102 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
CommunityProfileData data = CommunityProfileData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
CommunityContext comm = data.getCommunityContext();
ContactInfo ci = data.getCommunityContactInfo();
CategoryDescriptor cat = data.getCategory();
String tmp;
%>
<% if (rdat.useHTMLComments()) { %><!-- Profile for community #<%= comm.getCommunityID() %> --><% } %>
<% rdat.writeContentHeader(out,"Community Profile:",comm.getName()); %>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="c2"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>
<IMG SRC="<%= data.getCommunityLogoURL(rdat)%>" ALIGN=LEFT WIDTH=110 HEIGHT=65 BORDER=0><BR CLEAR=LEFT><BR>
<% Date tmpd = comm.getCreationDate(); %>
<% if (tmpd!=null) { %>
Community created:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
<% } // end if %>
<% tmpd = comm.getLastAccessDate(); %>
<% if (tmpd!=null) { %>
Last accessed:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
<% } // end if %>
<% tmpd = comm.getLastUpdateDate(); %>
<% if (tmpd!=null) { %>
Profile last updated:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
<% } // end if %>
<% if (data.isUserLoggedIn()) { %>
<DIV ALIGN="CENTER">
<%-- EJB 4/4/2001 - reverse these tests, put canJoin FIRST --%>
<% if (comm.canJoin()) { %>
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=J&sig=" + comm.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_join_now.gif") %>" ALT="Join Now"
WIDTH=80 HEIGHT=24 BORDER=0></A>
<% } else if (comm.canSendInvitation()) { %>
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&sig=" + comm.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
<% } // end if %>
</DIV>
<% } // end if (user is logged in) %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U><% if (comm.isPublicCommunity()) { %>Public<% } else { %>Private<% } %> Community</U></B><BR>
<B>Category:</B>
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
<% if (i>0) { %>: <% } %>
<A HREF="<%= FindData.getCatJumpLink(rdat,cat.getIDAtLevel(i)) %>"><%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %></A>
<% } // end for %><P>
<EM><%= StringUtil.encodeHTML(comm.getSynopsis()) %></EM><P>
<% tmp = data.getHostUserName(); %>
<B>Host:</B> <A HREF="<%= rdat.getEncodedServletPath("user/" + tmp) %>"><%= tmp %></A><BR>
<B>Location:</B><BR>
<% tmp = ci.getCompany(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = ci.getAddressLine1(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = ci.getAddressLine2(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = data.getAddressLastLine(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = data.getFullCountry(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<BR>
<% tmp = comm.getLanguageFullName(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Primary Language:</B> <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = comm.getRules(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Standards of Conduct:</B> <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = ci.getURL(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
<B>Homepage:</B> <A HREF="<%= tmp %>" TARGET="Wander"><%= StringUtil.encodeHTML(tmp) %></A><BR>
<% } %>
</FONT></TD>
</TR></TABLE>

View File

@@ -1,65 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
UserCommunityList data = UserCommunityList.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- User conference hotlist --><% } %>
<% rdat.writeContentHeader(out,"Your Communities",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A>
</FONT><P>
<% if (data.getNumCommunities()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<data.getNumCommunities(); i++) { %>
<% CommunityContext comm = data.getCommunity(i); %>
<TR>
<TD ALIGN=CENTER WIDTH=16>
<% if (comm.canUnjoin()) { %>
<A HREF="<%= rdat.getEncodedServletPath("settings?cmd=SX&sig=" + comm.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Unjoin" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } else { %>&nbsp;<% } %>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + comm.getAlias()) %>"><%= StringUtil.encodeHTML(comm.getName()) %></A>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Unjoin" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to unjoin the specified community.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>You are not a member of
any communities.</EM></FONT>
<% } // end if %>

View File

@@ -0,0 +1,106 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/topic" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
final List data = (List)(view.getRequestAttribute("conference.activity.list"));
final boolean poster_report =
((Boolean)(view.getRequestAttribute("conference.activity.posters"))).booleanValue();
%>
<util:header>
<util:title><%= view.getRequestAttribute("conference.activity.title").toString() %></util:title>
<util:subtitle><%= view.getRequestAttribute("conference.activity.subtitle").toString() %></util:subtitle>
</util:header>
<util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/conf_reports.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Return to Conference Reports Menu</util:text>
</util:xlink></util:font><P>
<% if (data.size()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><U>User Name</U></B>
</util:font></TH>
<% if (poster_report) { %>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><U>Last Posted</U></B>
</util:font></TH>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><U>Last Read</U></B>
</util:font></TH>
<% } else { %>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><U>Last Read</U></B>
</util:font></TH>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><U>Last Posted</U></B>
</util:font></TH>
<% } // end if %>
</TR>
<% Iterator it = data.iterator(); %>
<% while (it.hasNext()) { %>
<% ActiveUser usr = (ActiveUser)(it.next()); %>
<TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink target="_blank">
<util:href type="servlet">user/<%= usr.getName() %></util:href>
<util:text><%= usr.getName() %></util:text>
</util:xlink>
</util:font></TD>
<% if (poster_report) { %>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:escape><%= view.formatDate(usr.getLastWrite()) %></util:escape>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<% if (usr.getLastRead()==null) { %>
Never
<% } else { %>
<util:escape><%= view.formatDate(usr.getLastRead()) %></util:escape>
<% } // end if %>
</util:font></TD>
<% } else { %>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:escape><%= view.formatDate(usr.getLastRead()) %></util:escape
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<% if (usr.getLastWrite()==null) { %>
Never
<% } else { %>
<util:escape><%= view.formatDate(usr.getLastWrite()) %></util:escape>
<% } // end if %>
</util:font></TD>
<% } // end if %>
</TR>
<% } // end while %>
</TABLE>
<% } else { %>
<util:font color="content.fg" size="content"><EM>
<%= view.getRequestAttribute("conference.activity.nullmessage").toString() %>
</EM></util:font>
<% } // end if %>

View File

@@ -0,0 +1,78 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.menus.MenuComponent" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
List aliases = (List)(view.getRequestAttribute("conference.aliases.list"));
%>
<util:comment>Managing aliases for conference "<conf:name/>"</util:comment>
<util:header title="Managing Conference Aliases:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/manage_conf.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Return to Manage Conference Menu</util:text>
</util:xlink>
<% Object errmsg = view.getRequestAttribute("conference.aliases.error_message"); %>
<% if (errmsg!=null) { %>
<util:font color="error" size="content"><B><util:escape><%= errmsg.toString() %></util:escape></B></util:font>
<P>
<% } // end if %>
<FONT SIZE=+1><B>Current Aliases:</B></FONT><P>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=3>
<% Iterator it = aliases.iterator(); %>
<% while (it.hasNext()) { %>
<% String name = (String)(it.next()); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:escape><%= name %></util:escape>
</util:font></TD>
<TD ALIGN=LEFT>&nbsp;&nbsp;&nbsp;&nbsp;</TD>
<TD ALIGN=LEFT CLASS="content">
<% if (aliases.size()>1) { %>
<util:xlink>
<util:href type="servlet">conf/alias_remove.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&alias=<util:urlencode><%= name %></util:urlencode></util:href>
<util:text><util:button id="remove"/></util:text>
</util:xlink>
<% } else { %>&nbsp;<% } %>
</TD>
</TR>
<% } // end while %>
</TABLE><P>
<FONT SIZE=+1><B>Add New Alias:</B></FONT><P>
<util:form action="conf/alias_add.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<conf:ID/>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="alias" SIZE=32 MAXLENGTH=64
VALUE=""></SPAN>&nbsp;
<util:button id="add" type="input"/>
</DIV></util:form>
</util:font>

View File

@@ -16,34 +16,27 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "com.silverwrist.venice.ui.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
AttachmentForm data = AttachmentForm.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
JSPView view = JSPView.get(request);
CurrentConference currc = CurrentConference.get(request);
%>
<% rdat.writeContentHeader(out,"Upload Your Attachment",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<util:header title="Upload Your Attachment"/>
<util:font color="content.fg" size="content">
Your attachment may be no more than <B>1 megabyte</B> in size.<P>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("attachment") %>">
<util:form action="conf/upload_attachment.js.vs" type="servlet" isfile="true">
<DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE=HIDDEN NAME="msg" VALUE="<%= data.getPostID() %>">
<INPUT TYPE=HIDDEN NAME="target" VALUE="<%= data.getTarget() %>">
<INPUT TYPE=HIDDEN NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<conf:ID/>">
<INPUT TYPE=HIDDEN NAME="msg" VALUE="<%= view.getRequestAttribute("attachment.postid") %>">
<INPUT TYPE=HIDDEN NAME="target" VALUE="<%= view.getRequestAttribute("attachment.target") %>">
File to attach: <INPUT TYPE="FILE" NAME="thefile"><BR>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_upload.gif") %>" NAME="upload" ALT="Upload"
WIDTH=80 HEIGHT=24 BORDER=0>
<util:button id="upload" type="input"/>
</DIV>
</FORM><P>
</FONT>
</util:form><P>
</util:font>

View File

@@ -0,0 +1,93 @@
<%--
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" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
List confs = (List)(view.getRequestAttribute("conferences.list"));
List hosts = (List)(view.getRequestAttribute("conferences.hosts.list"));
%>
<util:comment>Conference list for community "<comm:name/>"</util:comment>
<util:header title="Conference List:">
<util:subtitle><comm:name/></util:subtitle>
</util:header>
<% if (confs.size()>0) { %>
<TABLE BORDER=0 ALIGN=LEFT>
<% for (int i=0; i<confs.size(); i++) { %>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<% ConferenceContext conf = (ConferenceContext)(confs.get(i)); %>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %></util:href>
<util:text><util:escape><%= conf.getName() %></util:escape></util:text>
</util:xlink> -
Latest activity: <%= view.getActivityString(conf.getLastUpdateDate()) %>
<% if (conf.anyUnread()) { %>
<util:xlink>
<util:href type="servlet">conf/read_new.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %></util:href>
<util:text><util:image src="tag_new.gif" fixup="true" alt="New!" width="40" height="20"/></util:text>
</util:xlink>
<% } // end if %>
<BR>
<% List hosts1 = (List)(hosts.get(i)); %>
<% if (hosts1.size()>0) { %>
<% if (hosts1.size()>1) { %>Hosts:<% } else { %>Host:<% } %>
<% for (int j=0; j<hosts1.size(); j++) { %>
<% UserFound uf = (UserFound)(hosts1.get(j)); %>
<% if (j>0) { %>, <% } %>
<util:xlink>
<util:href type="servlet">user/<%= uf.getName() %></util:href>
<util:text><%= uf.getName() %></util:text>
</util:xlink>
<% } // end for %>
<% } else { %>
Hosts: <EM>(none)</EM>
<% } // end if (hosts present in the conterence) %>
<BR>
<EM><util:escape><%= conf.getDescription() %></util:escape></EM>
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } else { %>
<util:font color="content.fg" size="content"><EM>No conferences found in this community.</EM></util:font><BR>
<% } // end if %>
<P>
<DIV ALIGN="LEFT" CLASS="content">
<util:xlink>
<util:href type="servlet">conf/find.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="find"/></util:text>
</util:xlink>&nbsp;
<conf:can_manage>
<util:xlink>
<util:href type="servlet">conf/manage.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="manage"/></util:text>
</util:xlink>&nbsp;
</conf:can_manage>
<conf:can_create>
<util:xlink>
<util:href type="servlet">conf/create.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="createnew"/></util:text>
</util:xlink>&nbsp;
</conf:can_create>
</DIV>

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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
%>
<util:comment>Custom blocks for conference "<conf:name/>"</util:comment>
<util:header title="Customize Conference:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<util:form action="conf/custom.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<conf:ID/>">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><util:font color="content.fg" size="content">
Custom HTML block to appear at top of Topic List/Posts pages:
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="cinput" COLSPAN=2>
<TEXTAREA NAME="tx" WRAP=HARD ROWS=7 COLS=80><%= view.getRequestAttribute("conference.custom.top") %></TEXTAREA>
</TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><util:font color="content.fg" size="content">
Custom HTML block to appear at bottom of Topic List/Posts pages:
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="cinput" COLSPAN=2>
<TEXTAREA NAME="bx" WRAP=HARD ROWS=7 COLS=80><%= view.getRequestAttribute("conference.custom.bottom") %></TEXTAREA>
</TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content">
<util:button id="update" type="input"/>&nbsp;<util:button id="cancel" type="input"/>
</TD>
<TD ALIGN=RIGHT CLASS="content"><util:xlink>
<util:href type="servlet">conf/custom_remove.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text><util:button id="remove"/></util:text>
</util:xlink></TD>
</TR>
</TABLE>
</DIV></util:form>

View File

@@ -16,58 +16,67 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "com.silverwrist.venice.ui.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
ConferenceEMail data = ConferenceEMail.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
JSPView view = JSPView.get(request);
%>
<% if (rdat.useHTMLComments()) { %><!-- E-mail to conference #<%= data.getConferenceID() %> --><% } %>
<% rdat.writeContentHeader(out,"Conference E-Mail:",data.getConferenceName()); %>
<util:comment>E-mail to conference "<conf:name/>"</util:comment>
<util:header title="Conference E-Mail:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConferenceID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="I">
<util:form action="conf/email.js.vs" type="servlet"><DIV>
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<conf:ID/>">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><util:font color="content.fg" size="content">
Send E-mail to all&nbsp;
<SELECT NAME="porl" SIZE="1">
<OPTION VALUE="0" SELECTED>posters in</OPTION>
<OPTION VALUE="1">readers of</OPTION>
<OPTION VALUE="0" SELECTED>posters in</OPTION>
<OPTION VALUE="1">readers of</OPTION>
</SELECT>
&nbsp;topic:&nbsp;
<SELECT NAME="top" SIZE="1">
<% data.writeTopicChoices(out); %>
<OPTION VALUE="0" SELECTED>(Entire conference)</OPTION>
<%
List topics = (List)(view.getRequestAttribute("topic.email.list"));
Iterator it = topics.iterator();
%>
<% while (it.hasNext()) { %>
<% TopicContext topic = (TopicContext)(it.next()); %>
<OPTION VALUE="<%= topic.getTopicNumber() %>"><util:escape><%= topic.getName() %></util:escape></OPTION>
<% } // end while %>
</SELECT>
</FONT></TD>
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD>&nbsp;</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<INPUT TYPE=CHECKBOX NAME="xday" VALUE="Y">
Within the last <INPUT TYPE=TEXT NAME="day" VALUE="7" SIZE=3> day(s)
</FONT></TD>
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Subject:</FONT>
<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">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel"
ALT="Cancel" WIDTH=80 HEIGHT=24 BORDER=0>
<util:button id="send" type="input"/>&nbsp;<util:button id="cancel" type="input"/>
</TD></TR>
</TABLE>
</DIV></FORM>
</DIV></util:form>

165
web/format/conf/find.jsp Normal file
View File

@@ -0,0 +1,165 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.conf.view.FindPostView" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
FindPostView view = FindPostView.get(request);
%>
<util:comment>Find Posts</util:comment>
<util:header title="Find Posts">
<% if (view.getTopic()!=null) { %>
<util:subtitle>in Topic: <%= view.getTopic().getName() %></util:subtitle>
<% } else if (view.getConference()!=null) { %>
<util:subtitle>in Conference: <%= view.getConference().getName() %></util:subtitle>
<% } else { %>
<util:subtitle>in Community: <%= view.getCommunity().getName() %></util:subtitle>
<% } // end if %>
</util:header>
<util:font color="content.fg" size="content"><util:xlink>
<% if (view.getTopic()!=null) { %>
<util:href type="servlet">conf/posts.jsp?cc=<%= view.getCommunity().getCommunityID() %>&conf=<%= view.getConference().getConfID() %>&top=<%= view.getTopic().getTopicNumber() %></util:href>
<util:text>Return to Topic</util:text>
<% } else if (view.getConference()!=null) { %>
<util:href type="servlet">conf/topics.jsp?cc=<%= view.getCommunity().getCommunityID() %>&conf=<%= view.getConference().getConfID() %></util:href>
<util:text>Return to Topic List</util:text>
<% } else { %>
<util:href type="servlet">conf/conferences.jsp?cc=<%= view.getCommunity().getCommunityID() %></util:href>
<util:text>Return to Conference List</util:text>
<% } // end if %>
</util:xlink></util:font><P>
<util:form action="conf/find.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<%= view.getCommunity().getCommunityID() %>">
<% if (view.getConference()!=null) { %>
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= view.getConference().getConfID() %>">
<% if (view.getTopic()!=null) { %>
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= view.getTopic().getTopicNumber() %>">
<% } // end if %>
<% } // end if %>
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="fcount" VALUE="-1">
<util:font color="content.fg" size="content">
Keywords: <SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=64 MAXLENGTH=255
VALUE="<%= view.getTerm() %>"></SPAN>
</util:font><BR>
<util:button id="search" type="input"/>
</DIV></util:form><P>
<% List results = view.getResults(); %>
<% if (results!=null) { %>
<util:comment>Display Search Results</util:comment>
<%
// Determine the number of results to display and whether to display a "next" button
int dcount = results.size();
boolean go_next = false;
if (dcount>view.getMaxResults())
{ // there's a "next"
dcount = view.getMaxResults();
go_next = true;
} // end if
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B>Search Results</B>
<% if (view.getFindCount()>0) { %>
(Displaying <%= view.getOffset() + 1 %>-<%= view.getOffset() + dcount %> of
<%= view.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<util:comment>Navigational form</util:comment>
<util:form action="conf/find.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<%= view.getCommunity().getCommunityID() %>">
<% if (view.getConference()!=null) { %>
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= view.getConference().getConfID() %>">
<% if (view.getTopic()!=null) { %>
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= view.getTopic().getTopicNumber() %>">
<% } // end if %>
<% } // end if %>
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= view.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= view.getOffset() %>">
<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;&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=6>
<TR VALIGN=TOP>
<TH ALIGN=LEFT CLASS="CONTENT">
<util:font color="content.fg" size="content"><B><U>Post Link</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<util:font color="content.fg" size="content"><B><U>Author</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<util:font color="content.fg" size="content"><B><U>Post Date</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<util:font color="content.fg" size="content"><B><U>Lines</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">&nbsp;</TH>
</TR>
<% for (int i=0; i<dcount; i++) { %>
<TR VALIGN=TOP>
<% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">go/<%= post.getIdentifier() %></util:href>
<util:text><%= post.getIdentifier() %></util:text>
</util:xlink></util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">user/<%= post.getAuthor() %></util:href>
<util:text><%= post.getAuthor() %></util:text>
</util:xlink></util:font></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<%= view.formatDate(post.getPostDate()) %>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<%= post.getLineCount() %>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:escape><%= post.getText() %></util:escape>
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if %>

100
web/format/conf/hotlist.jsp Normal file
View File

@@ -0,0 +1,100 @@
<%--
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 hotlist = (List)(view.getRequestAttribute("user.conf.hotlist"));
%>
<util:comment>User conference hotlist</util:comment>
<util:header title="Your Conference Hotlist"/>
<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 (hotlist.size()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=3>
<% for (int i=0; i<hotlist.size(); i++) { %>
<% ConferenceContext conf = ((ConferenceHotlistEntry)(hotlist.get(i))).getConference(); %>
<% CommunityContext comm = conf.getEnclosingCommunity(); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(hotlist.size()-1)) { %>&nbsp;<% } else { %>
<util:xlink>
<util:href type="servlet">conf/hotlist_move.js.vs?ndx=<%= i %>&ndx2=<%= i+1 %></util:href>
<util:text><util:image src="icn_down.gif" fixup="true" alt="[Down]" width="16"
height="16"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<util:xlink>
<util:href type="servlet">conf/hotlist_move.js.vs?ndx=<%= i %>&ndx2=<%= i-1 %></util:href>
<util:text><util:image src="icn_up.gif" fixup="true" alt="[Up]" width="16"
height="16"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16><util:xlink>
<util:href type="servlet">conf/hotlist_delete.js.vs?ndx=<%= i %></util:href>
<util:text><util:image src="icn_x.gif" fixup="true" alt="[Remove]" width="16"
height="16"/></util:text>
</util:xlink></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><util:escape><%= conf.getName() %></util:escape></B>
(<util:escape><%= comm.getName() %></util:escape>)
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_down.gif" fixup="true" alt="[Down]" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to move the specified conference down in your hotlist.
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_up.gif" fixup="true" alt="[Up]" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to move the specified conference up in your hotlist.
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_x.gif" fixup="true" alt="[Remove]" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to remove the specified conference from your hotlist.
</util:font></TD>
</TR>
</TABLE>
<% } else { %>
<util:font color="content.fg" size="content"><EM>
You have no conferences in your conference hotlist. You can add conferences to your hotlist
by visiting the conferences and pressing the "Add to Hotlist" button.
</EM></util:font>
<% } // end if %>

View File

@@ -0,0 +1,74 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.menus.MenuComponent" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
%>
<util:comment>Managing conference "<conf:name/>"</util:comment>
<util:header title="Manage Conference:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/topics.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Return to Topic List</util:text>
</util:xlink></util:font><P>
<util:comment>Set Default Pseud Form</util:comment>
<util:form action="conf/set_pseud.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<conf:ID/>">
<util:font color="content.fg" size="content">
Set default pseud for conference:
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" VALUE="<conf:default_pseud/>"
SIZE=37 MAXLENGTH=255></SPAN>&nbsp;
<util:button id="set" type="input"/>
</util:font>
</DIV></util:form><P>
<util:comment>Fixseen Link</util:comment>
<util:font color="content.fg" size="content"><B><util:xlink>
<util:href type="servlet">conf/fixseen.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Mark entire conference as read (fixseen)</util:text>
</util:xlink></B></util:font><P>&nbsp;<P>
<conf:can_send_invite>
<util:comment>Invitation Section</util:comment>
<util:header title="Send Invitation"/>
<util:font color="content.fg" size="content">
You may send an invitation via E-mail to outside individuals to join this community and
read this conference.<P>
<B><util:xlink>
<util:href type="servlet">conf/invite_conf.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Click here to send an invitation</util:text>
</util:xlink></B>
</util:font><P>&nbsp;<P>
</conf:can_send_invite>
<% MenuComponent mc = (MenuComponent)(view.getRequestAttribute("conference.host.tools.menu")); %>
<% if (mc!=null) { %>
<util:comment>Host Tools Section</util:comment>
<% mc.render(JSPView.getRequestOutput(request),out); %>
<% } // end if %>

View File

@@ -0,0 +1,140 @@
<%--
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" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
List confs = (List)(view.getRequestAttribute("conference.list"));
final int[] a_prev = (int[])(view.getRequestAttribute("conference.prev.array"));
final int[] a_next = (int[])(view.getRequestAttribute("conference.next.array"));
final boolean[] a_hidden = (boolean[])(view.getRequestAttribute("conference.hidden.array"));
%>
<util:comment>Manage conference list for community "<comm:name/>"</util:comment>
<util:header title="Manage Conference List">
<util:subtitle>Community: <comm:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/conferences.js.vs?cc=<comm:ID/></util:href>
<util:text>Return to Conference List</util:text>
</util:xlink>
</util:font><P>
<% if (confs.size()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<confs.size(); i++) { %>
<% ConferenceContext conf = (ConferenceContext)(confs.get(i)); %>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:xlink>
<% if (a_hidden[i]) { %>
<util:href type="servlet">conf/manage_list_sethide.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %>&flag=0</util:href>
<util:text><util:image src="icn_off.gif" fixup="true" alt="Hidden (toggle)" width="16"
height="16"/></util:text>
<% } else { %>
<util:href type="servlet">conf/manage_list_sethide.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %>&flag=1</util:href>
<util:text><util:image src="icn_on.gif" fixup="true" alt="Displayed (toggle)" width="16"
height="16"/></util:text>
<% } // end if %>
</util:xlink>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(confs.size()-1)) { %>&nbsp;<% } else { %>
<util:xlink>
<util:href type="servlet">conf/manage_list_swap.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %>&other=<%= a_next[i] %></util:href>
<util:text><util:image src="icn_down.gif" fixup="true" alt="Move Down" width="16"
height="16"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<util:xlink>
<util:href type="servlet">conf/manage_list_swap.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %>&other=<%= a_prev[i] %></util:href>
<util:text><util:image src="icn_up.gif" fixup="true" alt="Move Up" width="16"
height="16"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<util:xlink>
<util:href type="servlet">conf/manage_list_delete.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %></util:href>
<util:text><util:image src="icn_x.gif" fixup="true" alt="Remove" width="16"
height="16"/></util:text>
</util:xlink>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:escape><%= conf.getName() %></util:escape>
</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_on.gif" fixup="true" alt="Displayed (toggle)" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
This indicates that the conference is displayed in the community's conference list. Click the symbol
to hide it.
</util:font></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_off.gif" fixup="true" alt="Hidden (toggle)" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
This indicates that the conference is hidden in the community's conference list. Click the symbol
to display it.
</util:font></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_down.gif" fixup="true" alt="Move Down" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to move the specified conference down in the community's conference list.
</util:font></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_up.gif" fixup="true" alt="Move Up" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to move the specified conference up in the community's conference list.
</util:font></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_x.gif" fixup="true" alt="Remove" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to delete the specified conference. You will be prompted to confirm this
action.
</util:font></TD>
</TR>
</TABLE>
<% } else { %>
<util:font color="content.fg" size="content"><EM>There are no conferences in this community.</EM></util:font>
<% } // end if %>

View File

@@ -0,0 +1,109 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.menus.MenuComponent" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/topic" prefix="topic" %>
<%
JSPView view = JSPView.get(request);
%>
<util:comment>Managing topic #<topic:number/> in conference "<conf:name/>"</util:comment>
<util:header title="Manage Topic:">
<util:subtitle><topic:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/posts.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<topic:number/></util:href>
<util:text>Return to Topic</util:text>
</util:xlink></util:font><P>
<util:font color="content.fg" size="content">
<DIV ALIGN="LEFT"><B>Topic Subscription:</B></DIV>
<topic:subscribed>
You are currently subscribed to this topic, and will receive all new posts to it via E-mail.<P>
<B><util:xlink>
<util:href type="servlet">conf/subscribe_topic.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<topic:number/>&flag=0</util:href>
<util:text>Click Here to Stop Subscribing To This Topic</util:text>
</util:xlink></B>
</topic:subscribed>
<topic:not_subscribed>
You are not currently subscribed to this topic. When you subscribe to a topic, you will receive all new
posts to that topic via E-mail.<P>
<B><util:xlink>
<util:href type="servlet">conf/subscribe_topic.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<topic:number/>&flag=1</util:href>
<util:text>Click Here to Start Subscribing To This Topic</util:text>
</util:xlink></B>
</topic:not_subscribed>
<P>&nbsp;<P>
<topic:can_send_invite>
<util:comment>Invitation Section</util:comment>
<util:header title="Send Invitation"/>
<util:font color="content.fg" size="content">
You may send an invitation via E-mail to outside individuals to join this community and
read this topic in the conference.<P>
<B><util:xlink>
<util:href type="servlet">conf/invite_topic.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<topic:number/></util:href>
<util:text>Click Here to send an invitation</util:text>
</util:xlink></B>
</util:font><P>&nbsp;<P>
</topic:can_send_invite>
<util:comment>Filtered Users Section</util:comment>
<util:header title="Filtered Users"/>
<% List bozos = (List)(view.getRequestAttribute("topic.bozos.list")); %>
<% if (bozos.size()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% Iterator it = bozos.iterator(); %>
<% while (it.hasNext()) { %>
<% UserProfile prof = (UserProfile)(it.next()); %>
<TR>
<TD ALIGN=CENTER WIDTH=16><util:xlink>
<util:href type="servlet">conf/remove_bozo.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<topic:number/>&u=<%= prof.getUID() %></util:href>
<util:text><util:image src="icn_x.gif" fixup="true" alt="Remove" width="16" height="16"/></util:text>
</util:xlink></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
&lt;<util:xlink>
<util:href type="servlet">user/<%= prof.getUserName() %></util:href>
<util:text><%= prof.getUserName() %></util:text>
</util:xlink>&gt;
<EM><util:escape>(<%= prof.getGivenName() %> <%= prof.getFamilyName() %>)</util:escape></EM>
</util:font></TD>
</TR>
<% } // end while %>
</TABLE><P>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_x.gif" fixup="true" alt="Remove" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to cease filtering this user in this topic.
</util:font></TD>
</TR>
</TABLE>
<% } else { %>
<DIV ALIGN="CENTER"><EM>No users currently filtered.</EM></DIV>
<% } // end if %>
</util:font>

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.conf.view.ConfMemberView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
ConfMemberView view = ConfMemberView.get(request);
%>
<util:comment>Set membership view for conference <conf:name/></util:comment>
<util:header title="Set Conference Membership:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/membership.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Redisplay Member List</util:text>
</util:xlink>&nbsp;|&nbsp;<util:xlink>
<util:href type="servlet">conf/manage_conf.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Return to Manage Conference Menu</util:text>
</util:xlink></util:font><P>
<util:font color="content.fg" size="subhead"><B>Find Members of Community "<comm:name/>":</B></util:font><P>
<util:form action="conf/membership.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<conf: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 conference members/search results header --%>
<FONT SIZE=+1><B>
<% if (view.getSimple()) { %>Conference 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="conf/membership.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<conf: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="conf/membership.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cc" VALUE="<comm:ID/>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<conf: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>
<% 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 %>
</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,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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/post" prefix="post" %>
<%
JSPView view = JSPView.get(request);
CurrentConference currc = CurrentConference.get(request);
final String preview_text = (String)(view.getRequestAttribute("preview.text"));
%>
<util:comment>New topic in conference "<conf:name/>"</util:comment>
<util:header>
<% if (preview_text==null) { %>
<util:title>Create New Topic</util:title>
<% } else { %>
<util:title>Preview New Topic</util:title>
<% } // end if %>
<util:subtitle>in: <conf:name/></util:subtitle>
</util:header>
<% if (preview_text!=null) { %>
<util:font color="content.fg" size="subhead"><B>
<% final int num_errors = ((Integer)(view.getRequestAttribute("preview.num_errors"))).intValue(); %>
<% if (num_errors==0) { %>
Your post did not contain any spelling errors.
<% } else if (num_errors==1) { %>
There was 1 spelling error in your post.
<% } else { %>
There were <%= num_errors %> spelling errors in your post.
<% } // end if %>
</B></util:font>
<P><TT><PRE CLASS="post"><post:rewrite><%= preview_text %></post:rewrite></PRE></TT><HR>
<% } // end if %>
<post:box action="conf/new_topic.js.vs" type="servlet">
<post:param name="cc"><comm:ID/></post:param>
<post:param name="conf"><conf:ID/></post:param>
<post:newtopic name="title"><%= view.getRequestAttribute("postbox.newtopic") %></post:newtopic>
<post:pseud name="pseud"><%= view.getRequestAttribute("postbox.pseud") %></post:pseud>
<% if (view.getRequestAttribute("postbox.attach")!=null) { %>
<post:attach name="attach" value="true"/>
<% } else { %>
<post:attach name="attach"/>
<% } // end if %>
<post:text name="pb"><%= view.getRequestAttribute("postbox.data") %></post:text>
<post:button id="preview"/><post:button id="post1"/><post:button id="cancel"/>
</post:box>

546
web/format/conf/posts.jsp Normal file
View File

@@ -0,0 +1,546 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.conf.view.PostsView" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/post" prefix="post" %>
<%
PostsView view = PostsView.get(request);
final CommunityContext my_comm = view.getCommunity();
final ConferenceContext my_conf = view.getConference();
final TopicContext my_topic = view.getTopic();
final short my_topicnum = my_topic.getTopicNumber();
final short my_next = view.getNextTopic();
final int my_total_msg = my_topic.getTotalMessages();
final int my_unread = view.getUnread();
final int my_first = view.getFirst();
final int my_last = view.getLast();
final int my_pagesize = view.getPageSize();
final String base_locator = "cc=" + my_comm.getCommunityID() + "&conf=" + my_conf.getConfID();
final String topic_locator = base_locator + "&top=" + my_topicnum;
final String next_locator = base_locator + "&top=" + my_next;
final String restorer = "rtop=" + my_topicnum + "&rct=" + my_unread;
%>
<util:comment>
Posts <%= my_first %> through <%= my_last %> in topic #<%= my_topic.getTopicID() %>
</util:comment>
<util:header>
<util:title><%= view.getTitle() %></util:title>
<util:subtitle>
<% if (my_topic.isArchived()) { %>
(Archived)
<% } else if (my_topic.isFrozen()) { %>
(Frozen)
<% } // end if %>
<%= view.getSubtitle() %>
</util:subtitle>
</util:header>
<%= view.getTopCustom() %>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT COLSPAN=2 CLASS="content">
<util:comment>Topic user controls section</util:comment>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="topic_list"/></util:text>
</util:xlink>
&nbsp;
<% if (my_topic.isHidden()) { %>
<util:xlink>
<util:href type="servlet">conf/hide_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
<util:text><util:button id="show_topic"/></util:text>
</util:xlink>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/hide_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
<util:text><util:button id="hide_topic"/></util:text>
</util:xlink>
<% } // end if %>
&nbsp;
<% if (view.canDoNextTopic()) { %>
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= next_locator %>&rnm=1</util:href>
<util:text><util:button id="next_topic"/></util:text>
</util:xlink>
&nbsp;
<% if (my_unread>0) { %>
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= next_locator %>&rnm=1&<%= restorer %></util:href>
<util:text><util:button id="next_topic_keep"/></util:text>
</util:xlink>
&nbsp;
<%
} // end if
} // end if
%>
<util:xlink>
<util:href type="servlet">conf/find.js.vs?<%= topic_locator %></util:href>
<util:text><util:button id="find"/></util:text>
</util:xlink>
&nbsp;
<util:xlink>
<util:href type="servlet">conf/manage_topic.js.vs?<%= topic_locator %></util:href>
<util:text><util:button id="manage"/></util:text>
</util:xlink>
</TD>
</TR>
<% out.flush(); response.flushBuffer(); %>
<TR VALIGN=BOTTOM>
<TD>&nbsp;</TD>
<TD NOWRAP ALIGN=RIGHT CLASS="content">
<util:comment>Topic admin controls section</util:comment>
<% if (my_topic.canFreeze()) { %>
&nbsp;
<% if (my_topic.isFrozen()) { %>
<util:xlink>
<util:href type="servlet">conf/freeze_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
<util:text><util:button id="unfreeze_topic"/></util:text>
</util:xlink>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/freeze_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
<util:text><util:button id="freeze_topic"/></util:text>
</util:xlink>
<%
} // end if
} // end if
if (my_topic.canArchive()) {
%>
&nbsp;
<% if (my_topic.isArchived()) { %>
<util:xlink>
<util:href type="servlet">conf/archive_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
<util:text><util:button id="unarchive_topic"/></util:text>
</util:xlink>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/archive_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
<util:text><util:button id="archive_topic"/></util:text>
</util:xlink>
<%
} // end if
} // end if
if (my_topic.canDelete()) {
%>
&nbsp;
<util:xlink>
<util:href type="servlet">conf/delete_topic.js.vs?<%= topic_locator %></util:href>
<util:text><util:button id="delete_topic"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
</TR>
<% out.flush(); response.flushBuffer(); %>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT CLASS="content">
<util:comment>Go box</util:comment>
<util:form verb="GET" action="conf/posts.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="cc" VALUE="<%= my_comm.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= my_conf.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= my_topicnum %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pxg" VALUE="" SIZE=6
MAXLENGTH=13></SPAN>&nbsp;
<util:button id="go" type="input"/>
</DIV></util:form>
</TD>
<TD NOWRAP ALIGN=RIGHT CLASS="content"><util:font color="content.fg" size="content">
<util:comment>Upper navigation linkset</util:comment>
<A NAME="top">[</A>&nbsp;
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= topic_locator %>&p1=0&p2=-1</util:href>
<util:text>View All</util:text>
</util:xlink>
<% if (my_first>0) { %>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&p1=<%= Math.max(my_first - my_pagesize,0) %>&p2=<%= my_first - 1 - Math.min(my_first - my_pagesize,0) %>
</util:href>
<util:text>Scroll Up <%= my_pagesize %></util:text>
</util:xlink>
<%
} // end if
if ((my_total_msg - (my_last + 1))>0) {
%>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_last + my_pagesize,my_total_msg - 1) %>
</util:href>
<util:text>Scroll Down <%= my_pagesize %></util:text>
</util:xlink>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_total_msg - my_pagesize %>&p2=<%= my_total_msg - 1 %>
</util:href>
<util:text>Scroll To End</util:text>
</util:xlink>
<% } // end if %>
&nbsp;|&nbsp;
<A HREF="#bottom">Bottom</A>
&nbsp;]
</util:font></TD>
</TR>
</TABLE>
<% out.flush(); response.flushBuffer(); %>
<util:comment>Begin Actual Messages</util:comment>
<%
Iterator it = view.getMessages().iterator();
String last_post = "shac=1&p1=" + String.valueOf(my_total_msg - 1);
boolean can_line = false;
while (it.hasNext()) {
TopicMessageContext msg = (TopicMessageContext)(it.next());
String poster = view.getPosterName(msg);
if (can_line && (msg.getPostNumber()==(my_total_msg-my_unread))) {
out.write("<HR WIDTH=\"70%\">\n");
} // end if
if (view.getShowAdvanced() && (view.getMessages().size()==1)) {
%>
<BR>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=TOP><TD NOWRAP ALIGN=LEFT CLASS="content">
<% } // end if %>
<util:font color="content.fg" size="content">
<%
if (!(view.bozoFilterUser(msg.getCreatorUID()))) {
out.write(view.getUserPhotoTag(JSPView.getRequestOutput(request),msg.getCreatorUID()));
} // end if
%>
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&shac=1&p1=<%= msg.getPostNumber() %>
</util:href>
<util:text><%= msg.getPostNumber() %></util:text>
</util:xlink> of
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= topic_locator %>&<%= last_post %></util:href>
<util:text><%= my_total_msg - 1 %></util:text>
</util:xlink>
<util:font color="content.fg" size="post-reference">
&lt;<%= view.getTopicStem() %><%= msg.getPostNumber() %>&gt;
</util:font>
<%
if (view.getShowAdvanced() && (view.getMessages().size()==1)) {
if (msg.isHidden()) {
out.write("<B><EM>(Hidden)</EM></B>\n");
} // end if
if (view.showBozoFilteredIndicator(msg.getCreatorUID())) {
%>
<B><EM>(User filtered;
<util:xlink>
<util:href type="servlet">
conf/message_bozo.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=0
</util:href>
<util:text>remove filter</util:text>
</util:xlink>)
</EM></B>
<%
} // end if
} // end if
if (!(view.bozoFilterUser(msg.getCreatorUID()))) {
%>
<BR>
<B><%= msg.getPseud() %></B>
(<EM>
<util:xlink target="_blank">
<util:href type="servlet">user/<%= poster %></util:href>
<util:text><%= poster %></util:text>
</util:xlink>,
<%= view.formatDate(msg.getPostDate()) %>
</EM>)
<%
if (msg.hasAttachment()) {
if (view.displayAttachmentInNewWindow(msg)) {
%>
<util:xlink target="_blank">
<util:href type="servlet">
conf/view_attachment.js.vs?<%= base_locator %>&msg=<%= msg.getPostID() %>
</util:href>
<util:text>
<util:image src="attachment.gif" fixup="true" width="16" height="16">
<util:alt>
(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)
</util:alt>
</util:image>
</util:text>
<util:linktitle>
(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)
</util:linktitle>
</util:xlink>
<% } else { %>
<util:xlink>
</util:xlink>
<%
} // end if
} // end if
} // end if
%>
</util:font>
<P>
<% if (msg.isScribbled()) { %>
<SPAN CLASS="post"><TT><EM><B>
(Scribbled by <%= view.getMessageBodyText(msg) %> on
<%= view.formatDate(msg.getScribbleDate()) %>)
</B></EM></TT></SPAN>
<% if (view.getPhotoDims()!=null) { %><BR CLEAR=LEFT><% } %><P>
<% } else if (view.bozoFilterUser(msg.getCreatorUID())) { %>
<SPAN CLASS="post"><TT><EM><B>
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&shac=1&nbz=1&p1=<%= msg.getPostNumber() %>
</util:href>
<util:text>
(Message from Filtered User:
<%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)
</util:text>
</util:xlink>
</B></EM></TT></SPAN><P>
<% } else if (msg.isHidden() && (!(view.getShowAdvanced()) || (view.getMessages().size()!=1))) { %>
<SPAN CLASS="post"><TT><EM><B>
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&shac=1&p1=<%= msg.getPostNumber() %>
</util:href>
<util:text>
(Hidden Message:
<%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)
</util:text>
</util:xlink>
</B></EM></TT></SPAN>
<% if (view.getPhotoDims()!=null) { %><BR CLEAR=LEFT><% } %><P>
<% } else { %>
<TT><PRE CLASS="post"><post:rewrite><%= view.getMessageBodyText(msg) %></post:rewrite></PRE></TT>
<% if (view.getPhotoDims()!=null) { %><BR CLEAR=LEFT><% } %><P>
<%
} // end if
if (view.getShowAdvanced() && (view.getMessages().size()==1)) {
%>
</TD><TD NOWRAP ALIGN=RIGHT CLASS="content">
<%
if (!(msg.isScribbled())) {
if (msg.canHide()) {
if (msg.isHidden()) {
%>
<util:xlink>
<util:href type="servlet">
conf/hide_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=0
</util:href>
<util:text><util:button id="show"/></util:text>
</util:xlink><P>
<% } else { %>
<util:xlink>
<util:href type="servlet">
conf/hide_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=1
</util:href>
<util:text><util:button id="hide"/></util:text>
</util:xlink><P>
<%
} // end if
} // end if (can hide)
if (msg.canScribble()) {
%>
<util:xlink>
<util:href type="servlet">
conf/scribble_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
</util:href>
<util:text><util:button id="scribble"/></util:text>
</util:xlink><P>
<%
} // end if (can scribble)
} // end if (not already scribbled)
if (view.showFilterButton(msg.getCreatorUID())) {
%>
<util:xlink>
<util:href type="servlet">
conf/message_bozo.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=1
</util:href>
<util:text><util:button id="filter_user"/></util:text>
</util:xlink><P>
<%
} // end if (can bozo filter)
if (msg.canNuke()) {
%>
<util:xlink>
<util:href type="servlet">
conf/nuke_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
</util:href>
<util:text><util:button id="nuke"/></util:text>
</util:xlink><P>
<%
} // end if (can nuke)
if (msg.canPublish()) {
%>
<util:xlink>
<util:href type="servlet">
conf/publish_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
</util:href>
<util:text><util:button id="publish"/></util:text>
</util:xlink><P>
<% } // end if (can publish) %>
</TD></TR></TABLE><BR>
<%
} // end if (showing advanced controls)
can_line = true;
out.flush();
response.flushBuffer();
} // end while
%>
<util:comment>End Actual Messages</util:comment>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>&nbsp;</TD>
<TD NOWRAP ALIGN=RIGHT CLASS="content"><util:font color="content.fg" size="content">
<util:comment>Lower navigation linkset</util:comment>
<A NAME="bottom">[</A>&nbsp;
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= topic_locator %>&p1=0&p2=-1</util:href>
<util:text>View All</util:text>
</util:xlink>
<% if (my_first>0) { %>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&p1=<%= Math.max(my_first - my_pagesize,0) %>&p2=<%= my_first - 1 - Math.min(my_first - my_pagesize,0) %>
</util:href>
<util:text>Scroll Up <%= my_pagesize %></util:text>
</util:xlink>
<% } // end if %>
<% if ((my_total_msg - (my_last + 1))>0) { %>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_last + my_pagesize,my_total_msg - 1) %>
</util:href>
<util:text>Scroll Down <%= my_pagesize %></util:text>
</util:xlink>
&nbsp;|&nbsp;
<util:xlink>
<util:href type="servlet">
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_total_msg - my_pagesize %>&p2=<%= my_total_msg - 1 %>
</util:href>
<util:text>Scroll To End</util:text>
</util:xlink>
<% } // end if %>
&nbsp;|&nbsp;
<A HREF="#top">Top</A>
&nbsp;]
</util:font></TD>
</TR>
<% out.flush(); response.flushBuffer(); %>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT COLSPAN=2 CLASS="content">
<util:comment>Topic user controls section</util:comment>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="topic_list"/></util:text>
</util:xlink>
&nbsp;
<% if (my_topic.isHidden()) { %>
<util:xlink>
<util:href type="servlet">conf/hide_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
<util:text><util:button id="show_topic"/></util:text>
</util:xlink>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/hide_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
<util:text><util:button id="hide_topic"/></util:text>
</util:xlink>
<% } // end if %>
&nbsp;
<% if (view.canDoNextTopic()) { %>
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= next_locator %>&rnm=1</util:href>
<util:text><util:button id="next_topic"/></util:text>
</util:xlink>
&nbsp;
<% if (my_unread>0) { %>
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= next_locator %>&rnm=1&<%= restorer %></util:href>
<util:text><util:button id="next_topic_keep"/></util:text>
</util:xlink>
&nbsp;
<%
} // end if
} // end if
%>
<util:xlink>
<util:href type="servlet">conf/find.js.vs?<%= topic_locator %></util:href>
<util:text><util:button id="find"/></util:text>
</util:xlink>
&nbsp;
<util:xlink>
<util:href type="servlet">conf/manage_topic.js.vs?<%= topic_locator %></util:href>
<util:text><util:button id="manage"/></util:text>
</util:xlink>
</TD>
</TR>
</TABLE>
<% out.flush(); response.flushBuffer(); %>
<%
final boolean flag1 = my_conf.canPostToConference();
final boolean flag2 = (my_topic.isFrozen() ? my_topic.canFreeze() : true);
final boolean flag3 = (my_topic.isArchived() ? my_topic.canArchive() : true);
if (flag1 && flag2 && flag3) {
%>
<HR><SPAN STYLE="font-size: 14pt;"><util:font color="content.fg" size="subhead">
<B>Post Message in &quot;<%= my_topic.getName() %>&quot;:</B>
</util:font></SPAN><BR>
<post:box action="conf/post_message.js.vs" type="servlet">
<post:param name="cc"><%= my_comm.getCommunityID() %></post:param>
<post:param name="conf"><%= my_conf.getConfID() %></post:param>
<post:param name="top"><%= my_topicnum %></post:param>
<% if (view.canDoNextTopic()) { %>
<post:param name="next"><%= my_next %></post:param>
<% } // end if %>
<post:param name="sd"><%= my_total_msg %></post:param>
<post:pseud name="pseud"><%= my_conf.getDefaultPseud() %></post:pseud>
<post:attach name="attach"/>
<post:text name="pb"/>
<post:button id="preview"/><post:button id="post"/>
<% if (view.canDoNextTopic()) { %>
<post:button id="postnext"/>
<% } // end if %>
<post:button id="posttopics"/>
</post:box>
<%
} else if (my_conf.canPostToConference()) {
if (my_topic.isArchived()) {
%>
<DIV ALIGN=CENTER CLASS="content"><util:font color="content.fg" size="content"><B>This is an
<EM>Archived</EM> Topic</B></util:font></DIV>
<% } else if (my_topic.isFrozen()) { %>
<DIV ALIGN=CENTER CLASS="content"><util:font color="content.fg" size="content"><B>This is a
<EM>Frozen</EM> Topic</B></util:font></DIV>
<%
} // end if
} // end if
%>
<%= view.getBottomCustom() %>
<% out.flush(); response.flushBuffer(); %>

View File

@@ -0,0 +1,69 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/topic" prefix="topic" %>
<%@ taglib uri="/tlds/post" prefix="post" %>
<%
JSPView view = JSPView.get(request);
CurrentConference currc = CurrentConference.get(request);
%>
<util:header title="Previewing Post"/>
<util:font color="content.fg" size="subhead"><B>
<% final int num_errors = ((Integer)(view.getRequestAttribute("preview.num_errors"))).intValue(); %>
<% if (num_errors==0) { %>
Your post did not contain any spelling errors.
<% } else if (num_errors==1) { %>
There was 1 spelling error in your post.
<% } else { %>
There were <%= num_errors %> spelling errors in your post.
<% } // end if %>
</B></util:font>
<% String tmp = view.getRequestAttribute("preview.text").toString(); %>
<P><TT><PRE CLASS="post"><post:rewrite><%= tmp %></post:rewrite></PRE></TT><HR>
<% final String next = (String)(view.getRequestAttribute("postbox.hidden.next")); %>
<post:box action="conf/post_message.js.vs" type="servlet">
<post:param name="cc"><comm:ID/></post:param>
<post:param name="conf"><conf:ID/></post:param>
<post:param name="top"><topic:number/></post:param>
<% if (next!=null) { %>
<post:param name="next"><%= next %></post:param>
<% } // end if %>
<post:param name="sd"><%= view.getRequestAttribute("postbox.hidden.sd") %></post:param>
<% if (view.getRequestAttribute("postbox.hidden.slip")!=null) { %>
<post:param name="slip">Y</post:param>
<% } // end if %>
<post:pseud name="pseud"><%= view.getRequestAttribute("postbox.pseud") %></post:pseud>
<% if (view.getRequestAttribute("postbox.attach")!=null) { %>
<post:attach name="attach" value="true"/>
<% } else { %>
<post:attach name="attach"/>
<% } // end if %>
<post:text name="pb"><%= view.getRequestAttribute("postbox.data") %></post:text>
<post:button id="preview"/><post:button id="post"/>
<% if (next!=null) { %>
<post:button id="postnext"/>
<% } // end if %>
<post:button id="posttopics"/><post:button id="cancel"/>
</post:box>

View File

@@ -0,0 +1,76 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
%>
<util:comment>Reports for conference "<conf:name/>"</util:comment>
<util:header title="Conference Reports:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<util:font color="content.fg" size="content">
<util:href type="servlet">conf/manage_conf.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Return to Manage Conference Menu</util:text>
</util:font><P>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=MIDDLE>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><B><U>#</U></B></util:font></TH>
<TH ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><B><U>Topic Name</U></B></util:font></TH>
<TH ALIGN=LEFT CLASS="content" COLSPAN=2><util:font color="content.fg" size="content"><B><U>Reports</U></B></util:font></TH>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT>&nbsp;</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">(Entire conference)</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/poster_report.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Posters</util:text>
</util:xlink></util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/lurker_report.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Readers/Lurkers</util:text>
</util:xlink></util:font></TD>
</TR>
<%
List list = (List)(view.getRequestAttribute("conference.reports.topiclist"));
Iterator it = list.iterator();
%>
<% while (it.hasNext()) { %>
<% TopicContext topic = (TopicContext)(it.next()); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><%= topic.getTopicNumber() %></util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><%= topic.getName() %></util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/poster_report.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<%= topic.getTopicNumber() %></util:href>
<util:text>Posters</util:text>
</util:xlink></util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
<util:href type="servlet">conf/lurker_report.js.vs?cc=<comm:ID/>&conf=<conf:ID/>&top=<%= topic.getTopicNumber() %></util:href>
<util:text>Readers/Lurkers</util:text>
</util:xlink></util:font></TD>
</TR>
<% } // end while %>
</TABLE><P>

View File

@@ -0,0 +1,99 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.conf.view.PostsView" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/topic" prefix="topic" %>
<%@ taglib uri="/tlds/post" prefix="post" %>
<%
JSPView view = JSPView.get(request);
CurrentConference currc = CurrentConference.get(request);
%>
<util:comment>Slippage detected in topic ID <topic:ID/></util:comment>
<util:header title="Slippage or Double-Click Detected"/>
<util:font color="content.fg" size="content">
The following posts slipped in while you were typing. You may choose to edit your message and
re-post, just post it as is, or cancel your posting altogether.
</util:font><P>
<% out.flush(); response.flushBuffer(); %>
<util:comment>Begin Slipped Messages</util:comment>
<%
final List messages = (List)(view.getRequestAttribute("slippage.messages"));
final String stem = view.getRequestAttribute("slippage.topic_stem").toString();
Iterator it = messages.iterator();
while (it.hasNext()) {
TopicMessageContext msg = (TopicMessageContext)(it.next());
String poster = PostsView.getPosterName(msg);
%>
<util:font color="content.fg" size="content">
<B><%= msg.getPostNumber() %></B> of <B><topic:last_message/></B>
<util:font color="content.fg" size="post-reference">&lt;<%= stem %><%= msg.getPostNumber() %>&gt;</util:font><BR>
<B><%= msg.getPseud() %></B>
(<EM><util:xlink target="_blank">
<util:href type="servlet">user/<%= poster %></util:href>
<util:text><%= poster %></util:text>
</util:xlink></EM>)
<%= view.formatDate(msg.getPostDate()) %>
</util:font><P>
<% if (msg.isScribbled()) { %>
<SPAN CLASS="post"><TT><EM><B>
(Scribbled by <%= PostsView.getMessageBodyText(msg) %> on <%= view.formatDate(msg.getScribbleDate()) %>)
</B></EM></TT></SPAN>
<% } else { %>
<TT><PRE CLASS="post"><post:rewrite><%= PostsView.getMessageBodyText(msg) %></post:rewrite></PRE></TT>
<%
} // end if
out.flush();
response.flushBuffer();
} // end while
%>
<util:comment>End Slipped Messages</util:comment>
<HR><SPAN STYLE="font-size: 14pt;"><util:font color="content.fg" size="subhead">
<B>Post Message in &quot;<topic:name/>&quot;:</B>
</util:font></SPAN><BR>
<% final String next = (String)(view.getRequestAttribute("postbox.hidden.next")); %>
<post:box action="conf/post_message.js.vs" type="servlet">
<post:param name="cc"><comm:ID/></post:param>
<post:param name="conf"><conf:ID/></post:param>
<post:param name="top"><topic:number/></post:param>
<% if (next!=null) { %>
<post:param name="next"><%= next %></post:param>
<% } // end if %>
<post:param name="sd"><%= view.getRequestAttribute("postbox.hidden.sd") %></post:param>
<post:param name="slip">Y</post:param>
<post:pseud name="pseud"><%= view.getRequestAttribute("postbox.pseud") %></post:pseud>
<% if (view.getRequestAttribute("postbox.attach")!=null) { %>
<post:attach name="attach" value="true"/>
<% } else { %>
<post:attach name="attach"/>
<% } // end if %>
<post:text name="pb"><%= view.getRequestAttribute("postbox.data") %></post:text>
<post:button id="preview"/><post:button id="post"/>
<% if (next!=null) { %>
<post:button id="postnext"/>
<% } // end if %>
<post:button id="posttopics"/><post:button id="cancel"/>
</post:box>

252
web/format/conf/topics.jsp Normal file
View File

@@ -0,0 +1,252 @@
<%--
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.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/topic" prefix="topic" %>
<%!
// since these values are used frequently in this page, redeclare them from ConferenceContext
// to help minimize the clutter
private static final int DISPLAY_NEW = ConferenceContext.DISPLAY_NEW;
private static final int DISPLAY_ACTIVE = ConferenceContext.DISPLAY_ACTIVE;
private static final int DISPLAY_ALL = ConferenceContext.DISPLAY_ALL;
private static final int DISPLAY_HIDDEN = ConferenceContext.DISPLAY_HIDDEN;
private static final int DISPLAY_ARCHIVED = ConferenceContext.DISPLAY_ARCHIVED;
private static final int SORT_NUMBER = ConferenceContext.SORT_NUMBER;
private static final int SORT_NAME = ConferenceContext.SORT_NAME;
private static final int SORT_UNREAD = ConferenceContext.SORT_UNREAD;
private static final int SORT_TOTAL = ConferenceContext.SORT_TOTAL;
private static final int SORT_DATE = ConferenceContext.SORT_DATE;
%>
<%
JSPView view = JSPView.get(request);
CurrentConference currc = CurrentConference.get(request);
final int view_opt = currc.getViewOption();
final int sort_opt = currc.getSortOption();
final String base_locator = "cc=" + view.getCommunity().getCommunityID() + "&conf="
+ currc.getConference().getConfID();
%>
<util:comment>Topic list for conference "<conf:name/>"</util:comment>
<util:header><util:title>Topics in <conf:name/></util:title></util:header>
<%= view.getRequestAttribute("conference.custom.top").toString() %>
<util:font color="content.fg" size="content">
<DIV ALIGN="LEFT" CLASS="content">
<util:xlink>
<util:href type="servlet">conf/conferences.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="conf_list"/></util:text>
</util:xlink>&nbsp;
<topic:can_create>
<util:xlink>
<util:href type="servlet">conf/new_topic.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="add_topic"/></util:text>
</util:xlink>&nbsp;
</topic:can_create>
<% final String rnew = (String)(view.getRequestAttribute("conference.readnew")); %>
<% if (rnew!=null) { %>
<util:xlink>
<util:href type="servlet"><%= rnew %></util:href>
<util:text><util:button id="read_new"/></util:text>
</util:xlink>&nbsp;
<% } // end if %>
<util:xlink>
<util:href type="servlet">conf/find.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="find"/></util:text>
</util:xlink>&nbsp;
<util:xlink>
<util:href type="servlet">conf/manage_conf.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="manage"/></util:text>
</util:xlink>&nbsp;
<conf:can_add_to_hotlist>
<util:xlink>
<util:href type="servlet">conf/add_to_hotlist.js.vs?<%= base_locator %></util:href>
<util:text><util:button id="add_to_hotlist"/></util:text>
</util:xlink>&nbsp;
</conf:can_add_to_hotlist>
</DIV>
<% out.flush(); response.flushBuffer(); %>
<% final List topics = (List)(view.getRequestAttribute("topics.list")); %>
<% if (topics.size()>0) { %>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=3>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH="1%" CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<B><util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_NUMBER) ? -SORT_NUMBER : SORT_NUMBER) %></util:href>
<util:text>#</util:text>
</util:xlink></B>&nbsp;&nbsp;
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_NAME) ? -SORT_NAME : SORT_NAME) %></util:href>
<util:text>Topic Name</util:text>
</util:xlink></B>
</util:font></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<B><util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_UNREAD) ? -SORT_UNREAD : SORT_UNREAD) %></util:href>
<util:text>New</util:text>
</util:xlink></B>
</util:font></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<B><util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_TOTAL) ? -SORT_TOTAL : SORT_TOTAL) %></util:href>
<util:text>Total</util:text>
</util:xlink></B>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<B><util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_DATE) ? -SORT_DATE : SORT_DATE) %></util:href>
<util:text>Last Response</util:text>
</util:xlink></B>
</util:font></TD>
</TR>
<% out.flush(); response.flushBuffer(); %>
<TR VALIGN=TOP><TD ALIGN=LEFT COLSPAN=5>&nbsp;</TD></TR>
<%
Iterator it = topics.iterator();
while (it.hasNext()) {
TopicContext topic = (TopicContext)(it.next());
short num = topic.getTopicNumber();
String my_locator = base_locator + "&top=" + num;
%>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH="1%" CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= my_locator %>&rnm=1</util:href>
<util:text><%= num %></util:text>
</util:xlink>&nbsp;&nbsp;
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= my_locator %>&rnm=1</util:href>
<util:text><%= topic.getName() %></util:text>
</util:xlink>
<% if (topic.isArchived() && (view_opt!=DISPLAY_ARCHIVED)) { %>
<EM>(archived)</EM>
<% } else if (topic.isFrozen()) { %>
<EM>(frozen)</EM>
<% } // end if %>
</util:font></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= my_locator %>&rnm=1</util:href>
<util:text><%= topic.getUnreadMessages() %></util:text>
</util:xlink>
</util:font></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= my_locator %>&p1=0&p2=-1</util:href>
<util:text><%= topic.getTotalMessages() %></util:text>
</util:xlink>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/posts.js.vs?<%= my_locator %>&rnm=1</util:href>
<util:text><%= view.formatDate(topic.getLastUpdateDate()) %></util:text>
</util:xlink>
</util:font></TD>
</TR>
<%
out.flush();
response.flushBuffer();
} // end while (more topics in enumeration)
%>
</TABLE><P>
<% } else { %>
<EM><%
switch (view_opt)
{
case DISPLAY_NEW:
out.write("No topics with unread messages found.");
break;
case DISPLAY_ACTIVE:
case DISPLAY_ALL:
out.write("No active topics found.");
break;
case DISPLAY_HIDDEN:
out.write("No hidden topics found.");
break;
case DISPLAY_ARCHIVED:
out.write("No archived topics found.");
break;
default:
out.write("Invalid display option selected.");
break;
} // end switch
%></EM>
<P>
<% } // end if %>
<% out.flush(); response.flushBuffer(); %>
<DIV ALIGN="CENTER" CLASS="content">
<B>[</B>
<% if (view_opt==DISPLAY_NEW) { %>
<B>New</B>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_NEW %></util:href>
<util:text>New</util:text>
</util:xlink>
<% } // end if %>
<B>|</B>
<% if (view_opt==DISPLAY_ACTIVE) { %>
<B>Active</B>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_ACTIVE %></util:href>
<util:text>Active</util:text>
</util:xlink>
<% } // end if %>
<B>|</B>
<% if (view_opt==DISPLAY_ALL) { %>
<B>All</B>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_ALL %></util:href>
<util:text>All</util:text>
</util:xlink>
<% } // end if %>
<B>|</B>
<% if (view_opt==DISPLAY_HIDDEN) { %>
<B>Hidden</B>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_HIDDEN %></util:href>
<util:text>Hidden</util:text>
</util:xlink>
<% } // end if %>
<B>|</B>
<% if (view_opt==DISPLAY_ARCHIVED) { %>
<B>Archived</B>
<% } else { %>
<util:xlink>
<util:href type="servlet">conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_ARCHIVED %></util:href>
<util:text>Archived</util:text>
</util:xlink>
<% } // end if %>
<B>]</B>
</DIV>
</util:font>
<%= view.getRequestAttribute("conference.custom.bottom").toString() %>

View File

@@ -1,113 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ConferenceActivity data = ConferenceActivity.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<%
if (data.isTopicReport())
rdat.writeContentHeader(out,(data.isPosterReport() ? "Posters in Topic:"
: "Readers in Topic:"),
data.getTopicName() + " in " + data.getConfName());
else
rdat.writeContentHeader(out,(data.isPosterReport() ? "Posters in Conference:"
: "Readers in Conference:"),data.getConfName());
%>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=QR") %>">Return to
Conference Reports Menu</A>
</FONT><P>
<% if (data.anyElements()) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>User Name</U></B>
</FONT></TH>
<% if (data.isPosterReport()) { %>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Posted</U></B>
</FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Read</U></B>
</FONT></TH>
<% } else { %>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Read</U></B>
</FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Posted</U></B>
</FONT></TH>
<% } // end if %>
</TR>
<% Iterator it = data.getRecordsIterator(); %>
<% while (it.hasNext()) { %>
<% ActiveUser usr = (ActiveUser)(it.next()); %>
<TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + usr.getName()) %>" TARGET="_blank"><%= usr.getName() %></A>
</FONT></TD>
<% if (data.isPosterReport()) { %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastWrite())) %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (usr.getLastRead()==null) { %>
Never
<% } else { %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastRead())) %>
<% } // end if %>
</FONT></TD>
<% } else { %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastRead())) %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (usr.getLastWrite()==null) { %>
Never
<% } else { %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastWrite())) %>
<% } // end if %>
</FONT></TD>
<% } // end if %>
</TR>
<% } // end while %>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>
<% if (data.isTopicReport()) { %>
<% if (data.isPosterReport()) { %>
No posters to topic "<%= data.getTopicName() %>" found.
<% } else { %>
No readers of topic "<%= data.getTopicName() %>" found.
<% } // end if %>
<% } else { %>
<% if (data.isPosterReport()) { %>
No posters to conference "<%= StringUtil.encodeHTML(data.getConfName()) %>" found.
<% } else { %>
No readers of conference "<%= StringUtil.encodeHTML(data.getConfName()) %>" found.
<% } // end if %>
<% } // end if %>
</EM></FONT>
<% } // end if %>

View File

@@ -1,69 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ConferenceCustomBlocks data = ConferenceCustomBlocks.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Custom blocks for conference #<%= data.getConferenceID() %> --><% } %>
<% rdat.writeContentHeader(out,"Customize Conference:",data.getConferenceName()); %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConferenceID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="U">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Custom HTML block to appear at top of Topic List/Posts pages:
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="cinput" COLSPAN=2>
<TEXTAREA NAME="tx" WRAP=HARD ROWS=7 COLS=80><%= data.getTopCustomBlock() %></TEXTAREA>
</TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content" COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Custom HTML block to appear at bottom of Topic List/Posts pages:
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="cinput" COLSPAN=2>
<TEXTAREA NAME="bx" WRAP=HARD ROWS=7 COLS=80><%= data.getBottomCustomBlock() %></TEXTAREA>
</TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_update.gif") %>" NAME="update"
ALT="Update" WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel"
ALT="Cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD>
<TD ALIGN=RIGHT CLASS="content">
<A HREF="<%= rdat.getEncodedServletPath("confops?cmd=UX&" + data.getLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_remove.gif") %>" ALT="Remove" WIDTH=80 HEIGHT=24 BORDER=0></A>
</TD>
</TR>
</TABLE>
</DIV></FORM>

View File

@@ -1,155 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ConferenceMembership data = ConferenceMembership.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Set Conference Membership:",data.getConfName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>">Return to
Manage Conference Menu</A>
</FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find users in community
"<%= data.getCommunityName() %>":</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all community members whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (data.searchModeIs(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (data.searchModeIs(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (data.searchModeIs(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="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</DIV></FORM>
<% if (data.displayList()) { %>
<% int dcount = data.getSize(); %>
<HR>
<% if (data.conferenceMemberList()) { %>
<%-- The conference list header --%>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
Members of Conference "<%= StringUtil.encodeHTML(data.getConfName()) %>":
</B></FONT><BR>
<% } else { %>
<%
// Determine the number of results to display and whether to display a "next" button
boolean go_next = false;
if (dcount>data.getNumResultsDisplayed())
{ // there's a "next"
dcount = data.getNumResultsDisplayed();
go_next = true;
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The search results header --%>
<FONT SIZE=+1><B>Search Results:</B></FONT>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getSearchMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getSearchTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;
<% if (go_next) { %>
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<% } // end if %>
<%-- Display the results of the search --%>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
<% for (int i=0; i<dcount; i++) { %>
<% UserFound uf = data.getItem(i); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% data.outputDropDown(out,uf.getUID(),uf.getLevel()); %>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_update.gif") %>" NAME="update" ALT="Update"
WIDTH=80 HEIGHT=24 BORDER=0>
</DIV></FORM><BR>
<% } // end if %>

View File

@@ -1,140 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ConferenceSequence data = ConferenceSequence.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Manage conference list for community #<%= data.getCommunityID() %> --><% } %>
<% rdat.writeContentHeader(out,"Manage Conference List",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?sig=" + data.getCommunityID()) %>">Return to Conference List</A>
</FONT><P>
<% if (data.getNumConferences()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<data.getNumConferences(); i++) { %>
<%
ConferenceContext conf = data.getConference(i);
String partial = "confops?sig=" + data.getCommunityID() + "&conf=" + conf.getConfID();
String tail, image, alt;
%>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<%
if (data.isConferenceHidden(conf))
{ // conference is hidden - this command will show it
tail = "&cmd=SH&flag=0";
image = "icn_off.gif";
alt = "Hidden (toggle)";
} // end if
else
{ // conference is non-hidden - this command will hide it
tail = "&cmd=SH&flag=1";
image = "icn_on.gif";
alt = "Displayed (toggle)";
} // end else
%>
<A HREF="<%= rdat.getEncodedServletPath(partial + tail) %>"><IMG
SRC="<%= rdat.getFullImagePath(image) %>" ALT="<%= alt %>" WIDTH=16 HEIGHT=16 BORDER=0></A>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(data.getNumConferences()-1)) { %>&nbsp;<% } else { %>
<% tail = "&cmd=SS&oc=" + data.getNextConfID(conf); %>
<A HREF="<%= rdat.getEncodedServletPath(partial + tail) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="Move Down" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<% tail = "&cmd=SS&oc=" + data.getPrevConfID(conf); %>
<A HREF="<%= rdat.getEncodedServletPath(partial + tail) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="Move Up" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=SDEL") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(conf.getName()) %>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_on.gif") %>" ALT="Displayed (toggle)" BORDER=0 WIDTH=16
HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
This indicates that the conference is displayed in the community's conference list. Click the symbol
to hide it.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_off.gif") %>" ALT="Hidden (toggle)" BORDER=0 WIDTH=16
HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
This indicates that the conference is hidden in the community's conference list. Click the symbol
to display it.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="Move Down" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to move the specified conference down in the community's conference list.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="Move Up" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to move the specified conference up in the community's conference list.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to delete the specified conference. You will be prompted to confirm this
action.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>There are no conferences in
this community.</EM></FONT>
<% } // end if %>

View File

@@ -1,78 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ConferenceListing data = ConferenceListing.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Conference list for community #<%= data.getCommunityID() %> --><% } %>
<% rdat.writeContentHeader(out,"Conference List:",data.getCommunityName()); %>
<% if (data.getNumConferences()>0) { %>
<TABLE BORDER=0 ALIGN=LEFT>
<% for (int i=0; i<data.getNumConferences(); i++) { %>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% String path = "confdisp?sig=" + data.getCommunityID() + "&conf=" + data.getConferenceID(i); %>
<A HREF="<%= rdat.getEncodedServletPath(path) %>"><%= StringUtil.encodeHTML(data.getConferenceName(i)) %></A> -
Latest activity: <%= rdat.getActivityString(data.getLastUpdateDate(i)) %>
<% if (data.anyUnread(i)) { %>
<A HREF="<%= rdat.getEncodedServletPath(path + "&rnm=1") %>"><IMG
SRC="<%= rdat.getFullImagePath("tag_new.gif") %>" ALT="New!" BORDER=0 WIDTH=40 HEIGHT=20></A>
<% } // end if %>
<BR>
<% int count = data.getNumHosts(i); %>
<% if (count>0) { %>
<% if (count>1) { %>Hosts<% } else { %>Host<% } %>:
<% for (int j=0; j<count; j++) { %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + data.getHostName(i,j)) %>"><%= data.getHostName(i,j) %></A><% if (j<(count-1)) { %>,<% } %>
<% } // end for (each hostname) %>
<% } else { %>
Hosts: <EM>(none)</EM>
<% } // end if (hosts present in the conference) %><BR>
<EM><%= StringUtil.encodeHTML(data.getDescription(i)) %></EM>
</FONT></TD>
</TR>
<% } // end for (each conference) %>
</TABLE><BR CLEAR=LEFT>
<% } else { %>
<EM>No conferences found in this community.</EM><BR>
<% } // end if (conferences present) %>
<P>
<DIV ALIGN="LEFT" CLASS="content">
<A HREF="<%= rdat.getEncodedServletPath("findpost?sig=" + data.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_find.gif") %>" ALT="Find" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% if (data.canManageConferences()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?cmd=S&sig=" + data.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% } // end if %>
<% if (data.canCreateConference()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?cmd=C&sig=" + data.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_create_new.gif") %>" ALT="Create New" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% } // end if %>
</DIV>

View File

@@ -15,286 +15,332 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "java.util.Iterator" %>
<%@ page import = "java.util.List" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.FindView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
FindData data = FindData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
FindView data = FindView.get(request);
%>
<% data.writeHeader(rdat,out); %>
<util:comment>Find page</util:comment>
<util:menuheader caption="Find:">
<% if (data.testDisplayMode(FindView.FD_COMMUNITIES)) { %>
<util:menuheaderitem selected="true">
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %></util:href>
<util:text>Communities</util:text>
</util:menuheaderitem>
<% } else { %>
<util:menuheaderitem>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %></util:href>
<util:text>Communities</util:text>
</util:menuheaderitem>
<% } // end if %>
<% if (data.testDisplayMode(FindView.FD_USERS)) { %>
<util:menuheaderitem selected="true">
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_USERS %></util:href>
<util:text>Users</util:text>
</util:menuheaderitem>
<% } else { %>
<util:menuheaderitem>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_USERS %></util:href>
<util:text>Users</util:text>
</util:menuheaderitem>
<% } // end if %>
<% if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %>
<util:menuheaderitem selected="true">
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_CATEGORIES %></util:href>
<util:text>Categories</util:text>
</util:menuheaderitem>
<% } else { %>
<util:menuheaderitem>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_CATEGORIES %></util:href>
<util:text>Categories</util:text>
</util:menuheaderitem>
<% } // end if %>
<% if (data.testDisplayMode(FindView.FD_POSTS)) { %>
<util:menuheaderitem selected="true">
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_POSTS %></util:href>
<util:text>Posts</util:text>
</util:menuheaderitem>
<% } else { %>
<util:menuheaderitem>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_POSTS %></util:href>
<util:text>Posts</util:text>
</util:menuheaderitem>
<% } // end if %>
</util:menuheader>
<%-- Display the search form --%>
<% if (rdat.useHTMLComments()) { %><!-- Find Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayOption() %>">
<util:comment>Find form</util:comment>
<util:form action="find.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayMode() %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<% if (data.getDisplayOption()==FindData.FD_POSTS) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Posts Form --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Posts:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Keywords:
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=64 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN>
</FONT><BR>
<% if (data.testDisplayMode(FindView.FD_POSTS)) { %>
<util:comment>Find Posts form</util:comment>
<util:font color="content.fg" size="content-heading"><B>Find Posts:</B></util:font>
<util:font color="content.fg" size="content">
Keywords: <SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=64 MAXLENGTH=255
VALUE="<%= data.getTerm() %>"></SPAN>
</util:font><BR>
<% } else { %>
<% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Communities Form --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Communities:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (data.testDisplayMode(FindView.FD_COMMUNITIES)) { %>
<util:comment>Find Communities form</util:comment>
<util:font color="content.fg" size="content-heading"><B>Find Communities:</B></util:font>
<util:font color="content.fg" size="content">
Display all communities whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_COMMUNITY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_COMMUNITY_NAME)) { %>SELECTED<% } %> >name</OPTION>
<% if (data.testField(SearchMode.FIELD_COMMUNITY_NAME)) { %>SELECTED<% } %> >name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_COMMUNITY_SYNOPSIS %>"
<% if (data.searchFieldIs(SearchMode.FIELD_COMMUNITY_SYNOPSIS)) { %>SELECTED<% } %> >synopsis</OPTION>
<% if (data.testField(SearchMode.FIELD_COMMUNITY_SYNOPSIS)) { %>SELECTED<% } %> >synopsis</OPTION>
</SELECT><BR>
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Users Form --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Users:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
</util:font>
<% } else if (data.testDisplayMode(FindView.FD_USERS)) { %>
<util:comment>Find Users form</util:comment>
<util:font color="content.fg" size="content-heading"><B>Find Users:</B></util:font>
<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 (data.searchFieldIs(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<% if (data.testField(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<% if (data.testField(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<% if (data.testField(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
<% if (data.testField(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Categories Form --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Categories:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
</util:font>
<% } else if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %>
<util:comment>Find Categories form</util:comment>
<util:font color="content.fg" size="content-heading"><B>Find Categories:</B></util:font>
<util:font color="content.fg" size="content">
Display all categories whose name&nbsp;&nbsp;
</util:font>
<% } else { %>
<%-- shouldn't get here --%>
<H1><FONT COLOR="red">Display parameter invalid!</FONT></H1>
<% } // end if %>
<util:font color="content.fg" size="content">
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (data.searchModeIs(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<% if (data.testMode(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (data.searchModeIs(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<% if (data.testMode(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (data.searchModeIs(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
<% if (data.testMode(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
<% if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %><BR><% } else { %>&nbsp;&nbsp;<% } %>
<% if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %><BR><% } else { %>&nbsp;&nbsp;<% } %>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN><BR>
<% } // end if %>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</DIV></FORM>
VALUE="<%= data.getTerm() %>"></SPAN><BR>
</util:font>
<% } // end if %>
<util:button id="search" type="input"/>
</DIV></util:form>
<%-- Display the current category --%>
<% String a_head, a_tail; // used for formatting category display %>
<% CategoryDescriptor cat = data.getCategory(); %>
<% if (cat!=null) { %>
<% if (rdat.useHTMLComments()) { %><!-- Display Category Name --><% } %>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Category:
<%
a_head = "";
a_tail = "";
if (cat.getCategoryID()>=0)
{ // assign the anchor tags
a_head = "<A HREF=\"" + data.getCatJumpLink(rdat,-1) + "\">";
a_tail = "</A>";
} // end if
%>
<%= a_head %>Top<%= a_tail %>
<% if (cat.getCategoryID()>=0) { %>
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
<%
a_head = ": ";
a_tail = "";
if (i<(cat.getNumLevels()-1))
{ // assign the anchor tags
a_head = ": <A HREF=\"" + data.getCatJumpLink(rdat,cat.getIDAtLevel(i)) + "\">";
a_tail = "</A>";
} // end if
%>
<%= a_head %><%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %><%= a_tail %>
<% } // end for %>
<% } // end if (displaying the entire subcategory tree) %>
<util:comment>Display Category Name</util:comment>
<HR><util:font color="content.fg" size="subhead">
<B>Category:
<% if (cat.getCategoryID()<0) { %>
Top
<% } else { %>
<util:xlink>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %></util:href>
<util:text>Top</util:text>
</util:xlink>
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
<% if (i<(cat.getNumLevels()-1)) { %>
:
<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>
<% } else { %>
: <util:escape><%= cat.getTitleAtLevel(i) %></util:escape>
<% } // end if %>
<% } // end for %>
<% } // end if (displaying the subcategory tree) %>
</B><P>
<%-- Display the subcategory list --%>
<% List subcats = data.getSubCategoryList(); %>
<% List subcats = data.getSubCategories(); %>
<% if ((subcats!=null) && (subcats.size()>0)) { %>
<% if (rdat.useHTMLComments()) { %><!-- Display SubCategory List --><% } %>
<util:comment>Display Subcategory List</util:comment>
<B>Subcategories:</B><BR>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2>
<% Iterator it = subcats.iterator(); %>
<% while (it.hasNext()) { %>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%
CategoryDescriptor c = (CategoryDescriptor)(it.next());
a_head = "<A HREF=\"" + data.getCatJumpLink(rdat,c.getLinkedCategoryID()) + "\">";
%>
<B><%= a_head %><%= StringUtil.encodeHTML(c.getTitleAtLevel(c.getNumLevels()-1)) %></A></B>
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<% CategoryDescriptor c = (CategoryDescriptor)(it.next()); %>
<B><util:xlink>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= c.getLinkedCategoryID() %></util:href>
<util:text><util:escape><%= c.getTitleAtLevel(c.getNumLevels()-1) %></util:escape></util:text>
</util:xlink>
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
</FONT></TD>
</util:font></TD>
</TR>
<% } // end while %>
</TABLE>
<% } // end if (displaying subcategory list) %>
</FONT>
</util:font>
<% } // end if (category specified) %>
<% List results = data.getResultsList(); %>
<%-- Display the search results --%>
<% List results = data.getResults(); %>
<% if (results!=null) { %>
<% if (rdat.useHTMLComments()) { %><!-- Display Search Results --><% } %>
<util:comment>Display Search Results</util:comment>
<%
// Determine the number of results to display and whether to display a "next" button
int dcount = results.size();
boolean go_next = false;
if (dcount>data.getNumResultsDisplayed())
if (dcount>data.getMaxResults())
{ // there's a "next"
dcount = data.getNumResultsDisplayed();
dcount = data.getMaxResults();
go_next = true;
} // end if
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<%-- The initial search results --%>
<B><% if (cat!=null) { %>Communities in Category<% } else { %>Search Results<% } %></B>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
</util:font></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayOption() %>">
<util:comment>Navigational form</util:comment>
<util:form action="find.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayMode() %>">
<% if (cat!=null) { %><INPUT TYPE=HIDDEN NAME="cat" VALUE="<%= cat.getCategoryID() %>"><% } %>
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getSearchMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getSearchTerm() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
<util:button id="previous" type="input"/>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<util:button id="_null_"/>
<% } // end if %>
&nbsp;&nbsp;
<% if (go_next) { %>
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
<util:button id="next" type="input"/>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<util:button id="_null_"/>
<% } // end if %>
</DIV></FORM>
</DIV></util:form>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<%-- Display the results of the search --%>
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=6>
<% if ((data.getDisplayOption()==FindData.FD_POSTS) && (results.size()>0)) { %>
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
<% if (data.testDisplayMode(FindView.FD_POSTS) && (dcount>0)) { %>
<TR VALIGN=TOP>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Post Link</U></B></FONT>
<util:font color="content.fg" size="content"><B><U>Post Link</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Author</U></B></FONT>
<util:font color="content.fg" size="content"><B><U>Author</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Post Date</U></B></FONT>
<util:font color="content.fg" size="content"><B><U>Post Date</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Lines</U></B></FONT>
<util:font color="content.fg" size="content"><B><U>Lines</U></B></util:font>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">&nbsp;</TH>
</TR>
<% } // end if %>
<% for (int i=0; i<dcount; i++) { %>
<TR VALIGN=TOP>
<% if (data.getDisplayOption()==FindData.FD_POSTS) { %>
<% if (data.testDisplayMode(FindView.FD_POSTS)) { %>
<% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("go/" + post.getIdentifier()) %>"><%= post.getIdentifier() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + post.getAuthor()) %>"><%= post.getAuthor() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= rdat.formatDateForDisplay(post.getPostDate()) %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">go/<%= post.getIdentifier() %></util:href>
<util:text><%= post.getIdentifier() %></util:text>
</util:xlink>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">user/<%= post.getAuthor() %></util:href>
<util:text><%= post.getAuthor() %></util:text>
</util:xlink>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
<%= data.formatDate(post.getPostDate()) %>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<%= post.getLineCount() %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(post.getText()) %>
</FONT></TD>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<util:escape><%= post.getText() %></util:escape>
</util:font></TD>
<% } else { %>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<% Object item = results.get(i); %>
<% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
<% if (data.testDisplayMode(FindView.FD_COMMUNITIES)) { %>
<%
CommunityContext comm = (CommunityContext)item;
String host_name = FindData.getCommunityHostName(comm);
int members = FindData.getCommunityMemberCount(comm);
String host_name = FindView.getCommunityHostName(comm);
int members = FindView.getCommunityMemberCount(comm);
%>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + comm.getAlias()) %>"><%= StringUtil.encodeHTML(comm.getName()) %></A><BR>
<util:xlink>
<util:href type="servlet">sig/<%= comm.getAlias() %></util:href>
<util:text><util:escape><%= comm.getName() %></util:escape></util:text>
</util:xlink><BR>
<% if (host_name!=null) { %>
Host: <A HREF="<%= rdat.getEncodedServletPath("user/" + host_name) %>"><%= host_name %></A>
Host:
<util:xlink>
<util:href type="servlet">user/<%= host_name %></util:href>
<util:text><%= host_name %></util:text>
</util:xlink>
<% } // end if (got host name) %>
<% if (members>=0) { %>
<% if (host_name!=null) { %> - <% } %>
<%= members %> members
<% } // end if (got member count) %>
<% if ((host_name!=null) || (members>=0)) { %><BR><% } %>
Latest activity: <%= FindData.getActivityString(comm,rdat) %><BR>
<EM><%= StringUtil.encodeHTML(comm.getSynopsis()) %></EM>
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
Latest activity: <%= data.getActivityString(comm.getLastAccessDate()) %><BR>
<EM><util:escape><%= comm.getSynopsis() %></util:escape></EM>
<% } else if (data.testDisplayMode(FindView.FD_USERS)) { %>
<% UserFound uf = (UserFound)item; %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A><BR>
<%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,
from <%= StringUtil.encodeHTML(uf.getLocality()) %>, <%= StringUtil.encodeHTML(uf.getRegion()) %>
<%= uf.getCountry() %>
<% if (uf.getDescription()!=null) { %><BR><EM><%= StringUtil.encodeHTML(uf.getDescription()) %></EM><% } %>
<% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
<util:xlink>
<util:href type="servlet">user/<%= uf.getName() %></util:href>
<util:text><%= uf.getName() %></util:text>
</util:xlink><BR>
<util:escape><%= uf.getGivenName() %></util:escape>
<util:escape><%= uf.getFamilyName() %></util:escape>,
from <util:escape><%= uf.getLocality() %></util:escape>,
<util:escape><%= uf.getRegion() %></util:escape> <%= uf.getCountry() %>
<% if (uf.getDescription()!=null) { %>
<BR><EM><util:escape><%= uf.getDescription() %></util:escape></EM>
<% } // end if %>
<% } else if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %>
<% CategoryDescriptor cd = (CategoryDescriptor)item; %>
<A HREF="<%= data.getCatJumpLink(rdat,cd.getLinkedCategoryID()) %>"><%= StringUtil.encodeHTML(cd.toString()) %></A>
<% } // end if%>
</FONT></TD>
<util:xlink>
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= cd.getLinkedCategoryID() %></util:href>
<util:text><util:escape><%= cd.toString() %></util:escape></util:text>
</util:xlink>
<% } // end if %>
</util:font></TD>
<% } // end if %>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if (results found) %>

View File

@@ -1,135 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
FindPostData data = FindPostData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Find Posts --><% } %>
<% rdat.writeContentHeader(out,"Find Posts",data.getSubtitle()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><%= data.getReturnLink(rdat) %></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("findpost") %>"><DIV CLASS="content">
<%= data.getExtraParameters() %>
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="fcount" VALUE="-1">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Keywords:
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=64 MAXLENGTH=255
VALUE="<%= data.getTerm() %>"></SPAN>
</FONT><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0>
</DIV></FORM><P>
<% List results = data.getResults(); %>
<% if (results!=null) { %>
<% if (rdat.useHTMLComments()) { %><!-- Display Search Results --><% } %>
<%
// Determine the number of results to display and whether to display a "next" button
int dcount = results.size();
boolean go_next = false;
if (dcount>data.getMaxResults())
{ // there's a "next"
dcount = data.getMaxResults();
go_next = true;
} // end if
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B>Search Results</B>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("findpost") %>"><DIV CLASS="content">
<%= data.getExtraParameters() %>
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;&nbsp;
<% if (go_next) { %>
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<%-- Display the results of the search --%>
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Post Link</U></B></FONT>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Author</U></B></FONT>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Post Date</U></B></FONT>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Lines</U></B></FONT>
</TH>
<TH ALIGN=LEFT CLASS="CONTENT">&nbsp;</TH>
</TR>
<% for (int i=0; i<dcount; i++) { %>
<TR VALIGN=TOP>
<% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("go/" + post.getIdentifier()) %>"><%= post.getIdentifier() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + post.getAuthor()) %>"><%= post.getAuthor() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= rdat.formatDateForDisplay(post.getPostDate()) %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= post.getLineCount() %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(post.getText()) %>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if %>

136
web/format/frame.jsp Normal file
View File

@@ -0,0 +1,136 @@
<%--
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/frame" prefix="frame" %>
<%@ taglib uri="/tlds/user" prefix="user" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<HTML>
<frame:head/>
<frame:body>
<util:comment>BEGIN PAGE HEADER</util:comment>
<TABLE CLASS="tbar" BORDER=0 BGCOLOR="<util:color name="top.bg"/>" WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2 CLASS="tbar">
<util:comment>Site logo</util:comment>
<frame:sitelogo/>
</TD>
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2 CLASS="tbar"><util:font color="top.fg" size="top"><B>
<util:comment>Links to Front Page, Help, Find</util:comment>
<util:link aclass="tbar" href="top.js.vs"
type="servlet"><util:font color="top.link">Front Page</util:font></util:link>
<P>
<util:link aclass="tbar" href="/TODO"
type="absolute"><util:font color="top.link">Help</util:font></util:link>
&nbsp;|&nbsp;
<util:link aclass="tbar" href="find.js.vs"
type="servlet"><util:font color="top.link">Find</util:font></util:link>
</B></util:font></TD>
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2 CLASS="tbar">
<util:comment>Banner Ad</util:comment>
<frame:banner_ad/>
</TD>
</TR>
<util:comment>Login reminders</util:comment>
<TR VALIGN=MIDDLE><TD ALIGN=CENTER COLSPAN=3 CLASS="tbar"><util:font color="top.fg" size="top">
<user:is_logged_in>
You are logged in as <B><util:escape><user:name/></util:escape></B>
<frame:display_login>
&nbsp;-&nbsp;
<util:link aclass="tbar" href="logout.js.vs?tgt=${location}"
type="servlet"><util:font color="top.link">Log Out</util:font></util:link>
<user:is_not_verified>
&nbsp;|&nbsp;
<util:link aclass="tbar" href="verify_email.js.vs?tgt=${location}"
type="servlet"><util:font color="top.link">Verify E-Mail</util:font></util:link>
</user:is_not_verified>
&nbsp;|&nbsp;
<util:link aclass="tbar" href="profile.js.vs?tgt=${location}"
type="servlet"><util:font color="top.link">Profile</util:font></util:link>
</frame:display_login>
</user:is_logged_in>
<user:is_not_logged_in>
You are not logged in
<frame:display_login>
&nbsp;-&nbsp;
<util:link aclass="tbar" href="login.js.vs?tgt=${location}"
type="servlet"><util:font color="top.link">Log In</util:font></util:link>
&nbsp;|&nbsp;
<util:link aclass="tbar" href="new_account.js.vs?tgt=${location}"
type="servlet"><util:font color="top.link">Create Account</util:font></util:link>
</frame:display_login>
</user:is_not_logged_in>
</util:font></TD></TR>
</TABLE>
<util:comment>END PAGE HEADER</util:comment>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<util:color name="left.bg"/>">
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
<util:comment>BEGIN LEFT SIDEBAR</util:comment>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><util:font color="left.fg" size="left">
<util:comment>variable menu</util:comment>
<frame:currentmenu/>
</util:font></TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT>&nbsp;</TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><util:font color="left.fg" size="left">
<util:comment>fixed menu</util:comment>
<frame:leftmenu name="fixed"/>
</util:font></TD></TR>
<util:comment>END LEFT SIDEBAR</util:comment>
</TABLE>
</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<util:color name="content.bg"/>" CLASS="content">
<util:comment>BEGIN PAGE CONTENT</util:comment>
<frame:content_here/>
<util:comment>END PAGE CONTENT</util:comment>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<util:color name="left.bg"/>">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<util:color name="content.bg"/>" CLASS="footer">
<util:comment>PAGE FOOTER</util:comment>
<HR WIDTH="80%">
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT CLASS="footer">
<util:font color="content.fg" size="1"><util:stock_message key="footer-text"/></util:font>
</TD>
<TD <frame:if_QID>ROWSPAN=2</frame:if_QID> ALIGN=LEFT CLASS="footer"><frame:venice_logo/></TD>
</TR>
<frame:if_QID>
<TR VALIGN=TOP><TD ALIGN=RIGHT CLASS="footer">
<util:comment>HITCOUNTER FOR QID "<frame:QID/>"</util:comment>
<%-- Reserved for future use --%>
</TD></TR>
</frame:if_QID>
</TABLE>
</TD>
</TR>
</TABLE>
</frame:body>
</HTML>

View File

@@ -15,18 +15,21 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
LogInOrCreate data = LogInOrCreate.retrieve(request);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Log In or Create Account",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%@ page import = "com.silverwrist.venice.ui.helpers.LogInOrCreate" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<% LogInOrCreate view = LogInOrCreate.get(request); %>
<util:comment>Log In or Create dialog</util:comment>
<util:header title="Log In or Create Account"/>
<util:font color="content.fg" size="content">
You must log in or create an account before you can view this page.<P>
Returning users <A HREF="<%= data.getTargetURL(rdat,"account?cmd=L&tgt=") %>">log in here</A>.<P>
New users <A HREF="<%= data.getTargetURL(rdat,"account?cmd=C&tgt=") %>">create an account here.<P>
</FONT>
Returning users
<util:xlink>
<util:href type="servlet">login.js.vs?tgt=<%= view.getTargetParam() %></util:href>
<util:text>log in here</util:text>
</util:xlink>.<P>
New users
<util:xlink>
<util:href type="servlet">new_account.js.vs?tgt=<%= view.getTargetParam() %></util:href>
<util:text>create an account here</util:text>
</util:xlink>.<P>
</util:font>

View File

@@ -1,98 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
Hotlist data = Hotlist.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
%>
<% if (rdat.useHTMLComments()) { %><!-- User conference hotlist --><% } %>
<% rdat.writeContentHeader(out,"Your Conference Hotlist",null); %>
<%= stdfont %><A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A></FONT><P>
<% if (data.getHotlistSize()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=3>
<% for (int i=0; i<data.getHotlistSize(); i++) { %>
<%
ConferenceContext conf = data.getConference(i);
String partial = "settings?sig=" + conf.getEnclosingCommunity().getCommunityID() + "&conf="
+ conf.getConfID();
%>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(data.getHotlistSize()-1)) { %>&nbsp;<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=HD") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="[Down]" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=HU") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="[Up]" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=HX") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="[Remove]" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<B><%= StringUtil.encodeHTML(conf.getName()) %></B>
(<%= StringUtil.encodeHTML(conf.getEnclosingCommunity().getName()) %>)
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="[Down]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to move the specified conference down in your hotlist.
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="[Up]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to move the specified conference up in your hotlist.
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="[Remove]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to remove the specified conference from your hotlist.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= stdfont %><EM>
You have no conferences in your conference hotlist. You can add conferences to your hotlist
by visiting the conferences and pressing the "Add to Hotlist" button.
</EM></FONT>
<% } // end if %>

View File

@@ -1,42 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
AdminImportUser data = AdminImportUser.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Import User Accounts",null); %>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>">
<DIV CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="IMP">
User import data:<BR>
<INPUT TYPE="FILE" NAME="idata"><P>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_upload.gif") %>" NAME="upload" ALT="Upload"
WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel" ALT="Cancel"
WIDTH=80 HEIGHT=24 BORDER=0><HR>
The user accounts are imported as an XML file.
<%-- TODO: put a description of the contents here, or a link to a DTD --%>
</FONT></DIV>
</FORM>

View File

@@ -1,58 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
Invitation data = Invitation.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Send invitation to community #<%= data.getCommunityID() %> --><% } %>
<% data.writeHeader(out,rdat); %>
<FORM METHOD=POST ACTION="<%= rdat.getEncodedServletPath("sigops") %>"><DIV CLASS="content">
<%= data.getParameters() %>
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="I">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Send to:&nbsp;</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">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Personal message to be added to
invitation:</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">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel"
ALT="Cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</FORM></DIV>

View File

@@ -1,73 +0,0 @@
<%--
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 = "java.net.URLEncoder" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ManageConferenceAliases data = ManageConferenceAliases.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Managing aliases for conference #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Managing Conference Aliases:",data.getConfName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>">Return to
Manage Conference Menu</A><P>
<% if (data.getErrorMessage()!=null) { %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_ERROR,2) %><B><%= StringUtil.encodeHTML(data.getErrorMessage()) %></B></FONT><P>
<% } // end if %>
<FONT SIZE=+1><B>Current Aliases:</B></FONT><P>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=3>
<% Iterator it = data.getAliasIterator(); %>
<% while (it.hasNext()) { %>
<% String name = (String)(it.next()); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER><IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*"
WIDTH=14 HEIGHT=14 BORDER=0></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(name) %>
</FONT></TD>
<TD ALIGN=LEFT>&nbsp;&nbsp;&nbsp;&nbsp;</TD>
<TD ALIGN=LEFT CLASS="content">
<% if (data.canRemoveAliases()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=A&rem="
+ URLEncoder.encode(name)) %>"><IMG SRC="<%= rdat.getFullImagePath("bn_remove.gif") %>"
ALT="Remove" WIDTH=80 HEIGHT=24 BORDER=0></A>
<% } else { %>&nbsp;<% } %>
</TD>
</TR>
<% } // end while %>
</TABLE><P>
<FONT SIZE=+1><B>Add New Alias:</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="A">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="alias" SIZE=32 MAXLENGTH=64
VALUE=""></SPAN>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_add.gif") %>" NAME="add" ALT="Add"
WIDTH=80 HEIGHT=24 BORDER=0>
</DIV></FORM>
</FONT>

View File

@@ -1,85 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ManageConference data = ManageConference.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Managing conference #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Manage Conference:",data.getConfName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator()) %>">Return to Topic List</A>
</FONT><P>
<% if (rdat.useHTMLComments()) { %><!-- Set Default Pseud Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="P">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Set default pseud for conference:
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" VALUE="<%= data.getDefaultPseud() %>"
SIZE=37 MAXLENGTH=255></SPAN>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_set.gif") %>" NAME="set" ALT="Set"
WIDTH=80 ALIGN=BOTTOM HEIGHT=24 BORDER=0>
</FONT>
</DIV></FORM><P>
<% if (rdat.useHTMLComments()) { %><!-- Fixseen Link --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=FX") %>">Mark
entire conference as read (fixseen)</A>
</B></FONT><P>
<% if (data.displayInviteSection()) { %>
<% if (rdat.useHTMLComments()) { %><!-- Invitation Section --><% } %>
<% rdat.writeContentHeader(out,"Send Invitation",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
You may send an invitation via E-mail to outside individuals to join this community and
read this conference.<P>
<B><A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&" + data.getLocator()) %>">Click here to
send an invitation</A></B>
</FONT><P>
<% } // end if %>
<% if (data.displayAdminSection()) { %>
<% if (rdat.useHTMLComments()) { %><!-- Host Tools Section --><% } %>
<% rdat.writeContentHeader(out,"Host Tools",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=E") %>">Change
Conference Information</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=A") %>">Manage
Conference Aliases</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=M") %>">Manage
Conference Members</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=U") %>">Customize
Conference Appearance</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=QR") %>">Conference
Activity Reports</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=I") %>">Conference
E-Mail</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=DEL") %>">Delete
Conference</A><P>
</B></FONT>
<% } // end if (displaying admin section) %>

View File

@@ -1,95 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ManageTopic data = ManageTopic.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Managing topic #<%= data.getTopicNumber() %>
in conference #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Manage Topic:",data.getTopicName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator()) %>">Return to Topic</A>
</FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<DIV ALIGN="LEFT"><B>Topic Subscription:</B></DIV>
<% if (data.isSubscribed()) { %>
You are currently subscribed to this topic, and will receive all new posts to it via E-mail.<P>
<B><A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=SN") %>">Click Here
to Stop Subscribing To This Topic</A></B>
<% } else { %>
You are not currently subscribed to this topic. When you subscribe to a topic, you will receive all new
posts to that topic via E-mail.<P>
<B><A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=SY") %>">Click Here
to Start Subscribing To This Topic</A></B>
<% } // end if %><P>
<% if (data.displayInviteSection()) { %>
<% if (rdat.useHTMLComments()) { %><!-- Invitation Section --><% } %>
<% rdat.writeContentHeader(out,"Send Invitation",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
You may send an invitation via E-mail to outside individuals to join this community and
read this topic in the conference.<P>
<B><A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&" + data.getLocator()) %>">Click here to
send an invitation</A></B>
</FONT><P>
<% } // end if %>
<% if (rdat.useHTMLComments()) { %><!-- Filtered Users Section --><% } %>
<% rdat.writeContentHeader(out,"Filtered Users",null); %>
<% if (data.getNumBozos()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% Iterator it = data.getBozosIterator(); %>
<% while (it.hasNext()) { %>
<% UserProfile prof = (UserProfile)(it.next()); %>
<TR>
<TD ALIGN=CENTER WIDTH=16>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=RB&u="
+ prof.getUID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
&lt;<A HREF="<%= rdat.getEncodedServletPath("user/" + prof.getUserName()) %>"><%= prof.getUserName() %></A>&gt;
<EM>(<%= StringUtil.encodeHTML(prof.getGivenName()) %>
<%= StringUtil.encodeHTML(prof.getFamilyName()) %>)</EM>
</FONT></TD>
</TR>
<% } // end while %>
</TABLE><P>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to cease filtering this user in this topic.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<DIV ALIGN="CENTER"><EM>No users currently filtered.</EM></DIV>
<% } // end if %>
</FONT>

View File

@@ -1,83 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
NewTopicForm data = NewTopicForm.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Topic list for conf #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,data.isPreview() ? "Preview New Topic" : "Create New Topic",
"in: " + data.getConfName()); %>
<% if (data.isPreview()) { %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
<% if (data.getNumSpellingErrors()==0) { %>
Your post did not contain any spelling errors.
<% } else if (data.getNumSpellingErrors()==1) { %>
There was 1 spelling error in your post.
<% } else { %>
There were <%= data.getNumSpellingErrors() %> spelling errors in your post.
<% } // end if %>
</B></FONT>
<P><PRE><%= rdat.rewritePostData(data.getPreviewData()) %></PRE><HR>
<% } // end if %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="T">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>New topic name:</FONT><BR>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="title" SIZE=37 MAXLENGTH=128
VALUE="<%= data.getTopicName() %>"></SPAN>
</TD></TR>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getPseud() %>"></SPAN>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
VALUE="Y" <% if (data.getAttachCheck()) { %>CHECKED<% } %> > Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51><%= data.getPostBoxData() %></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post.gif") %>" ALT="Post" NAME="post"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" ALT="Cancel" NAME="cancel"
WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</DIV></FORM>

View File

@@ -15,17 +15,21 @@
Contributor(s):
--%>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "java.util.List" %>
<%@ page import = "com.silverwrist.venice.core.TopicMessageContext" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/user" prefix="user" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
RenderData rdat = RenderConfig.createRenderData(application,request,response);
JSPView view = JSPView.get(request);
%>
<% if (rdat.useHTMLComments()) { %><!-- Password changed --><% } %>
<% rdat.writeContentHeader(out,"Your Password Has Been Changed",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<util:comment>Password changed</util:comment>
<util:header title="Your Password Has Been Changed"/>
<util:font color="content.fg" size="content">
The password for your account has been changed, and a new password has been E-mailed to you at
your account's defined E-mail address. (Check your E-mail again!). After getting the new password,
please log in and change your password (yes, again!) as soon as possible.<P>
<DIV ALIGN="CENTER">
<A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A>
<util:link href="top.js.vs" type="servlet">Return to Front Page</util:link>
</DIV>
</FONT>
</util:font>

View File

@@ -0,0 +1,33 @@
<%--
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.PhotoUploader" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<% PhotoUploader view = PhotoUploader.get(request); %>
<util:comment>Photo uploading page</util:comment>
<util:header title="<%= view.getPageTitle() %>"/>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= view.getAction() %>">
<%= view.getHiddenParams() %>
<TABLE ALIGN="LEFT" CLASS="content" BORDER=0 CELLPADDING=0 CELLSPACING=2><TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=100><%= view.getPhotoTag() %></TD>
<TD ALIGN=LEFT><util:font color="content.fg" size="content">
<util:escape><%= view.getLabel() %></util:escape>:<BR>
<INPUT TYPE="FILE" NAME="thepic"><P>
<util:button id="upload" type="input"/>&nbsp;<util:button id="cancel" type="input"/>
</util:font></TD>
</TR></TABLE>
</FORM>

View File

@@ -1,390 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
TopicPosts data = TopicPosts.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- <%= data.getIdentifyingData() %> --><% } %>
<SPAN CLASS="chead1"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,5) %><B>
<%= data.getTopicName() %>
</B></FONT></SPAN>
&nbsp;&nbsp;
<SPAN CLASS="chead2"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,3) %><B>
<% if (data.isTopicArchived()) { %>(Archived)<% } else if (data.isTopicFrozen()) { %>(Frozen)<% } %>
<%= data.getTotalMessages() %> Total; <%= data.getNewMessages() %> New;
Last: <%= rdat.formatDateForDisplay(data.getLastUpdate()) %>
</B></FONT></SPAN>
<HR ALIGN=LEFT SIZE=2 WIDTH="90%" NOSHADE>
<% data.writeTopCustom(out); %>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT COLSPAN=2 CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Topic user controls section --><% } %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getConfLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_topic_list.gif") %>" ALT="Topic List" WIDTH=80 HEIGHT=24
BORDER=0></A>
&nbsp;
<% if (data.isTopicHidden()) { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=HN") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_show_topic.gif") %>" ALT="Show Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=HY") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_hide_topic.gif") %>" ALT="Hide Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } // end if %>
&nbsp;
<% if (data.canDoNextTopic()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getNextLocator() + "&rnm=1") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_next_topic.gif") %>" ALT="Next Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
&nbsp;
<% if (data.getNewMessages()>0) { %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getNextLocator() + "&"
+ data.getRestoreLocator() + "&rnm=1") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_next_keep_new.gif") %>" ALT="Next & Keep New" WIDTH=80 HEIGHT=24
BORDER=0></A>
&nbsp;
<% } // end if %>
<% } // end if %>
<A HREF="<%= rdat.getEncodedServletPath("findpost?" + data.getLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_find.gif") %>" ALT="Find" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
</TD>
</TR>
<TR VALIGN=BOTTOM>
<TD>&nbsp;</TD>
<TD NOWRAP ALIGN=RIGHT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Topic admin controls section --><% } %>
<% if (data.canFreezeTopic()) { %>
&nbsp;
<% if (data.isTopicFrozen()) { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=FN") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_unfreeze_topic.gif") %>" ALT="Unfreeze Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=FY") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_freeze_topic.gif") %>" ALT="Freeze Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } // end if %>
<% } // end if %>
<% if (data.canArchiveTopic()) { %>
&nbsp;
<% if (data.isTopicArchived()) { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=AN") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_unarchive_topic.gif") %>" ALT="Unarchive Topic" WIDTH=80
HEIGHT=24 BORDER=0></A>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=AY") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_archive_topic.gif") %>" ALT="Archive Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } // end if %>
<% } // end if %>
<% if (data.canDeleteTopic()) { %>
&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=DEL") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_delete_topic.gif") %>" ALT="Delete Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } // end if %>
</TD>
</TR>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Go box --><% } %>
<FORM METHOD="GET" ACTION="<%= rdat.getEncodedServletPath("confdisp") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pxg" VALUE="" SIZE=6
MAXLENGTH=13></SPAN>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_go.gif") %>" NAME="Go" ALT="Go"
ALIGN=BOTTOM WIDTH=80 HEIGHT=24 BORDER=0>
</DIV></FORM>
</TD>
<TD NOWRAP ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (rdat.useHTMLComments()) { %><!-- Upper navigation linkset --><% } %>
<A NAME="top">[</A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&p1=0&p2=-1") %>">View All</A>
<% if (data.canScrollUp()) { %>
&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&"
+ data.getScrollUpLocator()) %>">Scroll Up <%= data.getNumPostsPerPage() %></A>
<% } // end if %>
<% if (data.canScrollDown()) { %>
&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&"
+ data.getScrollDownLocator()) %>">Scroll Down <%= data.getNumPostsPerPage() %></A>
<% } // end if %>
<% if (data.canScrollDown()) { %>
&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&"
+ data.getScrollToEndLocator()) %>">Scroll To End</A>
<% } // end if %>
&nbsp;|&nbsp;
<A HREF="#bottom">Bottom</A>
&nbsp;]
</FONT></TD>
</TR>
</TABLE>
<% if (rdat.useHTMLComments()) { %><!-- Begin Actual Messages --><% } %>
<%
Iterator it = data.getMessageIterator();
String last_post = rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
+ String.valueOf(data.getTotalMessages() - 1));
boolean can_line = false;
%>
<% while (it.hasNext()) { %>
<%
TopicMessageContext msg = (TopicMessageContext)(it.next());
String poster = data.getPosterName(msg);
%>
<% if (can_line && data.emitBreakLinePoint(msg.getPostNumber())) { %><HR WIDTH="70%"><% } %>
<% if (data.showAdvanced()) { %>
<BR>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=TOP><TD NOWRAP ALIGN=LEFT CLASS="content">
<% } // end if (showing advanced controls) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (!(data.bozoFilterUser(msg.getCreatorUID()))) { %>
<%= data.getUserPhotoTag(msg.getCreatorUID(),rdat) %>
<% } // end if %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
+ msg.getPostNumber()) %>"><%= msg.getPostNumber() %></A> of
<A HREF="<%= last_post %>"><%= data.getTotalMessages() - 1 %></A>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>&lt;<%= data.getMessageReference(msg) %>&gt;</FONT>
<% if (data.showAdvanced() && msg.isHidden()) { %>
<B><EM>(Hidden)</EM></B>
<% } // end if %>
<% if (data.showAdvanced() && data.showBozoFilteredIndicator(msg.getCreatorUID())) { %>
<B><EM>(User filtered;
<A HREF="<%= rdat.getEncodedServletPath("postops?" + data.getLocator() + "&msg="
+ msg.getPostNumber() + "&cmd=BN") %>">remove filter</A>)
</EM></B>
<% } // end if %>
<% if (!(data.bozoFilterUser(msg.getCreatorUID()))) { %>
<BR>
<B><%= msg.getPseud() %></B>
(<EM>
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
<%= rdat.formatDateForDisplay(msg.getPostDate()) %>
</EM>)
<% if (msg.hasAttachment()) { %>
<A HREF="<%= rdat.getEncodedServletPath("attachment?" + data.getConfLocator() + "&msg="
+ msg.getPostID()) %>"
<% if (data.displayAttachmentInNewWindow(msg)) { %>TARGET="_blank"<% } %> ><IMG
SRC="<%= rdat.getFullImagePath("attachment.gif") %>"
ALT="(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)"
WIDTH=16 HEIGHT=16 BORDER=0></A>
<% } // end if %>
<% } // end if (message not bozo-filtered) %>
</FONT><P><FONT COLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_FOREGROUND) %>">
<% if (msg.isScribbled()) { %>
<SPAN CLASS="post"><TT><EM><B>
(Scribbled by <%= data.getMessageBodyText(msg) %> on
<%= rdat.formatDateForDisplay(msg.getScribbleDate()) %>)
</B></EM></TT></SPAN>
<% if (data.displayPostPictures()) { %><BR CLEAR=LEFT><% } %><P>
<% } else if (data.bozoFilterUser(msg.getCreatorUID())) { %>
<SPAN CLASS="post"><TT><EM><B>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&nbz=1&p1="
+ msg.getPostNumber()) %>">(Message from Filtered User:
<%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)</A>
</B></EM></TT></SPAN><P>
<% } else if (msg.isHidden() && !(data.showAdvanced())) { %>
<SPAN CLASS="post"><TT><EM><B>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
+ msg.getPostNumber()) %>">(Hidden
Message: <%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)</A>
</B></EM></TT></SPAN>
<% if (data.displayPostPictures()) { %><BR CLEAR=LEFT><% } %><P>
<% } else { %>
<PRE CLASS="post"><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<% if (data.displayPostPictures()) { %><BR CLEAR=LEFT><% } %>
<% } // end if %>
</FONT>
<% if (data.showAdvanced()) { %>
<% String po_loc = data.getLocator() + "&msg=" + msg.getPostNumber(); %>
</TD><TD NOWRAP ALIGN=RIGHT CLASS="content">
<% if (!(msg.isScribbled())) { %>
<% if (msg.canHide()) { %>
<% if (msg.isHidden()) { %>
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=HN") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_show.gif") %>" ALT="Show" WIDTH=80 HEIGHT=24 BORDER=0></A><P>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=HY") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_hide.gif") %>" ALT="Hide" WIDTH=80 HEIGHT=24 BORDER=0></A><P>
<% } // end if %>
<% } // end if (can hide) %>
<% if (msg.canScribble()) { %>
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=SCR") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_scribble.gif") %>" ALT="Scribble" WIDTH=80 HEIGHT=24
BORDER=0></A><P>
<% } // end if (can scribble) %>
<% } // end if (not already scribbled) %>
<% if (data.showFilterButton(msg.getCreatorUID())) { %>
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=BY") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_filter_user.gif") %>" ALT="Filter User" WIDTH=80 HEIGHT=24
BORDER=0></A><P>
<% } // end if (can bozo filter) %>
<% if (msg.canNuke()) { %>
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=NUKE") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_nuke.gif") %>" ALT="Nuke" WIDTH=80 HEIGHT=24
BORDER=0></A><P>
<% } // end if (can nuke) %>
<% if (msg.canPublish()) { %>
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=PU") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_publish.gif") %>" ALT="Publish" WIDTH=80 HEIGHT=24
BORDER=0></A><P>
<% } // end if (can publish) %>
</TD></TR></TABLE><BR>
<% } // end if (showing advanced controls) %>
<% can_line = true; %>
<% } // end while %>
<% if (rdat.useHTMLComments()) { %><!-- End Actual Messages --><% } %>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>&nbsp;</TD>
<TD NOWRAP ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (rdat.useHTMLComments()) { %><!-- Lower navigation linkset --><% } %>
<A NAME="bottom">[</A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&p1=0&p2=-1") %>">View All</A>
<% if (data.canScrollUp()) { %>
&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&"
+ data.getScrollUpLocator()) %>">Scroll Up <%= data.getNumPostsPerPage() %></A>
<% } // end if %>
<% if (data.canScrollDown()) { %>
&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&"
+ data.getScrollDownLocator()) %>">Scroll Down <%= data.getNumPostsPerPage() %></A>
<% } // end if %>
<% if (data.canScrollDown()) { %>
&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&"
+ data.getScrollToEndLocator()) %>">Scroll To End</A>
<% } // end if %>
&nbsp;|&nbsp;
<A HREF="#top">Top</A>
&nbsp;]
</FONT></TD>
</TR>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Topic user controls section --><% } %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getConfLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_topic_list.gif") %>" ALT="Topic List" WIDTH=80 HEIGHT=24
BORDER=0></A>
&nbsp;
<% if (data.isTopicHidden()) { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=HN") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_show_topic.gif") %>" ALT="Show Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=HY") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_hide_topic.gif") %>" ALT="Hide Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
<% } // end if %>
&nbsp;
<% if (data.canDoNextTopic()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getNextLocator() + "&rnm=1") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_next_topic.gif") %>" ALT="Next Topic" WIDTH=80 HEIGHT=24
BORDER=0></A>
&nbsp;
<% if (data.getNewMessages()>0) { %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getNextLocator() + "&"
+ data.getRestoreLocator() + "&rnm=1") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_next_keep_new.gif") %>" ALT="Next & Keep New" WIDTH=80 HEIGHT=24
BORDER=0></A>
&nbsp;
<% } // end if %>
<% } // end if %>
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
</TD>
<TD NOWRAP ALIGN=RIGHT>&nbsp;</TD>
</TR>
</TABLE>
<% if (data.displayPostBox()) { %>
<HR><SPAN STYLE="font-size: 14pt;"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<B>Post Message in &quot;<%= data.getTopicName() %>&quot;:</B>
</FONT></SPAN>
<BR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
<% if (data.canDoNextTopic()) { %>
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextTopicNumber() %>">
<% } // end if %>
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getDefaultPseud() %>"></SPAN>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach" VALUE="Y"> Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_reload.gif") %>" ALT="Post & Reload"
NAME="post" WIDTH=80 HEIGHT=24 BORDER=0>
<% if (data.canDoNextTopic()) { %>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_go_next.gif") %>" ALT="Post & Go Next"
NAME="postnext" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_go_topics.gif") %>" ALT="Post & Go Topics"
NAME="posttopics" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</DIV></FORM>
<% } else if (data.isTopicArchived()) { %>
<DIV ALIGN=CENTER CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is an
<EM>Archived</EM> Topic</B></DIV>
<% } else if (data.isTopicFrozen()) { %>
<DIV ALIGN=CENTER CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is a
<EM>Frozen</EM> Topic</B></DIV>
<% } // end if %>
<% data.writeBottomCustom(out); %>

View File

@@ -1,89 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
PostPreview data = PostPreview.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Previewing Post",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
<% if (data.getNumSpellingErrors()==0) { %>
Your post did not contain any spelling errors.
<% } else if (data.getNumSpellingErrors()==1) { %>
There was 1 spelling error in your post.
<% } else { %>
There were <%= data.getNumSpellingErrors() %> spelling errors in your post.
<% } // end if %>
</B></FONT>
<P><PRE CLASS="post"><%= rdat.rewritePostData(data.getPreviewData()) %></PRE><HR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
<% if (!(StringUtil.isStringEmpty(data.getNextVal()))) { %>
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>">
<% } // end if %>
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<% if (data.slippageDetected()) { %>
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<% } // end if %>
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getPseud() %>"></SPAN>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
VALUE="Y" <% if (data.attachChecked()) { %>CHECKED<% } %> > Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51><%= data.getBodyText() %></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_reload.gif") %>" ALT="Post & Reload"
NAME="post" WIDTH=80 HEIGHT=24 BORDER=0>
<% if (!(StringUtil.isStringEmpty(data.getNextVal()))) { %>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_go_next.gif") %>" ALT="Post & Go Next"
NAME="postnext" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_go_topics.gif") %>" ALT="Post & Go Topics"
NAME="posttopics" WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" ALT="Cancel"
NAME="cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</DIV></FORM>

View File

@@ -1,73 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ReportConferenceMenu data = ReportConferenceMenu.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
String partial;
%>
<% if (rdat.useHTMLComments()) { %><!-- Reports for conference #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Conference Reports:",data.getConfName()); %>
<%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>">Return to Manage
Conference Menu</A>
</FONT><P>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=MIDDLE>
<TH ALIGN=LEFT CLASS="content"><%= stdfont %><B><U>#</U></B></FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= stdfont %><B><U>Topic Name</U></B></FONT></TH>
<TH ALIGN=LEFT CLASS="content" COLSPAN=2><%= stdfont %><B><U>Reports</U></B></FONT></TH>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT>&nbsp;</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>(Entire conference)</FONT></TD>
<% partial = "confops?" + data.getLocator() + "&cmd="; %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RP") %>">Posters</A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RR") %>">Readers/Lurkers</A>
</FONT></TD>
</TR>
<% Iterator it = data.getTopics(); %>
<% while (it.hasNext()) { %>
<%
TopicContext topic = (TopicContext)(it.next());
partial = "confops?" + data.getLocator() + "&top=" + topic.getTopicNumber() + "&cmd=";
%>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %><%= topic.getTopicNumber() %></FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %><%= topic.getName() %></FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RP") %>">Posters</A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RR") %>">Readers/Lurkers</A>
</FONT></TD>
</TR>
<% } // end while %>
</TABLE><P>

View File

@@ -1,109 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
SideBoxList data = SideBoxList.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
int i;
SideBoxDescriptor d;
%>
<% if (rdat.useHTMLComments()) { %><!-- User sidebox list --><% } %>
<% rdat.writeContentHeader(out,"Your Front Page Configuration",null); %>
<%= stdfont %><A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A></FONT><P>
<% if (data.getInListSize()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=3>
<% for (i=0; i<data.getInListSize(); i++) { %>
<% d = data.getInListItem(i); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(data.getInListSize()-1)) { %>&nbsp;<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("settings?cmd=BD&box=" + d.getID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="[Down]" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath("settings?cmd=BU&box=" + d.getID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="[Up]" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<A HREF="<%= rdat.getEncodedServletPath("settings?cmd=BX&box=" + d.getID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="[Remove]" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<B><%= StringUtil.encodeHTML(d.getTitle(false)) %></B>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="[Down]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to move the specified sidebox down on your Front Page.
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="[Up]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to move the specified sidebox up on your Front Page.
</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="[Remove]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to remove the specified sidebox from your Front Page.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= stdfont %><EM>You have no sideboxes on your Front Page.</EM></FONT>
<% } // end if %>
<% if (data.getOutListSize()>0) { %>
<P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("settings") %>">
<DIV CLASS="content"><%= stdfont %>
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="BA">
<B>Add sidebox:</B>&nbsp;&nbsp;
<SELECT NAME="box" SIZE=1>
<% for (i=0; i<data.getOutListSize(); i++) { %>
<% d = data.getOutListItem(i); %>
<OPTION VALUE="<%= d.getID() %>"><%= StringUtil.encodeHTML(d.getTitle(false)) %></OPTION>
<% } // end for %>
</SELECT>&nbsp;&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_add.gif") %>" NAME="add" ALT="Add"
ALIGN=MIDDLE WIDTH=80 HEIGHT=24 BORDER=0>
</FONT></DIV>
</FORM>
<% } // end if %>

View File

@@ -1,112 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
PostSlippage data = PostSlippage.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- <%= data.getIdentifyingData() %> --><% } %>
<% rdat.writeContentHeader(out,"Slippage or Double-Click Detected",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
The following posts slipped in while you were typing. You may choose to edit your message and
re-post, just post it as is, or cancel your posting altogether.
</FONT><P>
<% if (rdat.useHTMLComments()) { %><!-- Begin Slipped Messages --><% } %>
<% Iterator it = data.getMessageIterator(); %>
<% while (it.hasNext()) { %>
<%
TopicMessageContext msg = (TopicMessageContext)(it.next());
String poster = data.getPosterName(msg);
%>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><%= msg.getPostNumber() %></B> of <B><%= data.getTotalMessages() - 1 %></B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>&lt;<%= data.getMessageReference(msg) %>&gt;</FONT><BR>
<B><%= msg.getPseud() %></B>
(<EM>
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
<%= rdat.formatDateForDisplay(msg.getPostDate()) %>
</EM>)
</FONT><P>
<% if (msg.isScribbled()) { %>
<SPAN CLASS="post"><TT><EM><B>
(Scribbled by <%= data.getMessageBodyText(msg) %> on
<%= rdat.formatDateForDisplay(msg.getScribbleDate()) %>)
</B></EM></TT></SPAN>
<% } else { %>
<PRE CLASS="post"><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<% } // end if %>
<% } // end while %>
<% if (rdat.useHTMLComments()) { %><!-- End Slipped Messages --><% } %>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Post Message in
&quot;<%= data.getTopicName() %>&quot;:</B></FONT>
<BR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
<% if (!(StringUtil.isStringEmpty(data.getNextVal()))) { %>
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>">
<% } // end if %>
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getPseud() %>"></SPAN>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
VALUE="Y" <% if (data.attachChecked()) { %>CHECKED<% } %> > Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51><%= data.getBodyText() %></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_reload.gif") %>" ALT="Post & Reload"
NAME="post" WIDTH=80 HEIGHT=24 BORDER=0>
<% if (!(StringUtil.isStringEmpty(data.getNextVal()))) { %>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_go_next.gif") %>" ALT="Post & Go Next"
NAME="postnext" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_post_go_topics.gif") %>" ALT="Post & Go Topics"
NAME="posttopics" WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" ALT="Cancel"
NAME="cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</DIV></FORM>

View File

@@ -0,0 +1,138 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.view.AdminFindUserView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
AdminFindUserView data = AdminFindUserView.get(request);
%>
<util:comment>Admin Find Users Menu</util:comment>
<util:header title="User Account Management"/>
<util:font color="content.fg" size="content"><util:link href="sysadmin/menu.js.vs" type="servlet">Return to
System Administration Menu</util:link></util:font><P>
<%-- Display the search form --%>
<util:comment>User Search Form</util:comment>
<util:form action="sysadmin/find_user.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<util:font color="content.fg" size="content-heading"><B>Find Users:</B></util:font><BR>
<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 (data.testField(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (data.testField(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (data.testField(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (data.testField(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (data.testMode(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (data.testMode(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (data.testMode(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
&nbsp;&nbsp;
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getTerm() %>"></SPAN><BR>
<util:button id="search" type="input"/><BR>
</util:font>
</DIV></util:form>
<% List results = data.getResults(); %>
<% if (results!=null) { %>
<util:comment>Display Search Results</util:comment>
<%
// Determine the number of results to display and whether to display a "next" button
int dcount = results.size();
boolean go_next = false;
if (dcount>data.getMaxResults())
{ // there's a "next"
dcount = data.getMaxResults();
go_next = true;
} // end if
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="subhead">
<%-- The initial search results --%>
<B>Search Results</B>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</util:font></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<util:comment>Navigational Form</util:comment>
<util:form action="sysadmin/find_user.js.vs" type="servlet"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<util:button id="previous" type="input"/>
<% } else { %>
<util:button id="_null_"/>
<% } // end if %>
&nbsp;&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 (!StringUtil.isStringEmpty(uf.getDescription())) { %>
<BR><EM><util:escape><%= uf.getDescription() %></util:escape></EM>
<% } // end if %>
<BR><util:xlink>
<util:href type="servlet">sysadmin/modify_user.js.vs?uid=<%= uf.getUID() %></util:href>
<util:text>[Modify User]</util:text>
</util:xlink>
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if (results found) %>

View File

@@ -0,0 +1,29 @@
<%--
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" %>
<util:comment>Import Users Form</util:comment>
<util:header title="Import User Accounts"/>
<util:form action="sysadmin/import.js.vs" type="servlet" isfile="true"><DIV CLASS="content">
<util:font color="content.fg" size="content">
User import data:<BR>
<INPUT TYPE="FILE" NAME="idata"><P>
<util:button id="upload" type="input"/>&nbsp;<util:button id="cancel" type="input"/><HR>
The user accounts are imported as an XML file.
<%-- TODO: put a description of the contents here, or a link to a DTD --%>
</util:font>
</DIV></util:form>

View File

@@ -17,18 +17,18 @@
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "com.silverwrist.venice.ui.helpers.ImportHelper" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%
AdminImportUser data = AdminImportUser.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
JSPView view = JSPView.get(request);
ImportHelper ihelper = (ImportHelper)(view.getRequestAttribute("import.helper"));
%>
<% rdat.writeContentHeader(out,"Results From Importing User Accounts",null); %>
<DIV CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sysadmin") %>">Return to System Administration Menu</A><P>
<FONT SIZE=+1><B>Processed <%= data.getNumProcessed() %> record(s); <%= data.getNumErrors() %>
<util:comment>Import Users - Results</util:comment>
<util:header title="Results From Importing User Accounts"/>
<DIV CLASS="content"><util:font color="content.fg" size="content">
<util:link href="sysadmin/menu.js.vs" type="servlet">Return to System Administration Menu</util:link><P>
<FONT SIZE=+1><B>Processed <%= ihelper.getProcessed() %> record(s); <%= ihelper.getErrors() %>
error(s) reported.</B></FONT><HR>
<%= data.getMessage() %>
</FONT></DIV>
<%= ihelper.getMessage() %>
</util:font></div>

View File

@@ -15,50 +15,58 @@
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%@ page import = "java.util.List" %>
<%@ page import = "com.silverwrist.venice.core.TopicMessageContext" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/user" prefix="user" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/post" prefix="post" %>
<%
TopDisplay data = TopDisplay.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Top content panel --><% } %>
<% if (data.displayWelcome()) { %>
<% rdat.writeContentHeader(out,rdat.getStockMessage("welcome-top"),null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><%= rdat.getStockMessage("welcome") %></FONT><P>
<% } // end if %>
<%
rdat.writeContentHeader(out,rdat.getStockMessage("currents-top"),null);
int ntp = data.getNumTopPosts();
if (ntp>0) {
for (int i=0; i<ntp; i++) {
TopicMessageContext msg = data.getTopPost(i);
String poster = data.getPosterName(msg);
String topic_link = data.getTopicPostLink(rdat,msg);
JSPView view = JSPView.get(request);
List post_list = (List)(view.getRequestAttribute("top.fp_posts"));
List poster_names = (List)(view.getRequestAttribute("top.fp_posts.names"));
List message_text = (List)(view.getRequestAttribute("top.fp_posts.text"));
List topic_names = (List)(view.getRequestAttribute("top.fp_posts.topics.names"));
List topic_links = (List)(view.getRequestAttribute("top.fp_posts.topics.links"));
%>
<util:comment>Top Content Panel</util:comment>
<%-- If the user is not logged in, write the welcome message. --%>
<user:is_not_logged_in>
<util:header stocktitle="welcome-top"/>
<util:font color="content.fg" size="content"><util:stock_message key="welcome"/></util:font><P>
</user:is_not_logged_in>
<%-- Write the messages that have been published to the front page. --%>
<util:header stocktitle="currents-top"/>
<% if (post_list.size()>0) { %>
<% for (int i=0; i<post_list.size(); i++) { %>
<%
TopicMessageContext msg = (TopicMessageContext)(post_list.get(i));
String pname = poster_names.get(i).toString();
%>
<% if (i>0) { %><HR WIDTH="70%"><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<util:font color="content.fg" size="content">
<B><%= msg.getPseud() %></B>
(<EM>
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
<%= rdat.formatDateForDisplay(msg.getPostDate()) %>
<util:xlink target="_blank">
<util:href type="servlet">user/<%= pname %></util:href>
<util:text><%= pname %></util:text>
</util:xlink>,
<%= view.formatDate(msg.getPostDate()) %>
</EM>)
<P>
<PRE><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<% if (topic_link!=null) { %>
<P><FONT SIZE=-1><EM>(From the topic: <%= topic_link %>)</EM></FONT><BR>
<% } // end if %>
</FONT>
<%
} // end for
} else {
%>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>No front page postings found.</EM></FONT>
<PRE><post:rewrite><%= message_text.get(i) %></post:rewrite></PRE>
<P>
<FONT SIZE=-1><EM>(From the topic: <util:xlink>
<util:href type="servlet">go/<%= topic_links.get(i) %></util:href>
<util:text><%= topic_names.get(i) %></util:text>
</util:xlink>)</EM></FONT><BR>
</util:font>
<% } // end for %>
<% } else { %>
<util:font color="content.fg" size="content"><EM>No front page postings found.</EM></util:font>
<% } // end if %>

View File

@@ -1,199 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
TopicListing data = TopicListing.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
String self = "confdisp?" + data.getLocator();
String tmp;
%>
<% if (rdat.useHTMLComments()) { %><!-- Topic list for conf #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Topics in " + data.getConfName(),null); %>
<% data.writeTopCustom(out); %>
<%= stdfont %>
<DIV ALIGN="LEFT" CLASS="content">
<A HREF="<%= rdat.getEncodedServletPath("confops?sig=" + data.getCommunityID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_conference_list.gif") %>" ALT="Conference List" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% if (data.canCreateTopic()) { %>
<% tmp = rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=T"); %>
<A HREF="<%= tmp %>"><IMG SRC="<%= rdat.getFullImagePath("bn_add_topic.gif") %>" ALT="Add Topic"
WIDTH=80 HEIGHT=24 BORDER=0></A>&nbsp;
<% } // end if %>
<% if (data.canDoReadNew()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getNextLocator() + "&rnm=1") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_read_new.gif") %>" ALT="Read New" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% } // end if %>
<A HREF="<%= rdat.getEncodedServletPath("findpost?" + data.getLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_find.gif") %>" ALT="Find" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% if (data.canAddToHotlist()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=H") %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_add_to_hotlist.gif") %>" ALT="Add to HotList" WIDTH=80
HEIGHT=24 BORDER=0></A>&nbsp;
<% } // end if %>
</DIV>
<% if (data.anyTopics()) { %>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=3>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH="1%" CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_NUMBER) ? -ConferenceContext.SORT_NUMBER
: ConferenceContext.SORT_NUMBER); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">#</A></B>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_NAME) ? -ConferenceContext.SORT_NAME
: ConferenceContext.SORT_NAME); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Topic Name</A></B>
</FONT></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_UNREAD) ? -ConferenceContext.SORT_UNREAD
: ConferenceContext.SORT_UNREAD); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">New</A></B>
</FONT></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_TOTAL) ? -ConferenceContext.SORT_TOTAL
: ConferenceContext.SORT_TOTAL); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Total</A></B>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_DATE) ? -ConferenceContext.SORT_DATE
: ConferenceContext.SORT_DATE); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Last Response</A></B>
</FONT></TD>
</TR>
<TR VALIGN=TOP><TD ALIGN=LEFT COLSPAN=5>&nbsp;</TD></TR>
<% Iterator it = data.getTopicIterator(); %>
<% while (it.hasNext()) { %>
<%
TopicContext topic = (TopicContext)(it.next());
tmp = self + "&top=" + topic.getTopicNumber() + "&rnm=1";
%>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH="1%" CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getTopicNumber() %></A>&nbsp;&nbsp;
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getName() %></A>
<% if (topic.isArchived() && !(data.isView(ConferenceContext.DISPLAY_ARCHIVED))) { %>
<EM>(archived)</EM>
<% } else if (topic.isFrozen()) { %>
<EM>(frozen)</EM>
<% } // end if %>
</FONT></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getUnreadMessages() %></A>
</FONT></TD>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&top=" + topic.getTopicNumber()
+ "&p1=0&p2=-1") %>"><%= topic.getTotalMessages() %></A>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= rdat.formatDateForDisplay(topic.getLastUpdateDate()) %></A>
</FONT></TD>
</TR>
<% } // end while (more topics in enumeration) %>
</TABLE><P>
<% } else { %>
<%
switch (data.getViewOption())
{
case ConferenceContext.DISPLAY_NEW:
%>
<EM>No topics with unread messages found.</EM>
<%
break;
case ConferenceContext.DISPLAY_ACTIVE:
case ConferenceContext.DISPLAY_ALL:
%>
<EM>No active topics found.</EM>
<%
break;
case ConferenceContext.DISPLAY_HIDDEN:
%>
<EM>No hidden topics found.</EM>
<%
break;
case ConferenceContext.DISPLAY_ARCHIVED:
%>
<EM>No archived topics found.</EM>
<%
break;
default:
%>
<EM>Invalid display option selected.</EM>
<%
break;
} // end switch
%>
<P>
<% } // end if %>
<DIV ALIGN="CENTER" CLASS="content">
<B>[</B>
<% if (data.isView(ConferenceContext.DISPLAY_NEW)) { %>
<B>New</B>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&view=" + ConferenceContext.DISPLAY_NEW) %>">New</A>
<% } // end if %>
<B>|</B>
<% if (data.isView(ConferenceContext.DISPLAY_ACTIVE)) { %>
<B>Active</B>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&view="
+ ConferenceContext.DISPLAY_ACTIVE) %>">Active</A>
<% } // end if %>
<B>|</B>
<% if (data.isView(ConferenceContext.DISPLAY_ALL)) { %>
<B>All</B>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&view=" + ConferenceContext.DISPLAY_ALL) %>">All</A>
<% } // end if %>
<B>|</B>
<% if (data.isView(ConferenceContext.DISPLAY_HIDDEN)) { %>
<B>Hidden</B>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&view="
+ ConferenceContext.DISPLAY_HIDDEN) %>">Hidden</A>
<% } // end if %>
<B>|</B>
<% if (data.isView(ConferenceContext.DISPLAY_ARCHIVED)) { %>
<B>Archived</B>
<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&view="
+ ConferenceContext.DISPLAY_ARCHIVED) %>">Archived</A>
<% } // end if %>
<B>]</B>
</DIV>
</FONT>
<% data.writeBottomCustom(out); %>

114
web/format/user/sidebox.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 = "java.util.*" %>
<%@ 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);
List in_list = (List)(view.getRequestAttribute("sideboxes.included"));
List out_list = (List)(view.getRequestAttribute("sideboxes.excluded"));
%>
<util:comment>User sidebox list</util:comment>
<util:header title="Your Front Page Configuration"/>
<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 (in_list.size()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=3>
<% for (int i=0; i<in_list.size(); i++) { %>
<% SideBoxDescriptor d = (SideBoxDescriptor)(in_list.get(i)); %>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(in_list.size()-1)) { %>&nbsp;<% } else { %>
<util:xlink>
<util:href type="servlet">usr/sidebox_down.js.vs?box=<%= d.getID() %></util:href>
<util:text><util:image src="icn_down.gif" fixup="true" alt="[Down]" width="16"
height="16"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<util:xlink>
<util:href type="servlet">usr/sidebox_up.js.vs?box=<%= d.getID() %></util:href>
<util:text><util:image src="icn_up.gif" fixup="true" alt="[Up]" width="16"
height="16"/></util:text>
</util:xlink>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<util:xlink>
<util:href type="servlet">usr/sidebox_delete.js.vs?box=<%= d.getID() %></util:href>
<util:text><util:image src="icn_x.gif" fixup="true" alt="[Remove]" width="16"
height="16"/></util:text>
</util:xlink>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><util:escape><%= d.getTitle(false) %></util:escape></B>
</util:font></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_down.gif" fixup="true" alt="[Down]" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to move the specified sidebox down on your Front Page.
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_up.gif" fixup="true" alt="[Up]" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to move the specified sidebox up on your Front Page.
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER WIDTH=16>
<util:image src="icn_x.gif" fixup="true" alt="[Remove]" width="16" height="16"/>
</TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
Click this symbol to remove the specified sidebox from your Front Page.
</util:font></TD>
</TR>
</TABLE>
<% } else { %>
<util:font color="content.fg" size="content"><EM>You have no sideboxes on your Front Page.</EM></util:font>
<% } // end if %>
<% if (out_list.size()>0) { %>
<P>
<util:form action="usr/sidebox_add.js.vs" type="servlet">
<DIV CLASS="content"><util:font color="content.fg" size="content">
<B>Add sidebox:</B>&nbsp;&nbsp;
<SELECT NAME="box" SIZE=1>
<% for (int i=0; i<out_list.size(); i++) { %>
<% SideBoxDescriptor d = (SideBoxDescriptor)(out_list.get(i)); %>
<OPTION VALUE="<%= d.getID() %>"><util:escape><%= d.getTitle(false) %></util:escape></OPTION>
<% } // end for %>
</SELECT>&nbsp;&nbsp;
<util:button id="add" type="input"/>
</util:font></DIV>
</util:form>
<% } // end if %>

View File

@@ -1,46 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
UserPhotoData data = UserPhotoData.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Change User Photo",null); %>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("userphoto") %>">
<DIV CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<INPUT TYPE=HIDDEN NAME="tgt" VALUE="<%= data.getTarget() %>">
<%= data.getPhotoTag(rdat) %>
New user photo:<BR>
<INPUT TYPE="FILE" NAME="thepic"><P>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_upload.gif") %>" NAME="upload" ALT="Upload"
WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel" ALT="Cancel"
WIDTH=80 HEIGHT=24 BORDER=0><BR CLEAR=LEFT>
</FONT></DIV>
</FORM>

View File

@@ -0,0 +1,97 @@
<%--
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 data = JSPView.get(request);
UserProfile prof = (UserProfile)(data.getRequestAttribute("profile"));
String tmp;
%>
<util:comment>Profile for UID #<%= prof.getUID() %></util:comment>
<util:header title="User Profile:" subtitle="<%= prof.getUserName() %>"/>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="c2"><util:font color="content.fg" size="profile-dates">
<%= data.getRequestAttribute("user.photo") %><BR CLEAR=LEFT><P>
<% java.util.Date tmpd = prof.getCreateDate(); %>
<% if (tmpd!=null) { %>
Account created:<BR><util:escape><%= data.formatDate(tmpd) %></util:escape><BR>
<% } // end if %>
<% tmpd = prof.getLastLoginDate(); %>
<% if (tmpd!=null) { %>
Last login:<BR><util:escape><%= data.formatDate(tmpd) %></util:escape><BR>
<% } // end if %>
<% tmpd = prof.getLastUpdate(); %>
<% if (tmpd!=null) { %>
Profile last updated:<BR><util:escape><%= data.formatDate(tmpd) %></util:escape><BR>
<% } // end if %>
</util:font></TD>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><util:escape><%= data.getRequestAttribute("fullname").toString() %></util:escape></B><BR>
<% tmp = prof.getEmail(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
E-mail: <A HREF="mailto:<%= tmp %>"><util:escape><%= tmp %></util:escape></A><BR>
<% } // end if %>
<% tmp = prof.getURL(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
URL: <A HREF="<%= tmp %>" TARGET="Wander"><util:escape><%= tmp %></util:escape></A><BR>
<% } // end if %><BR>
<% tmp = prof.getCompany(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getAddressLine1(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getAddressLine2(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = data.getRequestAttribute("address.lastline").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getFullCountry(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getPhone(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Phone: <util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getFax(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Fax: <util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getMobile(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Mobile: <util:escape><%= tmp %></util:escape><BR><% } %>
</util:font></TD>
</TR></TABLE><BR>
<% tmp = prof.getDescription(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
<util:font color="content.fg" size="content"><EM><util:escape><%= tmp %></util:escape></EM></util:font><BR>
<% } // end if %>
<% if (prof.canSendQuickEmail()) { %>
<HR><util:font color="content.fg" size="content"><B>Send Quick E-Mail To
<%= prof.getUserName() %>:</B></util:font><BR>
<util:form action="quick_email.js.vs" type="servlet">
<INPUT TYPE="HIDDEN" NAME="to_uid" VALUE="<%= prof.getUID() %>">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content">
<util:font color="content.fg" size="content">Subject: </util:font>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="subj" SIZE=65 MAXLENGTH=255
VALUE=""></SPAN>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content"><util:button id="send" type="input"/></TR>
</TABLE>
</util:form>
<% } // end if %>

View File

@@ -1,114 +0,0 @@
<%--
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 Community 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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
UserProfileData data = UserProfileData.retrieve(request);
Variables.failIfNull(data);
UserProfile prof = data.getUserProfile();
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String tmp;
%>
<% if (rdat.useHTMLComments()) { %><!-- Profile for UID #<%= prof.getUID() %> --><% } %>
<% rdat.writeContentHeader(out,"User Profile:",prof.getUserName()); %>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="c2"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>
<%= data.getPhotoTag(rdat) %><BR CLEAR=LEFT><BR>
<% Date tmpd = prof.getCreateDate(); %>
<% if (tmpd!=null) { %>
Account created:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
<% } // end if %>
<% tmpd = prof.getLastLoginDate(); %>
<% if (tmpd!=null) { %>
Last login:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
<% } // end if %>
<% tmpd = prof.getLastUpdate(); %>
<% if (tmpd!=null) { %>
Profile last updated:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
<% } // end if %>
</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><%= StringUtil.encodeHTML(data.getFullName()) %></B><BR>
<% tmp = prof.getEmail(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
E-mail: <A HREF="mailto:<%= tmp %>"><%= StringUtil.encodeHTML(tmp) %></A><BR>
<% } // end if %>
<% tmp = prof.getURL(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
URL: <A HREF="<%= tmp %>" TARGET="Wander"><%= StringUtil.encodeHTML(tmp) %></A><BR>
<% } // end if %><BR>
<% tmp = prof.getCompany(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = prof.getAddressLine1(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = prof.getAddressLine2(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = data.getAddressLastLine(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = prof.getFullCountry(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = prof.getPhone(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Phone: <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = prof.getFax(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Fax: <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
<% tmp = prof.getMobile(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Mobile: <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
</FONT></TD>
</TR>
<% tmp = prof.getDescription(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
<TR VALIGN=TOP><TD ALIGN=CENTER CLASS="content" COLSPAN=2>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<EM><%= StringUtil.encodeHTML(tmp) %></EM>
</FONT>
</TD></TR>
<% } // end if %>
</TABLE>
<% if (prof.canSendQuickEmail()) { %>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>Send Quick E-Mail To
<%= prof.getUserName() %>:</B></FONT><BR>
<FORM METHOD=POST ACTION="<%= rdat.getEncodedServletPath("user/" + prof.getUserName()) %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="E">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Subject: </FONT>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="subj" SIZE=65 MAXLENGTH=255
VALUE=""></SPAN>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content">
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>
</TR>
</TABLE>
</FORM>
<% } // end if %>

View File

@@ -1,142 +0,0 @@
<%--
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.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
ViewCommunityMembers data = ViewCommunityMembers.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Members of Community:",data.getCommunityName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find members of community
"<%= data.getCommunityName() %>":</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
<INPUT TYPE="HIDDEN" NAME="sl" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all community members whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
</SELECT><BR>
<SELECT NAME="mode" SIZE=1>
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
<% if (data.searchModeIs(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
<% if (data.searchModeIs(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
<% if (data.searchModeIs(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="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</DIV></FORM>
<% if (data.displayList()) { %>
<HR>
<%
int dcount = data.getSize();
// Determine the number of results to display and whether to display a "next" button
boolean go_next = false;
if (dcount>data.getNumResultsDisplayed())
{ // there's a "next"
dcount = data.getNumResultsDisplayed();
go_next = true;
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The community members/search results header --%>
<FONT SIZE=+1><B><% if (data.getSimpleList()) { %>Community Members:<% } else { %>Search Results:<% } %></B></FONT>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigops") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getCommunityID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<INPUT TYPE=HIDDEN NAME="sl" VALUE="<%= data.getSimpleListParam() %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getSearchMode() %>">
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getSearchTerm() %>">
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
<% if (data.getOffset()>0) { %>
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
&nbsp;
<% if (go_next) { %>
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
<% } else { %>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</DIV></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>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% UserFound uf = data.getItem(i); %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A><BR>
<%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,
from <%= StringUtil.encodeHTML(uf.getLocality()) %>, <%= StringUtil.encodeHTML(uf.getRegion()) %>
<%= uf.getCountry() %>
<% if (data.isCommunityAdmin(uf)) { %>
<IMG SRC="<%= rdat.getFullImagePath("tag_host.gif") %>" ALT="Host!" HSPACE=2 VSPACE=0 BORDER=0
WIDTH=40 HEIGHT=20 ALIGN=BOTTOM>
<% } // end if %>
<% if (uf.getDescription()!=null) { %><BR><EM><%= StringUtil.encodeHTML(uf.getDescription()) %></EM><% } %>
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><BR CLEAR=LEFT>
<% } // end if %>

BIN
web/images/gelcap/add.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
web/images/gelcap/find.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
web/images/gelcap/go.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
web/images/gelcap/hide.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
web/images/gelcap/login.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
web/images/gelcap/no.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
web/images/gelcap/nuke.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
web/images/gelcap/ok.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
web/images/gelcap/post.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Some files were not shown because too many files have changed in this diff Show More