Merge of the NewUI changes into the trunk

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

View File

@@ -0,0 +1,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

@@ -0,0 +1,42 @@
<%--
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);
CurrentConference currc = CurrentConference.get(request);
%>
<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>
<util:form action="conf/upload_attachment.js.vs" type="servlet" isfile="true">
<DIV CLASS="content">
<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>
<util:button id="upload" type="input"/>
</DIV>
</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>

82
web/format/conf/email.jsp Normal file
View File

@@ -0,0 +1,82 @@
<%--
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>E-mail to conference "<conf:name/>"</util:comment>
<util:header title="Conference E-Mail:">
<util:subtitle><conf:name/></util:subtitle>
</util:header>
<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><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>
</SELECT>
&nbsp;topic:&nbsp;
<SELECT NAME="top" SIZE="1">
<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>
</util:font></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD>&nbsp;</TD>
<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)
</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>

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