<%@ include file="/includes.jsp"%>
<link rel="stylesheet" href="../css/popup.css" type="text/css">
<%@ include file="PrintPopup.jsp" %>
<script>   
	function  fnDisplay_Computers(filePath){	
	 window.open (filePath,"mywindow"); 
	 }
	function setNavigatePatient(patientGuid){
		document.location.href="../nationalMDT/consultationNote.form?ButtonClicked=navigatePatient&page=referrals&patientId="+patientGuid;
	}
</script>
<input type="hidden" name="id" id="id" />
<c:if test="${referralPatientDto.referralPatient ne null and referralPatientDto.referralPatient.id ne null}">
	<table class="header1" border="1" bordercolor="#F8F8FF">
	<tr>
		<td width="10%" align="center"><c:choose>
			<c:when test="${previousPatientId!=null}">
				<img src="../images/backward.png" title="previous Patient"
					onclick="setNavigatePatient('<c:out value="${previousPatientId}"/>');"
					onmouseover="this.style.cursor = cursorPointer" />
			</c:when>
			<c:otherwise>
				<input type="image" src="../images/disabled_back.png"
					title="First Patient" onclick=""
					onmouseover="this.style.cursor = cursorPointer" disabled="disabled" />
			</c:otherwise>
		</c:choose></td>
		<td width="30%">&nbsp; <label class="labelBlue">Patient:</label> <span
			class="labelBrown"><c:out value="${referralPatientDto.referralPatient.forename}"/>&nbsp;<c:out value="${referralPatientDto.referralPatient.surname }"/></span></td>
		<td width="20%">&nbsp; <label class="labelBlue">DOB:</label> <span
			class="labelBrown"><c:out value="${referralPatientDto.strDateOfBirth}"/></span></td>
		<td width="10%" >&nbsp; <label class="labelBlue">Age:</label> <span
			class="labelBrown"><c:out value="${referralPatientDto.referralPatient.currentAge}"/></span></td>
		<td width="20%">&nbsp; <label class="labelBlue">GP:</label> <span
			class="labelBrown"><c:out value="${referralPatientDto.referralPatient.gpForename}"/>&nbsp;
		<c:out value="${referralPatientDto.referralPatient.gpSurname}"/></span></td>
		<td width="10%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <c:choose>
			<c:when test="${nextPatientId!=null}">
				<img src="../images/forward.png" title="next Patient"
					onclick="setNavigatePatient('<c:out value="${nextPatientId}"/>');"
					onmouseover="this.style.cursor = cursorPointer" />
			</c:when>
			<c:otherwise>
				<input type="image" src="../images/disabled_forward.png"
					title="Last Patient"
					onmouseover="this.style.cursor = cursorPointer" disabled="disabled" />
			</c:otherwise>
		</c:choose></td>

	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp; <label class="labelBlue">Submitting Hospital:</label> <span
			class="labelBrown"><c:out value="${referralPatientDto.referralPatient.referredHospitalName}"/></span></td>
		<td colspan="2">&nbsp; <label class="labelBlue">Hospital Number:</label> <span
			class="labelBrown"><c:out value="${referralPatientDto.referralPatient.hospitalNumber}"/></span></td>
		<td>&nbsp; <label class="labelBlue"><a href="#"
			id="printID" onclick="printPatient('printPopup');"
			style="color: #0198E1;">Print&nbsp;<img
			src="../images/16x16/printer.png" /></a></label></td>
		<td>&nbsp;</td>
	</tr>
	</table>
</c:if>
