- <% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
- <% if (rdat.useHTMLComments()) { %><% } %>
- <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Communities:
+ <% if (data.getDisplayOption()==FindData.FD_POSTS) { %>
+ <% if (rdat.useHTMLComments()) { %><% } %>
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Posts:
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
- Display all communities whose
-
-
- <% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
- <% if (rdat.useHTMLComments()) { %><% } %>
- <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Users:
- <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
- Display all users whose
-
-
- <% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
- <% if (rdat.useHTMLComments()) { %><% } %>
- <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Categories:
- <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
- Display all categories whose name
-
+ Keywords:
+
+
<% } else { %>
- <%-- shouldn't get here --%>
-
Display parameter invalid!
- <% } // end if %>
+ <% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
+ <% if (rdat.useHTMLComments()) { %><% } %>
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Communities:
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ Display all communities whose
+
-
- <% if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
<% } else { %> <% } %>
-
+ <% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
+ <% if (rdat.useHTMLComments()) { %><% } %>
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Users:
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ Display all users whose
+
+
+ <% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
+ <% if (rdat.useHTMLComments()) { %><% } %>
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %>
Find Categories:
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ Display all categories whose name
+
+ <% } else { %>
+ <%-- shouldn't get here --%>
+
Display parameter invalid!
+ <% } // end if %>
+
+
+ <% if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
<% } else { %> <% } %>
+
+
+ <% } // end if %>
"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0>
@@ -206,46 +217,82 @@
<%-- Display the results of the search --%>
-
+
+ <% if ((data.getDisplayOption()==FindData.FD_POSTS) && (results.size()>0)) { %>
+
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Post Link
+ |
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Author
+ |
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Post Date
+ |
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Lines
+ |
+ |
+
+ <% } // end if %>
<% for (int i=0; i
-
- " ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
- |
- <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
- <% Object item = results.get(i); %>
- <% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
- <%
- CommunityContext comm = (CommunityContext)item;
- String host_name = FindData.getCommunityHostName(comm);
- int members = FindData.getCommunityMemberCount(comm);
- %>
- "><%= StringUtil.encodeHTML(comm.getName()) %>
- <% if (host_name!=null) { %>
- Host: "><%= host_name %>
- <% } // end if (got host name) %>
- <% if (members>=0) { %>
- <% if (host_name!=null) { %> - <% } %>
- <%= members %> members
- <% } // end if (got member count) %>
- <% if ((host_name!=null) || (members>=0)) { %> <% } %>
- Latest activity: <%= FindData.getActivityString(comm,rdat) %>
- <%= StringUtil.encodeHTML(comm.getSynopsis()) %>
+ <% if (data.getDisplayOption()==FindData.FD_POSTS) { %>
+ <% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
+ | <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ "><%= post.getIdentifier() %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ "><%= post.getAuthor() %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <%= rdat.formatDateForDisplay(post.getPostDate()) %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <%= post.getLineCount() %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <%= StringUtil.encodeHTML(post.getText()) %>
+ |
+ <% } else { %>
+
+ " ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <% Object item = results.get(i); %>
+ <% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
+ <%
+ CommunityContext comm = (CommunityContext)item;
+ String host_name = FindData.getCommunityHostName(comm);
+ int members = FindData.getCommunityMemberCount(comm);
+ %>
+ "><%= StringUtil.encodeHTML(comm.getName()) %>
+ <% if (host_name!=null) { %>
+ Host: "><%= host_name %>
+ <% } // end if (got host name) %>
+ <% if (members>=0) { %>
+ <% if (host_name!=null) { %> - <% } %>
+ <%= members %> members
+ <% } // end if (got member count) %>
+ <% if ((host_name!=null) || (members>=0)) { %> <% } %>
+ Latest activity: <%= FindData.getActivityString(comm,rdat) %>
+ <%= StringUtil.encodeHTML(comm.getSynopsis()) %>
- <% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
- <% UserFound uf = (UserFound)item; %>
- "><%= uf.getName() %>
- <%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,
- from <%= StringUtil.encodeHTML(uf.getLocality()) %>, <%= StringUtil.encodeHTML(uf.getRegion()) %>
- <%= uf.getCountry() %>
- <% if (uf.getDescription()!=null) { %> <%= StringUtil.encodeHTML(uf.getDescription()) %><% } %>
+ <% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
+ <% UserFound uf = (UserFound)item; %>
+ "><%= uf.getName() %>
+ <%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,
+ from <%= StringUtil.encodeHTML(uf.getLocality()) %>, <%= StringUtil.encodeHTML(uf.getRegion()) %>
+ <%= uf.getCountry() %>
+ <% if (uf.getDescription()!=null) { %> <%= StringUtil.encodeHTML(uf.getDescription()) %><% } %>
- <% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
- <% CategoryDescriptor cd = (CategoryDescriptor)item; %>
- <%= StringUtil.encodeHTML(cd.toString()) %>
+ <% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
+ <% CategoryDescriptor cd = (CategoryDescriptor)item; %>
+ <%= StringUtil.encodeHTML(cd.toString()) %>
- <% } %>
- |
+ <% } // end if%>
+
+ <% } // end if %>
<% } // end for %>
diff --git a/web/format/findpost.jsp b/web/format/findpost.jsp
new file mode 100644
index 0000000..0955f0a
--- /dev/null
+++ b/web/format/findpost.jsp
@@ -0,0 +1,135 @@
+<%--
+ 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.*" %>
+<%
+ FindPostData data = FindPostData.retrieve(request);
+ Variables.failIfNull(data);
+ RenderData rdat = RenderConfig.createRenderData(application,request,response);
+%>
+<% if (rdat.useHTMLComments()) { %><% } %>
+<% rdat.writeContentHeader(out,"Find Posts",data.getSubtitle()); %>
+<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><%= data.getReturnLink(rdat) %>
+
+
+
+<% List results = data.getResults(); %>
+<% if (results!=null) { %>
+ <% if (rdat.useHTMLComments()) { %><% } %>
+ <%
+ // Determine the number of results to display and whether to display a "next" button
+ int dcount = results.size();
+ boolean go_next = false;
+ if (dcount>data.getMaxResults())
+ { // there's a "next"
+ dcount = data.getMaxResults();
+ go_next = true;
+
+ } // end if
+ %>
+
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
+ <%-- The initial search results --%>
+ Search Results
+ <% if (data.getFindCount()>0) { %>
+ (Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
+ <%= data.getFindCount() %>)
+ <% } else { %>(None)<% } %>
+ |
+
+
+ <% if (go_next || (data.getOffset()>0)) { %>
+ <%-- The navigational form that allows us to page through the results --%>
+ <% if (rdat.useHTMLComments()) { %><% } %>
+
+ <% } else { %> <% } %>
+ |
+
+
+ <%-- Display the results of the search --%>
+
+
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Post Link
+ |
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Author
+ |
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Post Date
+ |
+
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Lines
+ |
+ |
+
+ <% for (int i=0; i
+
+ <% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ "><%= post.getIdentifier() %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ "><%= post.getAuthor() %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <%= rdat.formatDateForDisplay(post.getPostDate()) %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <%= post.getLineCount() %>
+ |
+ <%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
+ <%= StringUtil.encodeHTML(post.getText()) %>
+ |
+
+ <% } // end for %>
+
+<% } // end if %>
diff --git a/web/format/posts.jsp b/web/format/posts.jsp
index 483b89f..c99b748 100644
--- a/web/format/posts.jsp
+++ b/web/format/posts.jsp
@@ -69,6 +69,9 @@
<% } // end if %>
<% } // end if %>
+ ">" ALT="Find" WIDTH=80 HEIGHT=24
+ BORDER=0>
">" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0>
diff --git a/web/format/topics.jsp b/web/format/topics.jsp
index a79ffb4..646a9e9 100644
--- a/web/format/topics.jsp
+++ b/web/format/topics.jsp
@@ -47,6 +47,9 @@
SRC="<%= rdat.getFullImagePath("bn_read_new.gif") %>" ALT="Read New" WIDTH=80 HEIGHT=24
BORDER=0>
<% } // end if %>
+ ">" ALT="Find" WIDTH=80 HEIGHT=24
+ BORDER=0>
">" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0>
diff --git a/web/images/bn_find.gif b/web/images/bn_find.gif
new file mode 100644
index 0000000..25c47f5
Binary files /dev/null and b/web/images/bn_find.gif differ