<%@page contentType="text/html; charset=utf-8"%>
<% request.setCharacterEncoding("UTF-8"); %>
<%@ taglib uri="/jstl-fmt" prefix="fmt" %>
<fmt:setBundle basename="com.sun.web.search.webapp.resources.messages" />

<html>
<head>
<title>Sun One Webserver <fmt:message key="search"/></title>
</head>
<%@ page import="com.sun.web.search.taglibs.AdvancedTag" %>

<%@ taglib uri="/search" prefix="s1ws" %>

<body bgcolor="#ffffff" TOPMARGIN="10" LEFTMARGIN="20" LINK="#000000" VLINK="#000000" ALINK="#000000">
<link rel="stylesheet" type="text/css" href="inc/search.css">

<jsp:include page="inc/header.jsp" />
<br><br>

<s1ws:formAction formId="search" />


<s1ws:form name="search" action="index.jsp" >
<input type=hidden name="si" value=1>
<input type=hidden name="ns" value=10>
<input type=hidden name="st" value="relevance">
<table border="0" width="80%" cellpadding="1" cellspacing="0" bgcolor="#cccccc" align="center">
  <tr> 
    <td> 
	<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
		<tr bgcolor="#ccccff"><td></td></tr>
		
		<tr>
                    <td width="60%" height="17" bgcolor="#ffffcc" valign="center">
                    <span class="body">
                    <b><font color="#666666">&nbsp;&nbsp;<fmt:message key="searchTheSite"/></font></b></span>
                    </td>
                    <td class="body" width="40%" height="17" bgcolor="#ffffcc" align=right valign="center">
                        <a href=<fmt:message key="helpLink"/>><fmt:message key="help"/></a>&nbsp;&nbsp;
                    </td>
                </tr><!-- form -->
		<tr class="TableHeader" bgcolor="#afafef"><td class="TableHeader" colspan=2>	
		<table border="0" align="center" cellspacing="10" cellpadding="0">
		<tr class="body">
		<td class="body" nowrap>
                <s1ws:collElem type="checkbox" cols="2" defaults="all" />
                </td>
		</tr>
	 
		<tr class="body">
		<td class="body" colspan=2 nowrap><s1ws:queryBox name="qt" />                   
                    &nbsp;&nbsp;<input type="image" align="absMiddle" src=<fmt:message key="searchImg"/> border="0" id="image1" name="image1" WIDTH="56" HEIGHT="24">
                    &nbsp; &nbsp; 
                    <%
                        AdvancedTag at = new AdvancedTag();
                        String s = at.getLink(pageContext, "advanced.jsp",null,"c");
                        out.println(s);
                    %>

                    <!s1ws:advanced page="advanced.jsp" caption="Advanced" />
		</td>
		</tr>
		</table>
		</td></tr><!-- /form -->
		
	</table>
	</td>
	</tr>
</table>
<s1ws:formActionMsg formId="search" elem="c" >
<table border="0" width="80%" cellpadding="1" cellspacing="0" bgcolor="#ffffff" align="center">
  <tr> 
    <td> 
            <br><font color=red><fmt:message key="noCollectionSelectedMessage"/></font><br>
    </td>
  </tr>
</table>
</s1ws:formActionMsg>
<s1ws:formActionMsg formId="search" elem="qt" >
<table border="0" width="80%" cellpadding="1" cellspacing="0" bgcolor="#ffffff" align="center">
  <tr> 
    <td> 
            <br><font color=red><fmt:message key="queryMissingMessage"/></font>
    </td>
  </tr>
</table>
</s1ws:formActionMsg>


</s1ws:form>

 
<s1ws:formSubmission formId="search" success="true" >
    <s1ws:search formId="search" scope="page" />

    <!--search results-->

    <table border="0" width="80%" cellpadding="1" cellspacing="0" bgcolor="#cccccc" align="center">
      <tr> 
        <td> 
    <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
    <tr>
    <td width="100%" valign="top">

    <span class="body">




            <table border="0" width="100%" cellpadding="1" cellspacing="0" bgcolor="#cccccc">
              <tr> 
                <td> 
                  <table border="0" width="100%" cellpadding="4" cellspacing="0">
                    <tr> 
                      <td align="left" bgcolor="#ffffff">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td align="left"><span class="body"><s1ws:resultStat formId="search" type="total" /></span></td>

                            <td><span class="body">
                            <s1ws:resultNav formId="search" type="sort" />
                            </span></td>
                            <td align="right"><span class="body">
                            <s1ws:resultNav formId="search" type="previous" caption="<img border=0 src=\"images/arrow-left.gif\" alt=\"Previous\">" />
                            &nbsp;<s1ws:resultStat formId="search" type="range" />
                            &nbsp;<s1ws:resultNav formId="search" type="next" caption="<img border=0 src=\"images/arrow-right.gif\" alt=\"Next\">" />

        &nbsp; <!img alt="Next" src="images/arrow-right.gif" border="0" WIDTH="13" HEIGHT="9">


                            </span></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>

        <br>

        <ol start="1">
        <table border=0>
        <s1ws:resultIteration formId="search" start="1" numShown="15">
            <tr class=body><td valign=top>
                    <s1ws:item property='number' />.&nbsp;&nbsp;
                </td>
                <td>
                    <b><a href="<s1ws:item property='url' />"><s1ws:item property='title' /></a></b>
                        <br>


                        <s1ws:item property='passages' />

                        <font color="#999999" size="-2">
                        <s1ws:item property='url' /> -
                        <s1ws:item property='date' /> -
                        <s1ws:item property='size' />
                        </font><br><br>
                 </td>
            </tr>

         </s1ws:resultIteration>
        </table>    
        </ol>



            <table border="0" width="100%" cellpadding="1" cellspacing="0" bgcolor="#cccccc">
              <tr> 
                <td> 
                  <table border="0" width="100%" cellpadding="4" cellspacing="0">
                    <tr> 
                      <td align="left" bgcolor="#ffffff">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td align="center"><span class="body">

                            <s1ws:resultNav formId="search" type="previous" />
                            <s1ws:resultNav formId="search" type="full" offset="8" />
                            <s1ws:resultNav formId="search" type="next" />



                            </span></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>

    </span>
    </td>

    </tr>
    </table>

    </td></tr></table><!--/search results-->	

</s1ws:formSubmission>
<s1ws:formSubmission formId="search" success="false" >
<table height="20%">
<tr><td>&nbsp;</td></tr>
</table>
</s1ws:formSubmission>
<br>

<jsp:include page="inc/footer.jsp" />

