<%-- 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-02 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); %> Find Posts <% if (view.getTopic()!=null) { %> in Topic: <%= view.getTopic().getName() %> <% } else if (view.getConference()!=null) { %> in Conference: <%= view.getConference().getName() %> <% } else { %> in Community: <%= view.getCommunity().getName() %> <% } // end if %> <% if (view.getTopic()!=null) { %> conf/posts.js.vs?cc=<%= view.getCommunity().getCommunityID() %>&conf=<%= view.getConference().getConfID() %>&top=<%= view.getTopic().getTopicNumber() %> Return to Topic <% } else if (view.getConference()!=null) { %> conf/topics.js.vs?cc=<%= view.getCommunity().getCommunityID() %>&conf=<%= view.getConference().getConfID() %> Return to Topic List <% } else { %> conf/conferences.js.vs?cc=<%= view.getCommunity().getCommunityID() %> Return to Conference List <% } // end if %>

<% if (view.getConference()!=null) { %> <% if (view.getTopic()!=null) { %> <% } // end if %> <% } // end if %> Keywords:

<% List results = view.getResults(); %> <% if (results!=null) { %> Display Search Results <% // Determine the number of results to display and whether to display a "next" button int dcount = results.size(); boolean go_next = false; if (dcount>view.getMaxResults()) { // there's a "next" dcount = view.getMaxResults(); go_next = true; } // end if %>


<%-- The initial search results --%> Search Results <% if (view.getFindCount()>0) { %> (Displaying <%= view.getOffset() + 1 %>-<%= view.getOffset() + dcount %> of <%= view.getFindCount() %>) <% } else { %>(None)<% } %> <% if (go_next || (view.getOffset()>0)) { %> <%-- The navigational form that allows us to page through the results --%> Navigational form
<% if (view.getConference()!=null) { %> <% if (view.getTopic()!=null) { %> <% } // end if %> <% } // end if %> <% if (view.getOffset()>0) { %> <% } else { %> <% } // end if %>    <% if (go_next) { %> <% } else { %> <% } // end if %>
<% } else { %> <% } %>

<%-- Display the results of the search --%> <% for (int i=0; i <% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %> <% } // end for %>
Post Link Author Post Date Lines  
go/<%= post.getIdentifier() %> <%= post.getIdentifier() %> user/<%= post.getAuthor() %> <%= post.getAuthor() %> <%= view.formatDate(post.getPostDate()) %> <%= post.getLineCount() %> <%= post.getText() %>

<% } // end if %>