<script type="text/javascript" language="JavaScript" src="../scripts/ESR-Script.js"></script>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>

<c:set var="additionalTextMessage" scope="page"><bean-el:message key="label.additionalCriteriaSpecified"/></c:set>
<c:set var="expandableSectionCollapsed" scope="page"><bean-el:message key="label.expandableSectionCollapsed"/></c:set>
<c:set var="mmddyyyyText" scope="page"><bean-el:message key="label.mmddyyyy"/></c:set>

<table width="100%" border="1" cellpadding="0" cellspacing="0" class="moduleShell">
<html:form action="/search" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
<script type="text/javascript">
// Perform all page initialization
function onLoadInit()
{
    if (searchActionForm.extscHiddenId.value == 'true')
    {
        // Expand the extra search criteria section
        expandOrCollapse(extScBlockId, searchActionForm.extscImage, searchActionForm.extscHiddenId);
    }
    else
    {
        // Update the additional search criteria helper text
        updateAdditionalCriteriaText(additionalFields, extScBlockId, searchActionForm.additionalText, '<c:out value="${additionalTextMessage}"/>')
    }
}
</script>

 <tr>
  <td>
   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable">
    <tr>
     <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
       <tr>
        <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
        <td nowrap style="padding-left: 7"><bean-el:message key="label.personsearch"/></td>
        <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
       </tr>
      </table>
     </td>
    </tr>

    <tr>
     <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
        <%-- Primary search Criteria --%>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>

		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appSignatureDate" forId="txtAppSignatureDate"><bean-el:message key="label.esrAppStatusHistory.signatureDate"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.signatureDate"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appSignatureDate" id="txtAppSignatureDate"/>
		  </td>
		</tr>		  
		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appMethod" forId="txtAppMethod"><bean-el:message key="label.esrAppStatusHistory.method"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.method"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appMethod" id="txtAppMethod"/>
		  </td>
		</tr>	
		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appEntryDate" forId="txtAppEntryDate"><bean-el:message key="label.esrAppStatusHistory.entryDate"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.entryDate"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appEntryDate" id="txtAppEntryDate"/>
		  </td>
		</tr>				  
		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appStatus" forId="txtAppStatus"><bean-el:message key="label.esrAppStatusHistory.status"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.status"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appStatus" id="txtAppStatus"/>
		  </td>
		</tr>		  
		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appStatusTimeStamp" forId="txtAppStatusTimeStamp"><bean-el:message key="label.esrAppStatusHistory.statusTimestamp"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.statusTimestamp"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appStatusTimeStamp" id="txtAppStatusTimeStamp"/>
		  </td>
		</tr>	
		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appCompletedDate" forId="txtAppCompletedDate"><bean-el:message key="label.esrAppStatusHistory.completedDate"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.completedDate"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appCompletedDate" id="txtAppCompletedDate"/>
		  </td>
		</tr>	
		<tr>
		  <td width="50%" class="moduleLabel"><fw:label property="appUser" forId="txtAppUser"><bean-el:message key="label.esrAppStatusHistory.completedByUser"/>:</fw:label></td>
		  <td width="50%" title="<bean-el:message key="label.esrAppStatusHistory.completedByUser"/>" class="moduleValue">
		  <esrcore:displayValue name="searchActionForm" property="appUser" id="txtAppUser"/>
		  </td>
		</tr>							
		 
        <%-- Button Row CCR 10471 not used. Might need it later.
        <tr>
          <td colspan="2" height="50">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="45%"><img alt="" src="../images/spacer.gif"/></td>
                <td><img alt="" src="../images/buttonEndLeft.gif"/></td>
                <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" tabindex="15" styleClass="buttonText"><bean-el:message key="button.search"/></html-el:submit></td>
                <td><img alt="" src="../images/buttonEndRight.gif"/></td>
                <td width="1%"><img alt="" src="../images/spacer.gif"/></td>
                <td><img alt="" src="../images/buttonEndLeft.gif"/></td>
                <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" tabindex="16" styleClass="buttonText"><bean-el:message key="button.clear"/></html-el:submit></td>
                <td><img alt="" src="../images/buttonEndRight.gif"/></td>
                <td width="1%"><img alt="" src="../images/spacer.gif"/></td>
                <td><img alt="" src="../images/buttonEndLeft.gif"/></td>
                <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" tabindex="17" styleClass="buttonText"><bean-el:message key="button.cancel"/></html-el:submit></td>
                <td><img alt="" src="../images/buttonEndRight.gif"/></td>
                <td width="45%"><img alt="" src="../images/spacer.gif"/></td>
              </tr>
            </table>
          </td>
        </tr>
       --%>
      </table>
     </td>
    </tr>
   </table>
  </td>
 </tr>

<script type="text/javascript">
// Additional Search Criteria Fields
var additionalFields = new Array(4);
additionalFields[0] = searchActionForm.militaryServiceNumber;
additionalFields[1] = searchActionForm.claimFolderNumber;
additionalFields[2] = searchActionForm.middleName;
additionalFields[3] = searchActionForm.genderAll;
</script>

</html:form>
</table>
