<%-- 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-2004 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(); %> Topic list for conference "" Topics in <%= view.getRequestAttribute("conference.custom.top").toString() %>
conf/conferences.js.vs?<%= base_locator %>   conf/new_topic.js.vs?<%= base_locator %>   <% final String rnew = (String)(view.getRequestAttribute("conference.readnew")); %> <% if (rnew!=null) { %> <%= rnew %>   <% } // end if %> conf/find.js.vs?<%= base_locator %>   conf/manage_conf.js.vs?<%= base_locator %>   conf/add_to_hotlist.js.vs?<%= base_locator %>  
<%= view.getPageQID() %> [Permalink to this conference]
<% out.flush(); response.flushBuffer(); %> <% final List topics = (List)(view.getRequestAttribute("topics.list")); %> <% if (topics.size()>0) { %> <% out.flush(); response.flushBuffer(); %> <% for (Iterator it=topics.iterator(); it.hasNext(); ) { TopicContext topic = (TopicContext)(it.next()); short num = topic.getTopicNumber(); String my_locator = base_locator + "&top=" + num; %> <% out.flush(); response.flushBuffer(); } // end for (all topics in enumeration) %>
conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_NUMBER) ? -SORT_NUMBER : SORT_NUMBER) %> #    conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_NAME) ? -SORT_NAME : SORT_NAME) %> Topic Name conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_UNREAD) ? -SORT_UNREAD : SORT_UNREAD) %> New conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_TOTAL) ? -SORT_TOTAL : SORT_TOTAL) %> Total conf/topics.js.vs?<%= base_locator %>&sort=<%= ((sort_opt==SORT_DATE) ? -SORT_DATE : SORT_DATE) %> Last Response
 
conf/posts.js.vs?<%= my_locator %>&rnm=1 <%= num %>    conf/posts.js.vs?<%= my_locator %>&rnm=1 <%= topic.getName() %> <% if (topic.isSticky()) { %> (sticky) <% } // end if %> <% if (topic.isArchived() && (view_opt!=DISPLAY_ARCHIVED)) { %> (archived) <% } else if (topic.isFrozen()) { %> (frozen) <% } // end if %> conf/posts.js.vs?<%= my_locator %>&rnm=1 <%= topic.getUnreadMessages() %> conf/posts.js.vs?<%= my_locator %>&p1=0&p2=-1 <%= topic.getTotalMessages() %> conf/posts.js.vs?<%= my_locator %>&rnm=1 <%= view.formatDate(topic.getLastUpdateDate()) %>

<% } else { %> <% 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 %>

<% } // end if %> <% out.flush(); response.flushBuffer(); %>

[ <% if (view_opt==DISPLAY_NEW) { %> New <% } else { %> conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_NEW %> New <% } // end if %> | <% if (view_opt==DISPLAY_ACTIVE) { %> Active <% } else { %> conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_ACTIVE %> Active <% } // end if %> | <% if (view_opt==DISPLAY_ALL) { %> All <% } else { %> conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_ALL %> All <% } // end if %> | <% if (view_opt==DISPLAY_HIDDEN) { %> Hidden <% } else { %> conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_HIDDEN %> Hidden <% } // end if %> | <% if (view_opt==DISPLAY_ARCHIVED) { %> Archived <% } else { %> conf/topics.js.vs?<%= base_locator %>&view=<%= DISPLAY_ARCHIVED %> Archived <% } // end if %> ]
<%= view.getRequestAttribute("conference.custom.bottom").toString() %> <%-- EOF --%>