<%@ 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" %>
<%@ page import='gov.va.med.esr.ui.report.action.ReportConstants' %>

    <c:set var="ALL"><%=ReportConstants.ALL%></c:set>
    
    <esrcore:setLookup var="MessageTypeList" className="gov.va.med.esr.common.model.lookup.MessageType" />
    <tr>
    	<td class="moduleLabel"><fw:label required="true" property="messageType" forId="messageTypeId"><bean-el:message key="label.report.messageType" />:</fw:label></td>
		<td colspan="2" class="moduleValue" nowrap>
		<c:set var="messageTypeText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.messageType"/></c:set>
		    <html-el:select title="${messageTypeText}" styleClass="moduleEdit" property="messageType" styleId="messageTypeId">
		    <html-el:option value=""><bean-el:message key="label.select" /></html-el:option>
		    <c:forEach var="item" items="${MessageTypeList}">
    	        	<c:if test="${(reportInfoForm.reportIdNoSpace == 'QM19' && item.direction=='O') || (reportInfoForm.reportIdNoSpace == 'QM25' && item.direction=='I')}">
				    <html-el:option styleClass="moduleEdit" value="${item.code}"><c:out value="${item.codeDescription}"/></html-el:option>
		        </c:if>
		    </c:forEach>
		    </html-el:select>
		</td>
    </tr>
