<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>

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

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
<tr>
    <td width="100%">
    	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role="presentation">
	   <tr>
	     <td>
	         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
	           <tr>
	        	<td width="5%" class="moduleBlueBox">&nbsp;</td>
	 	    	<td class="moduleHeadline"><bean-el:message key="title.message.search" /></td>
	           </tr>
	         </table>
	     </td>
	    </tr>

	    <tr>
	     <td class="moduleValue">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role="presentation">
		<html-el:form action="/messageAction" method="post">
		  <%@ include file="/admin/csrfgentoken.jsp" %>
			  <tr><td class="moduleValue">

			      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role="presentation">
			      <tr>
			  	<td width="45%" class="moduleLabel"><fw:label property="transmissionDate" forId="idTransmissionDate"><bean-el:message key="label.message.transmissionDate" />:</fw:label></td>
			  	<c:set var="transmissionDateText"><bean-el:message key="label.message.transmissionDate"/>&nbsp;<c:out value="${mmddyyyyText}" /></c:set>
			  	<td width="55%" class="moduleValue" nowrap><html-el:text title="${transmissionDateText}" property="transmissionDate" styleClass="moduleEdit" styleId="idTransmissionDate" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" /></td>
			      </tr>
			      <tr>
			  	<td class="moduleLabel"><fw:label property="transmissionStartDate" forId="idTransmissionStartDate"><bean-el:message key="label.message.transmissionDateRange" /> <bean-el:message key="label.from"/>:</fw:label></td>
			  	<td class="moduleValue" nowrap>
			  	<c:set var="transmissionDateRangeFromText"><bean-el:message key="label.message.transmissionDateRange"/>,&nbsp;<bean-el:message key="label.from"/>&nbsp;<c:out value="${mmddyyyyText}" /></c:set>
			  	<c:set var="transmissionDateRangeToText"><bean-el:message key="label.message.transmissionDateRange"/>,&nbsp;<bean-el:message key="label.to"/>&nbsp;<c:out value="${mmddyyyyText}" /></c:set>
                    <table border="0" cellpadding="0" cellspacing="0" role="presentation">
                        <tr>
                            <td class="moduleValue">
                                <html-el:text title="${transmissionDateRangeFromText}" property="transmissionStartDate" styleClass="moduleEdit" styleId="idTransmissionStartDate" size="10" maxlength="10"/>
                            </td>
                            <td class="moduleLabel">
			  		             &nbsp;<fw:label property="transmissionEndDate" forId="idTransmissionEndDate"><bean-el:message key="label.to"/>:</fw:label>
                            </td>
                            <td class="moduleValue">
			  		             <html-el:text title="${transmissionDateRangeToText}" property="transmissionEndDate" styleClass="moduleEdit" styleId="idTransmissionEndDate" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" />
                            </td>
                        </tr>
                    </table>
			  	</td>
			      </tr>
			      <tr>
			  	<td class="moduleLabel"><fw:label property="facility" forId="idFacility"><bean-el:message key="label.message.facility" />:</fw:label></td>
			  	<td class="moduleValue">
			  	<c:set var="facilityText"><bean-el:message key="label.message.facility"/></c:set>
			  		<html-el:select title="${facilityText}" styleClass="moduleEdit" property="facility" styleId="idFacility">
						<html-el:option styleClass="moduleEdit" value=""><bean-el:message key="label.select" /></html-el:option>
            <esrcore:options styleClass="moduleEdit" collection="gov.va.med.esr.ui.common.beans.VAFacility" property="code" labelProperty="siteNumberAndName"/>
					</html-el:select>
				</td>
			      </tr>
			      <tr>
			  	<td class="moduleLabel"><fw:label property="transmissionType" forId="idTransmissionType"><bean-el:message key="label.message.type" />:</fw:label></td>
			  	<td class="moduleValue">
			  	<c:set var="typeText"><bean-el:message key="label.message.type"/></c:set>
			  		<html-el:select title="${typeText}" styleClass="moduleEdit" property="type" styleId="idTransmissionType">
			  			<html-el:option styleClass="moduleEdit" value=""><bean-el:message key="label.select" /></html-el:option>
						<esrcore:options styleClass="moduleEdit" collection="gov.va.med.esr.common.model.lookup.MessageType" property="code" labelProperty="codeDescription"/>
					</html-el:select>
			  	</td>
			      </tr>
			      <tr>
				<td class="moduleLabel"><fw:label property="status" forId="idStatus"><bean-el:message key="label.message.status" />:</fw:label></td>
				<td class="moduleValue">
				<c:set var="statusText"><bean-el:message key="label.message.status"/></c:set>
					<html-el:select title="${statusText}" styleClass="moduleEdit" property="status" styleId="idStatus">
						<html-el:option styleClass="moduleEdit" value=""><bean-el:message key="label.select" /></html-el:option>
						<esrcore:options styleClass="moduleEdit" collection="gov.va.med.esr.common.model.lookup.MessageStatus" property="code" labelProperty="description"/>
					</html-el:select>
				</td>
			      </tr>
			      </table>

			  </td></tr>
			  <tr><td class="moduleValue">&nbsp;</td></tr>
			  <tr><td class="moduleValue" align="center">

			      <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0" role="presentation">
			        <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;" 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;" styleClass="buttonText"><bean-el:message key="button.clear"/></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>
		</html-el:form>
			</table>
	       </td>
	    </tr>
	</table>
    </td>
</tr>
</table>
<%@ include file="messageSearchResults.jsp" %>
