<%@ 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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>eMDT - Manage Referrals - 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>

<c:set var="msg" value='<%=request.getParameter("errorMsg")%>'/>
<c:choose>
			<c:when test="${requestScope.successMsg ne null || requestScope.errorMsg ne null}">
				<c:if test="${requestScope.successMsg ne null}">
						<div class="message"><img
							src="../images/16x16/information.png" alt="i" />
						<c:out value="${requestScope.successMsg}"/></div>
					</c:if>
					 <c:if test="${requestScope.errorMsg ne null}">
						<div class="error"><img src="../images/16x16/error.png" alt="!" border="0"/>&nbsp;&nbsp;<c:out value="${requestScope.errorMsg}"/></div><br/>
					</c:if>
					
					 <c:if test="${msg ne null}">
						<div class="error"><img src="../images/16x16/error.png" alt="!" border="0"/>&nbsp;&nbsp;<c:out value="${msg}"/></div><br/>
					</c:if>
			</c:when>
			<c:otherwise>
			<c:if test="${msg ne null}">
						<div class="error" align="center"><img src="../images/16x16/error.png" alt="!" border="0"/>&nbsp;&nbsp;<c:out value="${msg}"/></div><br/>
					</c:if>
			</c:otherwise>
</c:choose>
<div class="bodyContainer"><br/><br/>
	<div class="container">
		<div class="heading">&nbsp;<c:out value="${centralHubHospital.hospitalName}"/> Referrals Management</div>
	</div>
	<div class="rowSpacer" style="height:15px">
		&nbsp;
	</div>
	<div class="largeContainer">
		<div class="rowSecondMiddle2" onclick="document.location.href = '../referrals/findExistingPatient.form'"><img  src="../referrals/images/imgFindExisitngPatient.jpg" width="160" height="109"/><br/><spring:message code="referrals.home.findpatient" text="Find Patient" /></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/><spring:message code="referrals.home.meetings" text="Meetings" /><br/></div>
	    <div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowSecondMiddle2" onclick="document.location.href = '../referrals/commentsReport.form?dateRange=Today'"><img  src="../referrals/images/CommentsReport.png" width="160" height="109"/><br/><spring:message code="referrals.home.comments" text="Comments Report" /><br/></div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowSecondMiddle2" onclick="document.location.href = '../referrals/referralsReportMenu.jsp'"><img src="images/report.png" width="160" height="109"/><br/><spring:message code="referrals.home.reports" text="Reports" /><br/></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}"/>&nbsp;</span><span class="homepageButtonTitle"><spring:message code="referrals.home.messageinbox" text="Message Inbox" /></span></div>
	</div>
	<div class="rowSpacer" style="height:55px">
		&nbsp;
	</div>
	<div class="containerWithCommentManagement">
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		
		<div class="rowThirdMiddle4" onclick="document.location.href = '../referrals/unregisteredPatients.form'"><br/><br/><br/><span class="spanUnregistered"><c:out value="${unregisteredPatientsCount}"/>&nbsp;</span><span class="homepageButtonTitle"><spring:message code="referrals.home.unregistered" text="Unregistered Patients" /></span></div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowThirdMiddle1" onclick="document.location.href = '../referrals/referralsIn.form'"><br/><br/><br/><span class="spanReferralsIn"><c:out value="${referralsInCount}"/>&nbsp;</span><span class="homepageButtonTitle"><spring:message code="referrals.home.referralsin" text="Referrals In" /></span></div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowThirdMiddle2" onclick="document.location.href = '../referrals/responseSent.form'"><br/><br/><br/><span class="spanResponseSent"><c:out value="${responsesSentCount}"/>&nbsp;</span><span class="homepageButtonTitle"><spring:message code="referrals.home.responses" text="Response Sent" /></span></div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
		<div class="rowThirdMiddle3" onclick="document.location.href = '../referrals/completed.form'"><br/><br/><br/><span class="spanCompleted"><c:out value="${completedCount}"/>&nbsp;</span><span class="homepageButtonTitle"><spring:message code="referrals.home.completed" text="Completed" /></span></div>
		<div class="columnSpace">&nbsp;&nbsp;</div>
	</div>
	
	<div class="rowSpacer">
		&nbsp;
	</div>
	<div class="rowSpacer">&nbsp;</div>
	<div class="rowSpacer" align="center" >
		<a class="refreshLink" href="javascript:document.forms[0].submit();"><img src="../referrals/images/refresh.jpg"/>Refresh</a>
	</div>
	<div class="rowSpacer" style="height:55px">
		&nbsp;
	</div>
</div>
<div align="center" class="pageFooter1" style="width:100%">
<% java.text.SimpleDateFormat crsdf = new java.text.SimpleDateFormat ("yyyy"); %>
<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>
