<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)search.jsp    1.9    03/09/16     SMI"
   * 
   */
 --%>
<%@ include file="layout/toptags.jsp"%>
<!-- locale stuff -->
<html:html locale="true">
<!-- end locale -->
<!-- HTML -->
<head>
<%@include file="/layout/page_head_section.jsp"%>
   <title>
      <bean:message  key="search.title"/>
   </title>
<!-- Place Java Script Here -->
</head>

<%@include file="/layout/bodytag.jsp"%>
<%@include file="layout/top.jsp"%>
<%@include file="layout/breadcrumb.jsp"%>
<%@include file="layout/spacer.jsp"%>

<html:form action="/root.menu.item5.item0.do">

<!-- hidden element which specifies the action for this form -->
<input type="hidden" name="request_action" value="<%=request.getAttribute("request_action")%>">
<input type="hidden" name="index" value="<%=request.getParameter("index")%>">

<div class="content-layout">
  
  <%@ include file="/layout/user_messages.jsp"%>
  
  <!-- spacer -->
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
    </tr>
  </table>

  <!-- full search table -->
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td nowrap>
        <!-- inner search table -->
        <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td nowrap>
              <!-- back table -->
              <table class="back-table" border="0" cellspacing="0" cellpadding="1" width="100%">
                <tr>
                  <td>
                    <!-- actual search table -->
                    <table class="front-table" border="0" cellspacing="0" cellpadding="0" width="100%">
                      <!-- table column header row -->
                      <tr class="header-row">
                        <td align="left">
                          <div class="table-header-text">
                            <bean:message key="search.table.type"/> 
                          </div>
                        </td>
                        <td align="left">
                          <div class="table-header-text">
                            <bean:message key="search.table.criteria"/> 
                          </div>
                        </td>
                        <td align="left" colspan="3">
                          <div class="table-header-text">
                            <bean:message key="search.table.string"/> 
                          </div>
                        </td>
                      </tr>
                      <!-- end table column header row -->

		      <tr>
		      	<td colspan="2" valign="top" align="left">
			  <!-- cell with search object and type -->
			  <table width="100%" height="100%" border="0" cellspacing="5" cellpadding="0">
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 property="objectType" 
				 value="<%=""+Constants.SearchFilter.ARRAY_SEARCH%>" />

			       </td>
			       <td>
			       	         <bean:message key="item.type.array"/>
			       </td>
			       <td>
			            <select name="<%=Constants.SearchFilter.ARRAY_SEARCH%>">
				 	<option value="Name">
						<bean:message key="search.criteria.name"/>
					</option>
					<option value="Description">
						<bean:message key="search.criteria.description" />
					</option>
				</td>
			    </tr>
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 	property="objectType" 
					value="<%=""+Constants.SearchFilter.TRAY_SEARCH%>" />
			       </td>
			       <td>
			       	<bean:message key="item.type.tray"/>
			       </td>
			       <td>
			         <bean:message key="search.criteria.id"/>
				 <input type="hidden" name="<%=Constants.SearchFilter.TRAY_SEARCH%>" 
				 	value="Name"/>
			       </td>
			    </tr>
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 	property="objectType" 
					value="<%=""+Constants.SearchFilter.POOL_SEARCH%>" />
			       </td>
			       <td>
			       	<bean:message key="item.type.pool"/>
			       </td>
			       <td>
			         <select name="<%=Constants.SearchFilter.POOL_SEARCH%>">
                                       <option value="Name">
                                         <bean:message key="search.criteria.name"/>
                                       <option  value="ProfileName">
                                         <bean:message key="search.criteria.profilename"/>
                                   </select>

			       </td>
			    </tr>
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 	property="objectType" 
					value="<%=""+Constants.SearchFilter.VOLUME_SEARCH%>" />
			       </td>
			       <td>
			       	<bean:message key="item.type.volume"/>
			       </td>
			       <td>
			           <bean:message key="search.criteria.name"/>
				   <input type="hidden" name="<%=Constants.SearchFilter.VOLUME_SEARCH%>" 
				 	value="Name"/>

			       </td>
			    </tr>
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 	property="objectType" 
					value="<%=""+Constants.SearchFilter.VOLUME_GROUP_SEARCH%>" />
			       </td>
			       <td>
			       	<bean:message key="item.type.volumegroup"/>
			       </td>
			       <td>
     		       		   <bean:message key="search.criteria.name"/>
				   <input type="hidden" name="<%=Constants.SearchFilter.VOLUME_SEARCH%>" 
				 	value="Name"/>

			       </td>
			    </tr>
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 	property="objectType" 
					value="<%=""+Constants.SearchFilter.INITIATOR_SEARCH%>" />
			       </td>
			       <td>
			       	<bean:message key="item.type.initiator"/>
			       </td>
			       <td>
			             <select name="<%=Constants.SearchFilter.INITIATOR_SEARCH%>">
                                       <option value="World Wide Name">
                                         <bean:message key="search.criteria.wwn"/>
                                       <option  value="Description">
                                         <bean:message key="search.criteria.description"/>
                                   </select>
			       </td>
			    </tr>
			    <tr>
			       <td>
			         <html:radio name="Search" 
				 	property="objectType" 
					value="<%=""+Constants.SearchFilter.INITIATOR_GROUP_SEARCH%>" />
			       </td>
			       <td>
			       	<bean:message key="item.type.initiatorgroup"/>
			       </td>
			       <td>
			           <bean:message key="search.criteria.name"/>
				   <input type="hidden" 
				   	name="<%=Constants.SearchFilter.INITIATOR_GROUP_SEARCH%>" 
				 	value="Name"/>
			       </td>
			    </tr>
			  </table>
			</td>
			<td>&nbsp;&nbsp;</td>
		      	<td valign="center" align="middle">
			 <!-- cell with search string -->
			  <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
			      <tr>
                                <td><html:text name="Search" property="searchText" size="25"/></td>
                              </tr>
                              <tr>
                                <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
                              </tr>
                              <tr align="center">
                                <td>
                                  <html:radio name="Search" property="stringType" value="Exact"/>
                                  <bean:message key="search.table.string.exact"/>
                                  <html:radio name="Search" property="stringType" value="Contains"/>
                                  <bean:message key="search.table.string.contains"/>
                                </td>
                              </tr>

			      <tr>
                                      <td align="center">
                                        <table border="0" cellpadding="0" cellspacing="0" class="button-link-enabled-text">
                                          <tr>
                                            <td align="center" valign="middle" nowrap>
                                               <component:button text="search.title" href="javascript:submitForm('search');" title="search.title" isEnabled="true" />
                                            </td>
                                          </tr>
                                        </table>
                                      </td>
                                    </tr>
			  </table>
			</td>
			<td>&nbsp;</td>
		      </tr>


                   </table>
                  <!-- end actual search table -->
                </td>
              </tr>
            </table>
            <!--end back table -->
           </td>
         </tr>
       </table>
       <!--end inner search table -->
     </td>
   </tr>
 </table>
<!-- end full search table -->




</div>
</html:form>



</body>
</html:html> 
