<%-- 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 . 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 , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --%> <%@ page import = "java.util.*" %> <%@ page import = "com.silverwrist.util.StringUtil" %> <%@ page import = "com.silverwrist.venice.core.*" %> <%@ page import = "com.silverwrist.venice.servlets.Variables" %> <%@ page import = "com.silverwrist.venice.servlets.format.*" %> <% TopicListing data = TopicListing.retrieve(request); Variables.failIfNull(data); RenderData rdat = RenderConfig.createRenderData(application,request,response); String self = "confdisp?" + data.getLocator(); String tmp; %> <% if (rdat.useHTMLComments()) { %><% } %> <% rdat.writeContentHeader(out,"Topics in " + data.getConfName(),null); %> <%= rdat.getStdFontTag(null,2) %>
" ALT="Conference List" WIDTH=80 HEIGHT=24 BORDER=0>  <% if (data.canCreateTopic()) { %> <% tmp = rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=T"); %> " ALT="Add Topic" WIDTH=80 HEIGHT=24 BORDER=0>  <% } // end if %> <% if (data.canDoReadNew()) { %> ">" ALT="Read New" WIDTH=80 HEIGHT=24 BORDER=0>  <% } // end if %> ">" ALT="Manage" WIDTH=80 HEIGHT=24 BORDER=0>  <% if (data.canAddToHotlist()) { %> " ALT="Add to HotList" WIDTH=80 HEIGHT=24 BORDER=0>  <% } // end if %>
<% if (data.anyTopics()) { %> <% Iterator it = data.getTopicIterator(); %> <% while (it.hasNext()) { %> <% TopicContext topic = (TopicContext)(it.next()); tmp = self + "&top=" + topic.getTopicNumber() + "&rnm=1"; %> <% } // end while (more topics in enumeration) %>
<%= rdat.getStdFontTag(null,2) %> <% tmp = self + "&sort=" + (data.isSort(ConferenceContext.SORT_NUMBER) ? -ConferenceContext.SORT_NUMBER : ConferenceContext.SORT_NUMBER); %> # <%= rdat.getStdFontTag(null,2) %> <% tmp = self + "&sort=" + (data.isSort(ConferenceContext.SORT_NAME) ? -ConferenceContext.SORT_NAME : ConferenceContext.SORT_NAME); %> Topic Name <%= rdat.getStdFontTag(null,2) %> <% tmp = self + "&sort=" + (data.isSort(ConferenceContext.SORT_UNREAD) ? -ConferenceContext.SORT_UNREAD : ConferenceContext.SORT_UNREAD); %> New <%= rdat.getStdFontTag(null,2) %> <% tmp = self + "&sort=" + (data.isSort(ConferenceContext.SORT_TOTAL) ? -ConferenceContext.SORT_TOTAL : ConferenceContext.SORT_TOTAL); %> Total <%= rdat.getStdFontTag(null,2) %> <% tmp = self + "&sort=" + (data.isSort(ConferenceContext.SORT_DATE) ? -ConferenceContext.SORT_DATE : ConferenceContext.SORT_DATE); %> Last Response
<%= rdat.getStdFontTag(null,2) %> 
<%= rdat.getStdFontTag(null,2) %> <%= topic.getTopicNumber() %>   <%= rdat.getStdFontTag(null,2) %> <%= topic.getName() %> <% if (topic.isArchived() && !(data.isView(ConferenceContext.DISPLAY_ARCHIVED))) { %> (archived) <% } else if (topic.isFrozen()) { %> (frozen) <% } // end if %> <%= rdat.getStdFontTag(null,2) %> <%= topic.getUnreadMessages() %> <%= rdat.getStdFontTag(null,2) %> "><%= topic.getTotalMessages() %> <%= rdat.getStdFontTag(null,2) %> <%= rdat.formatDateForDisplay(topic.getLastUpdateDate()) %>

<% } else { %> <% switch (data.getViewOption()) { case ConferenceContext.DISPLAY_NEW: %> No topics with unread messages found. <% break; case ConferenceContext.DISPLAY_ACTIVE: case ConferenceContext.DISPLAY_ALL: %> No active topics found. <% break; case ConferenceContext.DISPLAY_HIDDEN: %> No hidden topics found. <% break; case ConferenceContext.DISPLAY_ARCHIVED: %> No archived topics found. <% break; default: %> Invalid display option selected. <% break; } // end switch %>

<% } // end if %>

[ <% if (data.isView(ConferenceContext.DISPLAY_NEW)) { %> New <% } else { %> New <% } // end if %> | <% if (data.isView(ConferenceContext.DISPLAY_ACTIVE)) { %> Active <% } else { %> Active <% } // end if %> | <% if (data.isView(ConferenceContext.DISPLAY_ALL)) { %> All <% } else { %> All <% } // end if %> | <% if (data.isView(ConferenceContext.DISPLAY_HIDDEN)) { %> Hidden <% } else { %> Hidden <% } // end if %> | <% if (data.isView(ConferenceContext.DISPLAY_ARCHIVED)) { %> Archived <% } else { %> Archived <% } // end if %> ]
<% rdat.writeFooter(out); %>