<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="peps" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@page import="gov.va.med.pharmacy.peps.common.vo.RematchVo"%>

<form:form id="unmatchedProductsSearchOption"
	name="unmatchedProductsSearchOption" modelAttribute="matchVo"
	action="/PRE/searchUnmatched.go" method="get">
	<input type="hidden" id="isFirstRun" name="isFirstRun" value="false" />
	<input type="hidden" id="hasEntityChanged" name="hasEntityChanged"
		value="false" />
	<div class="row">
		<div class="panel">
			<div class="controlGroup">
				<table cellpadding="5">
					<tr>
						<td>
							<div>
								<div class="column">
									<spring:message text="Display Unmatched Products Due To" />
									<span class="required"></span><span>:</span>
									<c:choose>
										<c:when test="${empty matchType}">
											<form:select id="matchTypeOptions" path="matchType"
												cssClass="comboBox"												
												style="width:350px;">
												<form:options items="${matchTypeMap}" />
											</form:select>
										</c:when>
										<c:otherwise>
											<form:select path="matchType"
												id="report.matchType_disabled" cssClass="comboBox"
												onchange="refreshForm();" disabled="true">
												<form:options items="${matchTypeMap}" />
											</form:select>
										</c:otherwise>
									</c:choose>
								</div>
								<div class="column"></div>
							</div>
						</td>
					</tr>
				   <tr>
						<td>
						<div>
								<spring:message code="button.show.unmatched" var="viewButton" />								

								<div>
									<peps:submit key="button.show.unmatched" />
								</div>
								
								<div class="horizontalspacer"></div>
							</div>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</form:form>
<div class="bodyheaderspacer"></div>
