<%@ page contentType="text/html; charset=UTF-8" %> 
<%@ include file="/includes.jsp" %>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<title>eMDT - Refer Patient - Home</title>
	<link rel="icon" href="../images/emdt.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="../images/emdt.ico" type="image/x-icon" />
	<link href="css/screen.css" type="text/css" rel="stylesheet" />
	<link href="css/main.css" type="text/css" rel="stylesheet" />
	<link rel="stylesheet" href="../css/webapp.css" type="text/css" />
	<script type="text/javascript" src="../js/jquery/jquery-3.7.1.min.js" ></script>
	<script type="text/javascript" src="../js/AJAXSupport.js" ></script>
</head>
<body>
		<table cellpadding="0" cellspacing="0" height="20" width="100%">

			<!-- START MODULES -->
			
			<tr>
				<td height="1" valign="top" style="padding:0;">
					<tiles:insertTemplate template="/tiles/modules.jsp" flush="true"/>
				</td>
			</tr>
			<!-- END MODULES -->
</table>	

<smvc:form id="managementHome" method="get" action="managementHome.form" >
	<c:if test="${0 lt webapp.currentUser.remainingDaysPwdExpiryWarning}">
		<%@ include file="tiles/passwordExpiryWarning.jsp" %>
	</c:if>
<c:if test="${0 lt webapp.currentUser.remainingHrsPwdExpiryWarning}">
		<%@ include file="tiles/passwordExpiryWarningToday.jsp" %>
</c:if>

<div class="headerHome">
	<%@ include file="tiles/customerHeader.inc" %>
</div>

<div class="bodyContainer"  style="width:100%;"><br/><br/><br/>
	<div class="container">
		<div class="heading" style="padding-bottom: 20px;">&nbsp;<c:out value="${centralHubHospital.hospitalName}"/> Referrals</div>
	</div>
	<div class="smallRowSpace"  style="height:20px">&nbsp;</div>
	
	<div class="container">
		<div class="rowSecondMiddle1" onclick="document.location.href = '../emdt/referralsDefinition.form?task=8'"><img src="../referrals/images/imgReferAPatient.jpg" width="160" height="109"/><br/>Refer a Patient</div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowSecondMiddle2" onclick="document.location.href = '../referrals/findExistingPatient.form'"><img  src="../referrals/images/imgFindExisitngPatient.jpg" width="160" height="109"/><br/>Find Existing Patient</div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowThirdMiddle2" onclick="document.location.href = '../referrals/responsesFromReferral.form'"><br/><br/><br/><span class="spanResponseSent"><c:out value="${sessionScope.unacknowlegedPatientNo}"/></span><span class="homepageButtonTitle"> Responses</span></div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowThirdMiddle4" onclick="document.location.href = '../referrals/inCompleteReferrals.form'"><br/><br/><br/><span class="spanUnsentReferrals"><c:out value="${sessionScope.draftReferralsCount}"/></span><span class="homepageButtonTitle">Unsent Referrals</span></div>
		<!-- 
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowThirdMiddle4" onclick="document.location.href = '../referrals/inboxMessages.form'"><br/><br/><br/><span class="spanMessages"><c:out value="${inboxMessagesSize}"/></span><span class="homepageButtonTitle"> Message Inbox</span></div>
		 -->
	</div>
	<div class="rowSpacer" style="height:55px">
		&nbsp;
    </div>	
	<div class="container">
                <div class="columnSpace">&nbsp;&nbsp;</div>
                <div class="columnSpace">&nbsp;&nbsp;</div>
                <div class="columnSpace">&nbsp;&nbsp;</div>
                <div class="columnSpace">&nbsp;&nbsp;</div>
                <div class="columnSpace">&nbsp;&nbsp;</div>
                <div class="rowSecondMiddle1" onclick="document.location.href = '../referrals/commentsReport.form?dateRange=Today'"><img  src="../referrals/images/CommentsReport.png" width="160" height="109"/><br/>Comments Report<br/></div>
                <div class="columnSpace">&nbsp;&nbsp;</div>
                <div class="rowSecondMiddle2" onclick="document.location.href = '../meetings/resumeMeeting.form'"><img src="images/meetingReferrals.jpg" width="160" height="109"/><br/>Meetings<br/></div>
                <div class="columnSpace">&nbsp;&nbsp;</div>
	</div>
	<div class="rowSpacer" style="height:55px">
		&nbsp;
    </div>	
</div>

<%java.text.SimpleDateFormat crsdf = new java.text.SimpleDateFormat("yyyy");%>
<div align="center" class="pageFooter1" style="width:100%">
<div class="settingsHolder">&nbsp; <a href="#"  onclick="document.location.href = '../referrals/userSettings.jsp'"><img src="../images/16x16/cog.png"/>&nbsp;&nbsp;Settings..</a></div>
			Logged in as '<a href="../referrals/userform.form?userId=<c:out value="${webapp.currentUser.guid}"/>"><c:out value="${webapp.currentUser.username}"/></a>' | Copyright &#169; <a href="http://www.ardeo.com/" target="_blank">Ardeo Ltd.</a> 2000-<%=crsdf.format(new java.util.Date()) %> | Version: <c:out value="${webapp.version}"/>
			<div class="exitHolderRight1"><a href="../logout.form"><img src="../images/16x16/exit.png"/> Log out</a>&nbsp;</div>
</div>
</smvc:form>
</body>
</html>