<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<style type="text/css">
.contentPopup {
	display: none;
	position: relative;
	height: auto;
	width: 1000px;
	border: 2px solid #668B8B;
	z-index: 2;
	font-size: 13px;
	background-color: #e0e5eb;
	padding: 10px;
}
#attachFilePopupStrutsTable	{
	width: 100%;	
	background-color: #e0e5eb;
}
#attachFilePopupStrutsTable td	{
	padding: 4px;
}
#attachFilePopupStrutsTable td .popupContactClose	{
	color: red;
	cursor: pointer;
}
#closeContainer	{
	text-align: right;
}

</style>
<div id="attachFilePopupStrutsId" class="contentPopup">
<table id="attachFilePopupStrutsTable">
	<tr>
		<td class="dialogTitle" colspan="4">Attach a File...</td>
	</tr>
	<tr>
	<td colspan="4"><!-- spacer --></td>
	</tr>
	<tr>
		<td>Title:<br/>
			<smvc:hidden path="patientDocumentMetaData.patientGuid" value="${emdt.patient.guid }"/>
			<smvc:hidden path="patientDocumentMetaData.noteGuid"  value="${consultationNoteForm.view.note.guid}"/>
			<smvc:input path="patientDocumentMetaData.title" id="patientDocumentMetaDatatitle"/>
		</td>
		<td>Category:<br/>
			<webapp:selectAndEditList path="patientDocumentMetaData.category" domain="EMDT" list="DocumentCategory" includeEmpty="false" id="patientDocumentMetaDatacategory"/>
		</td>
		<td>Uploaded By:<br/>
			<smvc:select path="patientDocumentMetaData.selectedUser"  id="patientDocumentMetaDataselectedUser">
				<c:forEach var="usersByHospitalMap" items="${webapp.usersByHospitalIdMap}">
					<optgroup label="${webapp.hospMap[usersByHospitalMap.key]}">
						<c:forEach var="userId" items="${usersByHospitalMap.value}">
							<smvc:option  value="${userId}" ><c:out value="${webapp.userIdNameMap[userId]}"/></smvc:option>
						</c:forEach>
					</optgroup>
				</c:forEach>
			</smvc:select>
		</td>
		<td>Date of File:<br/>
			<smvc:input path="patientDocumentMetaData.uploadedOnStr" id="patientDocumentMetaDataUploadedOn"/>
			&nbsp;<img title='Click to choose date' style='cursor: pointer' src='../images/16x16/date.png' id="patientDocumentMetaDataUploadedOn_DateTrigger" />
		</td>
	</tr>
	<tr><td colspan="4"><br/><br/></td></tr>
	<tr>
		<td colspan="3" id="attachFileColumnId">
		</td>
		<td id="closeContainer"><button type="button" onclick="disablePopup('attachFilePopupStrutsId','ajaxFilePathTable');" class="popupContactClose">Cancel</button></td>
	</tr>
</table>
</div>