<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>
<%-- @(#)browseSearchResults.jsp  --%>
<%@page language= "java" import="com.sun.portal.search.providers.*,
				 com.sun.portal.search.util.Encoder,
				 java.util.StringTokenizer,
				 com.iplanet.sso.SSOTokenManager,
				 com.iplanet.sso.SSOToken, 
				 com.iplanet.am.sdk.AMStoreConnection, 
				 com.iplanet.sso.SSOException, 
				 com.iplanet.am.sdk.AMUser" %>

<%@ taglib uri="/tld/search.tld" prefix="search" %>
<%@ taglib uri="/tld/jx.tld" prefix="jx" %>

<jsp:useBean id="formbean" scope="request" class="SearchRequestBean">
<jsp:setProperty name="formbean" property= "*"/>
</jsp:useBean>

<%-- declare all UI related variables --%>
<jx:declare id="tFontColor" type="java.lang.String"/>
<jx:declare id="tFontFace" type="java.lang.String"/>
<jx:declare id="tBgColor" type="java.lang.String"/>

<search:getHeader attribute="taxonomy-id" escape="true" id="taxid"/>
<jx:if test='$taxid == ""'><jx:set var="taxid" value="Home"/></jx:if>

<search:getNoHits id= "noHits"/>
<jx:choose>
<jx:when test="$noHits">
    <!-- Beginning of about search results --> 
    <search:getPage id="pg"/>
    <FONT face="<%=tFontFace%>" size="-1"><b>No <jx:if test="$pg != 1">more </jx:if>category matches.</b></font><br>
    <!-- End of about search results --> 
</jx:when> 
<jx:otherwise> 
    <!-- Beginning of about search results --> 
    <FONT color="<%=tFontColor%>" face="<%=tFontFace%>" size="-1"><b>Category matches <search:getFirstHit/> - <search:getToHit/> (of <search:getHitCount/>)</B></FONT><br>
    <!-- End of about search results -->

    <!-- Beginning of display results -->
    <table border=0 cellpadding=0 cellspacing=5><tr><td>
    <search:getResult id="resultstream"/>
    <search:getNextResult input="$resultstream"><A class="noUnderline" HREF="javascript:document.searchform.browseCategory.value=&quot;<search:getValue attribute="id" escape="true"/>&quot;;document.searchform.scope.value='';document.searchform.mode.value='browse';document.searchform.submit();"><font face="<%=tFontFace%>"><b><search:getValue attribute="id" escape="true"/></b></font></A>
		<search:getValue attribute="id" escape="true" id="browseCategory"/>
		<jx:declare id="browseCategory" type="java.lang.String"/>
		<BR>
    </search:getNextResult>
    </td></tr></table>
    <!-- End of display results -->

</jx:otherwise> 
</jx:choose> 
