<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>

<%@page info="Filter" language="java"%>
<%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
<%@taglib uri="/WEB-INF/console.tld" prefix="console"%>
<%@taglib uri="/WEB-INF/searchadmin.tld" prefix="searchadmin"%>

<jato:useViewBean className="com.sun.portal.search.admin.FilterViewBean" > 
<jsp:useBean id="viewBean" type="com.sun.portal.search.admin.FilterViewBean" />

<HTML>
<TITLE><searchadmin:text key="filter.title"/></TITLE>
<script language="javascript" src="../ps/searchadmin/js/searchadmin.js"></script>
<%@include file="/ps/searchadmin/CSHeader.jsp"%>
<script language="javascript">
if (parent.headerFrame) {
    parent.headerFrame.helpDocURL = "<jato:text name="helpDocURL"/>";
    parent.headerFrame.helpPage = "<searchadmin:text key="help.robot.filters"/>";
}
</script>

<searchadmin:AdminMenu selected="Filters" images="../ps/searchadmin/images"/>

<console:form name="Filter">
<jato:hidden name="FilterID"/>

  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR> 
      <TD align="right" height="2"> 
        <TABLE border="0" cellpadding="0" cellspacing="0">
          <TR> 
            <TD> 
		   <console:button name="SubmitButton" />
            </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD> 
		   <console:button name="CancelButton"  href="Filters"/>
            </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>
		<console:button name="ResetButton" />
            </TD>
            <TD><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>  </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>
    <TR>
	<TD align="center" height="2">
	 <console:messagebox name="MessageBox" fireDisplayEvents="true" imageURI="../console/images"/>
	 </TD>
    </TR>

    <TR> 
      <TD class="help-text"><searchadmin:text key="filter.desc"/></TD>
    </TR>

    <!-- Filter Name Section -->
    <TR> 
      <TD height="2"> 
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
          <TR> 
            <TD nowrap> 
              <DIV class="properties-level1-label-text"><searchadmin:text key="filter.nickname.sect"/></DIV>
            </TD>
            <TD valign="bottom" width="99%"> 
		<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
		    <TR> 
		    <TD valign="bottom" class="properties-separator"><IMG src="../ps/searchadmin/images/blank.gif" width="1" height="2" alt=""></TD>
		    </TR>
		</TABLE>
            </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>

    <TR> 
      <TD class="help-text"><searchadmin:text key="filter.nickname.desc"/></TD>
    </TR>
    <TR> 
	<TD>
	<DIV class="properties-level3-label-text"><LABEL for="filter.nickname"><searchadmin:text key="filter.nickname"/></LABEL>:&nbsp;<jato:textField name="Nickname" size="40" elementId="filter.nickname"/><jato:hidden name="OldNickname"/></DIV>
	</td>
    </TR>

    <!-- Filter Definition Section -->
    <TR> 
      <TD height="2"> 
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
          <TR> 
            <TD nowrap> 
              <DIV class="properties-level1-label-text"><searchadmin:text key="filter.definition.sect"/></DIV>
            </TD>
            <TD valign="bottom" width="99%"> 
		<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
		    <TR> 
		    <TD valign="bottom" class="properties-separator"><IMG src="../ps/searchadmin/images/blank.gif" width="1" height="2" alt=""></TD>
		    </TR>
		</TABLE>
            </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>

    <TR> 
	<TD>
        <!-- Table Title -->
        <table border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan=3 class="help-text"><searchadmin:text key="filter.definition.desc.one"/> <LABEL for="del"><searchadmin:text key="filter.definition.desc.keywordone"/></LABEL> <searchadmin:text key="filter.definition.desc.two"/></td>
          </tr>
          <tr> 
            <td colspan=3><img alt="" border="0" height="10" width="1" src="../ps/searchadmin/images/blank.gif"></td>
          </tr>
          <tr> 
            <TD><console:button name="NewButton" /></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
            <td><console:button name="DeleteButton" /></TD>
          </tr>
          <tr> 
            <td colspan=3><img alt="" border="0" height="5" width="1" src="../ps/searchadmin/images/blank.gif"></td>
          </tr>
        </table>
        <!-- End table containing New and Delete Buttons -->

	<TABLE class="table-frame" border="0" cellspacing="0" cellpadding="1">
          <TR> 
            <TD> 
		<TABLE class="table-content" border="0" cellspacing="0" cellpadding="0">
		<!-- Top row containing the column headers --> 
                <TR class="table-header-row">
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td align="center"> 
			<table width="100%" border="0" cellspacing="3" cellpadding="0">
			<tr> 
			    <td><a href="javascript:SelectAll('Filter', 'StringFilterList', 'Delete', true);"><img src="../ps/searchadmin/images/select-all-small.gif" width="11" height="13" alt="<searchadmin:text key='select.all'/>" border="0"></a></td>
			    <td><a href="javascript:SelectAll('Filter', 'StringFilterList', 'Delete', false);"><img src="../ps/searchadmin/images/deselect-all-small.gif" width="11" height="13" alt="<searchadmin:text key='deselect.all'/>" border="0"></a></td>
			</tr>
			</table>
		    </td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text"><searchadmin:text key="filter.src" label="filtersrc"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text"><searchadmin:text key="filter.by" label="filterby"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text"><searchadmin:text key="filter.pattern" label="filterstr"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		</tr>
		
		<jato:tiledView name="StringFilterList">
		<TR> 
		    <td>&nbsp; </td>
		    <TD><jato:checkbox name="Delete" elementId="del" /></TD>
		    <td>&nbsp; </td>
		    <TD>
			<jato:combobox name="FilterSrc" elementId="filtersrc"/>
		    </TD>
		    <td>&nbsp; </td>
		    <TD>
			<jato:combobox name="FilterBy" elementId="filterby"/>
		    </TD>
		    <td>&nbsp; </td>
		    <TD><jato:textField name="Pattern" size="20" elementId="filterstr"/></TD>
		    <td>&nbsp; </td>
                </TR>
		<tr> 
		    <td class="table-separator-row" colspan="9" ><img src="../ps/searchadmin/images/blank.gif" alt="" width="1" height="1" border="0"></td>
                </tr>

		</jato:tiledView>
              </TABLE>
	    </TD>
          </TR>
	</TABLE>
      </TD>
    </TR>

    <!-- Advanced Section -->
    <TR> 
      <TD height="2"> 
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
          <TR> 
            <TD nowrap> 
              <DIV class="properties-level1-label-text"><searchadmin:text key="filter.advanced.sect"/></DIV>
            </TD>
            <TD valign="bottom" width="99%"> 
		<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
		    <TR> 
		    <TD valign="bottom" class="properties-separator"><IMG src="../ps/searchadmin/images/blank.gif" width="1" height="2" alt=""></TD>
		    </TR>
		</TABLE>
            </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>

    <TR> 
	<TD>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
	    <TR>
	    <TD valign="top"><DIV class="properties-level3-label-text"><searchadmin:text key="filter.description" label="filterdesc"/>:&nbsp;</DIV></TD>
	    <TD><jato:textArea name="Description" rows="3" cols="30" wrap="hard" elementId="filterdesc" /><jato:hidden name="OldDescription"/></TD>
	    </TR>

	    <TR> 
	    <TD><DIV class="properties-level3-label-text"><searchadmin:text key="filter.newsite" label="newsite"/>:&nbsp;</DIV></TD>
	    <TD>
	    <jato:checkbox name="quikcf" elementId="newsite"/><searchadmin:text key="filter.newsite.desc"/>
	    </TD>
	    </TR>

	    <TR> 
	    <TD valign="top"><DIV class="properties-level3-label-text"><searchadmin:text key="filter.bydefault" label="bydefault"/>:&nbsp;</DIV></TD>
	    <TD><jato:radioButtons name="default" elementId="bydefault"/></TD>
	    </TR>
	    <TR> 
	    <TD valign="baseline"><DIV class="properties-level3-label-text"><searchadmin:text key="filter.deployment"/>:&nbsp;</DIV></TD>
	    <TD><jato:text name="Deployment" escape="false"/></TD>
	    </TR>
	</TABLE>
	</TD>
    </TR>

    <TR> 
      <TD align="right" height="2"> 
        <TABLE border="0" cellpadding="0" cellspacing="0">
          <TR> 
            <TD> 
		   <console:button name="SubmitButton" />
            </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD> 
		   <console:button name="CancelButton" href="Filters"/>
            </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>
		<console:button name="ResetButton" />
            </TD>
            <TD><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>  </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>
    
 </TABLE>
 
<!-- <tr><td ALIGN="right"><B>Deployment</B></td>
<td>Used in <b>1</b> Site Definition: <a href="r_domain?id=2">/test/doc</a> 
</td></tr> -->


</console:form>
</BODY>
<script language="javascript">
pageLoaded = 1;
</script>

</HTML>
</jato:useViewBean>
