fixed bug in posting Find forms
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
<% } // end if %>
|
||||
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
|
||||
<INPUT TYPE="HIDDEN" NAME="fcount" VALUE="-1">
|
||||
<INPUT TYPE="HIDDEN" NAME="newsearch" VALUE="1"><%-- EJB 1/18/2002 --%>
|
||||
<util:font color="content.fg" size="content">
|
||||
Keywords: <SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=64 MAXLENGTH=255
|
||||
VALUE="<%= view.getTerm() %>"></SPAN>
|
||||
@@ -68,7 +69,6 @@
|
||||
<util:button id="search" type="input"/>
|
||||
</DIV></util:form><P>
|
||||
|
||||
|
||||
<% List results = view.getResults(); %>
|
||||
<% if (results!=null) { %>
|
||||
<util:comment>Display Search Results</util:comment>
|
||||
@@ -109,6 +109,7 @@
|
||||
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= view.getTerm() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= view.getOffset() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= view.getFindCount() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="newsearch" VALUE="0"><%-- EJB 1/18/2002 --%>
|
||||
<% if (view.getOffset()>0) { %>
|
||||
<util:button id="previous" type="input"/>
|
||||
<% } else { %>
|
||||
@@ -125,44 +126,49 @@
|
||||
</TD>
|
||||
</TR></TABLE><BR>
|
||||
|
||||
<%-- Display the results of the search --%>
|
||||
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=6>
|
||||
<TR VALIGN=TOP>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Post Link</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Author</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Post Date</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Lines</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT"> </TH>
|
||||
</TR>
|
||||
<% for (int i=0; i<dcount; i++) { %>
|
||||
<% if (results.size()>0) { %><%-- EJB 1/18/2002 - omit headers if there's nothing to say --%>
|
||||
<%-- Display the results of the search --%>
|
||||
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=6>
|
||||
<TR VALIGN=TOP>
|
||||
<% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
|
||||
<util:href type="servlet">go/<%= post.getIdentifier() %></util:href>
|
||||
<util:text><%= post.getIdentifier() %></util:text>
|
||||
</util:xlink></util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
|
||||
<util:href type="servlet">user/<%= post.getAuthor() %></util:href>
|
||||
<util:text><%= post.getAuthor() %></util:text>
|
||||
</util:xlink></util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
|
||||
<%= view.formatDate(post.getPostDate()) %>
|
||||
</util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
||||
<%= post.getLineCount() %>
|
||||
</util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
||||
<util:escape><%= post.getText() %></util:escape>
|
||||
</util:font></TD>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Post Link</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Author</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Post Date</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT">
|
||||
<util:font color="content.fg" size="content"><B><U>Lines</U></B></util:font>
|
||||
</TH>
|
||||
<TH ALIGN=LEFT CLASS="CONTENT"> </TH>
|
||||
</TR>
|
||||
<% } // end for %>
|
||||
</TABLE><BR CLEAR=LEFT>
|
||||
<% for (int i=0; i<dcount; i++) { %>
|
||||
<TR VALIGN=TOP>
|
||||
<% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
|
||||
<util:href type="servlet">go/<%= post.getIdentifier() %></util:href>
|
||||
<util:text><%= post.getIdentifier() %></util:text>
|
||||
</util:xlink></util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content"><util:xlink>
|
||||
<util:href type="servlet">user/<%= post.getAuthor() %></util:href>
|
||||
<util:text><%= post.getAuthor() %></util:text>
|
||||
</util:xlink></util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
|
||||
<%= view.formatDate(post.getPostDate()) %>
|
||||
</util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
||||
<%= post.getLineCount() %>
|
||||
</util:font></TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
||||
<util:escape><%= post.getText() %></util:escape>
|
||||
</util:font></TD>
|
||||
</TR>
|
||||
<% } // end for %>
|
||||
</TABLE><BR CLEAR=LEFT>
|
||||
<% } // end if %>
|
||||
<% } // end if %>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user