<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>
<%-- @(#)display.jsp --%>
<%@ taglib uri="/tld/desktop.tld" prefix="dt" %>
<%@ taglib uri="/tld/jx.tld" prefix="jx" %>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<!-- Beginning of about search results -->
<search:getNoHits id= "noHits"/>

<jx:choose>
<jx:when test="$noHits">
    <!-- About search results --> 
    <tr>
    <td colspan="3"<font color="<%=tBorderColor%>" face="<%=tFontFace%>" size="-1"><b>No discussions found.</b></font><b>
    </td></tr>
</jx:when> 
<jx:otherwise> 
    <!-- Display Results --> 
    <search:getResult id="resultstream"/> 
    <tr>
	<td colspan="3">
    <search:getNextResult input="$resultstream">
	<LI>
	<font size=-1>
	<search:getURL id="url"/>
	<jx:declare id="url" type="java.lang.String"/>
	<a target="ps_main" href="<%=desktopPathInfo%>?last=false&Discussions_dmode=vl&did=<%=Encoder.urlEncode(url)%>"><B><search:getValue attribute="title" escape="true" truncate="28"/></B></a>
	<search:getValue attribute="rd-last-changed" id="lastPost"/>
        <jx:declare id="lastPost" type="java.lang.String"/>

	<jx:if test="$lastPost != ''">
	    <% 
	    DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);
	    try { 
		Date d = DateParser.parse(lastPost); %>
	        - <%=df.format(d)%>
            <% } catch (Exception e) { } %>
	</jx:if>
	</font>
    </search:getNextResult> 
	</td>
    </tr>
</jx:otherwise>
</jx:choose>
<tr><td colspan="3"><img src="<dt:scontent/>/images/spacer.gif" height="20" alt=""></td>

<tr>
<td align="center"><font size="-1"><a target="ps_main" href= "<%=desktopPathInfo%>?Discussions_dmode=full">All Discussions</a></font>
</td>

<td><img src="<dt:scontent/>/images/spacer.gif" alt=""></td>

<td align=center><font size="-1"><a target="ps_main" href= "<%=desktopPathInfo%>?Discussions_dmode=cmt">New Discussion</a></font>
</td>
</tr>
</table>
