<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
    <br/>
    <smvc:form action="importPatientSummary.form?${_csrf.parameterName}=${_csrf.token}" method="post" enctype="multipart/form-data">
    	<input type="hidden" name="redirectParams" value="<c:out value="${requestScope['javax.servlet.forward.query_string']}" />" />
		<table>
			<tr>
				<td class="error"><smvc:errors path="fileFormatError" /></td>
			</tr>
		</table>
		<br/>
		<fieldset class="nobg" style="width: 40%; text-align: left">
            <legend>Import Summary Definitions</legend>
            <fieldset>
                File:&#160;<input type="file" name="document" onchange="setFileSize(this);"/><br/>
            </fieldset>
            <fieldset class="buttonFieldset">
                <input type="submit" name="startPatientImport" value="Start Import"/>
            </fieldset>

                <c:if test="${totalPatientSummary != null}">
                    <div class="message">
                        <img src="../images/16x16/information.png" alt="i" />&#160;  <c:if test="${totalPatientSummary == 1 }">There was 1 patient summary in the import file</c:if>
                                                                                <c:if test="${totalPatientSummary != 1 }">There were <c:out value="${totalPatientSummary}"/> patient summary(s) in the import file</c:if>
                        <ul>
                        <c:if test="${numberInsertedRecs != null}">
                             <li>Patient summary(s) created: <c:out value="${numberInsertedRecs}"/></li>                     
                        </c:if>
                        </ul>
                    </div>
                </c:if>
                
                <smvc:errors/>
        </fieldset>
        <br/>
    </smvc:form>
                	<input type="button" value="Return To Patient Summary" onclick="document.location='patientSummaryActions.form?method=list'"/>

