2001-02-05 21:50:04 -07:00
|
|
|
<%--
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
|
|
(the "License"); you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
|
|
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
|
|
|
language governing rights and limitations under the License.
|
|
|
|
|
|
|
|
The Original Code is the Venice Web Communities System.
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
|
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
|
|
|
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
--%>
|
|
|
|
<%@ page import = "java.util.*" %>
|
|
|
|
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.core.*" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
|
|
|
<%
|
|
|
|
TopicListing data = TopicListing.retrieve(request);
|
|
|
|
Variables.failIfNull(data);
|
|
|
|
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
2001-02-07 14:12:38 -07:00
|
|
|
String self = "confdisp?" + data.getLocator();
|
2001-02-05 21:50:04 -07:00
|
|
|
String tmp;
|
|
|
|
%>
|
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- Topic list for conf #<%= data.getConfID() %> --><% } %>
|
2001-02-09 02:10:46 -07:00
|
|
|
<% rdat.writeContentHeader(out,"Topics in " + data.getConfName(),null); %>
|
2001-02-05 21:50:04 -07:00
|
|
|
<%= rdat.getStdFontTag(null,2) %>
|
|
|
|
<DIV ALIGN="LEFT">
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath("confops?sig=" + data.getSIGID()) %>"><IMG
|
2001-02-05 21:50:04 -07:00
|
|
|
SRC="<%= rdat.getFullImagePath("bn_conference_list.gif") %>" ALT="Conference List" WIDTH=80 HEIGHT=24
|
2001-02-11 18:50:10 -07:00
|
|
|
BORDER=0></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% if (data.canCreateTopic()) { %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<% tmp = rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=T"); %>
|
|
|
|
<A HREF="<%= tmp %>"><IMG SRC="<%= rdat.getFullImagePath("bn_add_topic.gif") %>" ALT="Add Topic"
|
2001-02-11 18:50:10 -07:00
|
|
|
WIDTH=80 HEIGHT=24 BORDER=0></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<% if (data.canDoReadNew()) { %>
|
2001-02-09 02:10:46 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getNextLocator() + "&rnm=1") %>"><IMG
|
2001-02-07 14:12:38 -07:00
|
|
|
SRC="<%= rdat.getFullImagePath("bn_read_new.gif") %>" ALT="Read New" WIDTH=80 HEIGHT=24
|
2001-02-11 18:50:10 -07:00
|
|
|
BORDER=0></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
2001-02-16 23:51:40 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>"><IMG
|
2001-02-11 18:50:10 -07:00
|
|
|
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
|
|
|
|
BORDER=0></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% if (data.canAddToHotlist()) { %>
|
2001-02-16 23:51:40 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=H") %>"><IMG
|
|
|
|
SRC="<%= rdat.getFullImagePath("bn_add_to_hotlist.gif") %>" ALT="Add to HotList" WIDTH=80
|
|
|
|
HEIGHT=24 BORDER=0></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
</DIV>
|
|
|
|
<% if (data.anyTopics()) { %>
|
|
|
|
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=3>
|
|
|
|
<TR VALIGN=TOP>
|
|
|
|
<TD ALIGN=LEFT WIDTH="1%"><%= rdat.getStdFontTag(null,2) %>
|
|
|
|
<% tmp = self + "&sort="
|
2001-02-10 00:20:27 -07:00
|
|
|
+ (data.isSort(ConferenceContext.SORT_NUMBER) ? -ConferenceContext.SORT_NUMBER
|
|
|
|
: ConferenceContext.SORT_NUMBER); %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">#</A></B>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
|
|
|
<% tmp = self + "&sort="
|
2001-02-10 00:20:27 -07:00
|
|
|
+ (data.isSort(ConferenceContext.SORT_NAME) ? -ConferenceContext.SORT_NAME
|
|
|
|
: ConferenceContext.SORT_NAME); %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Topic Name</A></B>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
|
|
|
|
<% tmp = self + "&sort="
|
2001-02-10 00:20:27 -07:00
|
|
|
+ (data.isSort(ConferenceContext.SORT_UNREAD) ? -ConferenceContext.SORT_UNREAD
|
|
|
|
: ConferenceContext.SORT_UNREAD); %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">New</A></B>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
|
|
|
|
<% tmp = self + "&sort="
|
2001-02-10 00:20:27 -07:00
|
|
|
+ (data.isSort(ConferenceContext.SORT_TOTAL) ? -ConferenceContext.SORT_TOTAL
|
|
|
|
: ConferenceContext.SORT_TOTAL); %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Total</A></B>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
|
|
|
<% tmp = self + "&sort="
|
2001-02-10 00:20:27 -07:00
|
|
|
+ (data.isSort(ConferenceContext.SORT_DATE) ? -ConferenceContext.SORT_DATE
|
|
|
|
: ConferenceContext.SORT_DATE); %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Last Response</A></B>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP><TD ALIGN=LEFT COLSPAN=5><%= rdat.getStdFontTag(null,2) %> </FONT></TD></TR>
|
|
|
|
<% Iterator it = data.getTopicIterator(); %>
|
|
|
|
<% while (it.hasNext()) { %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<%
|
|
|
|
TopicContext topic = (TopicContext)(it.next());
|
2001-02-10 00:20:27 -07:00
|
|
|
tmp = self + "&top=" + topic.getTopicNumber() + "&rnm=1";
|
2001-02-07 14:12:38 -07:00
|
|
|
%>
|
2001-02-05 21:50:04 -07:00
|
|
|
<TR VALIGN=TOP>
|
|
|
|
<TD ALIGN=LEFT WIDTH="1%"><%= rdat.getStdFontTag(null,2) %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getTopicNumber() %></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getName() %></A>
|
|
|
|
<% if (topic.isArchived() && !(data.isView(ConferenceContext.DISPLAY_ARCHIVED))) { %>
|
|
|
|
<EM>(archived)</EM>
|
|
|
|
<% } else if (topic.isFrozen()) { %>
|
|
|
|
<EM>(frozen)</EM>
|
|
|
|
<% } // end if %>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getUnreadMessages() %></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(self + "&top=" + topic.getTopicNumber()
|
2001-02-07 14:12:38 -07:00
|
|
|
+ "&p1=0&p2=-1") %>"><%= topic.getTotalMessages() %></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
2001-02-07 14:12:38 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= rdat.formatDateForDisplay(topic.getLastUpdateDate()) %></A>
|
2001-02-05 21:50:04 -07:00
|
|
|
</FONT></TD>
|
|
|
|
</TR>
|
|
|
|
<% } // end while (more topics in enumeration) %>
|
|
|
|
</TABLE><P>
|
|
|
|
<% } else { %>
|
|
|
|
<%
|
|
|
|
switch (data.getViewOption())
|
|
|
|
{
|
|
|
|
case ConferenceContext.DISPLAY_NEW:
|
|
|
|
%>
|
|
|
|
<EM>No topics with unread messages found.</EM>
|
|
|
|
<%
|
|
|
|
break;
|
|
|
|
case ConferenceContext.DISPLAY_ACTIVE:
|
|
|
|
case ConferenceContext.DISPLAY_ALL:
|
|
|
|
%>
|
|
|
|
<EM>No active topics found.</EM>
|
|
|
|
<%
|
|
|
|
break;
|
|
|
|
case ConferenceContext.DISPLAY_HIDDEN:
|
|
|
|
%>
|
|
|
|
<EM>No hidden topics found.</EM>
|
|
|
|
<%
|
|
|
|
break;
|
|
|
|
case ConferenceContext.DISPLAY_ARCHIVED:
|
|
|
|
%>
|
|
|
|
<EM>No archived topics found.</EM>
|
|
|
|
<%
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
%>
|
|
|
|
<EM>Invalid display option selected.</EM>
|
|
|
|
<%
|
|
|
|
break;
|
|
|
|
} // end switch
|
|
|
|
%>
|
|
|
|
<P>
|
|
|
|
<% } // end if %>
|
|
|
|
<DIV ALIGN="CENTER">
|
|
|
|
<B>[</B>
|
|
|
|
<% if (data.isView(ConferenceContext.DISPLAY_NEW)) { %>
|
|
|
|
<B>New</B>
|
|
|
|
<% } else { %>
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(self + "&view=" + ConferenceContext.DISPLAY_NEW) %>">New</A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<B>|</B>
|
|
|
|
<% if (data.isView(ConferenceContext.DISPLAY_ACTIVE)) { %>
|
|
|
|
<B>Active</B>
|
|
|
|
<% } else { %>
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(self + "&view="
|
|
|
|
+ ConferenceContext.DISPLAY_ACTIVE) %>">Active</A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<B>|</B>
|
|
|
|
<% if (data.isView(ConferenceContext.DISPLAY_ALL)) { %>
|
|
|
|
<B>All</B>
|
|
|
|
<% } else { %>
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(self + "&view=" + ConferenceContext.DISPLAY_ALL) %>">All</A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<B>|</B>
|
|
|
|
<% if (data.isView(ConferenceContext.DISPLAY_HIDDEN)) { %>
|
|
|
|
<B>Hidden</B>
|
|
|
|
<% } else { %>
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(self + "&view="
|
|
|
|
+ ConferenceContext.DISPLAY_HIDDEN) %>">Hidden</A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<B>|</B>
|
|
|
|
<% if (data.isView(ConferenceContext.DISPLAY_ARCHIVED)) { %>
|
|
|
|
<B>Archived</B>
|
|
|
|
<% } else { %>
|
2001-02-10 00:20:27 -07:00
|
|
|
<A HREF="<%= rdat.getEncodedServletPath(self + "&view="
|
|
|
|
+ ConferenceContext.DISPLAY_ARCHIVED) %>">Archived</A>
|
2001-02-05 21:50:04 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<B>]</B>
|
|
|
|
</DIV>
|
|
|
|
</FONT>
|