<%@ include file="/includes.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
<style>
.arialStyle {
	font: arial;
}
</style>

<title>NMDM Submissions Users Statistics Report</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 rel="stylesheet" href="../referrals/css/reports.css" type="text/css"
		media="screen, print">
	
	<style media="print" type="text/css">
	.noPrint {
		visibility: hidden;
		display: none;
	}
	</style>
</head>
<body>


<c:choose>
	<c:when
		test="${(referralsUserReport ne null) and (fn:length(referralsUserReport) ne 0)}">
		<h2>National MDM Users Statistics Summary between
				<c:out value="${fromDate}"/> - <c:out value="${toDate}"/></h2>
		<br />
		
		<table border="1" class="report">
			<tr align="center" style="height: 50px">
				<th style="width: 160px">User</th>
				<th>No. of Logins</th>
				<th>No. of Incomplete NMDM Submissions</th>
				<th>No. of NMDM Submissions Referred</th>
				<th>No. of NMDM Submissions Viewed</th>
				<th>No. of NMDM Submissions Responsed</th>
				<th>No. of NMDM Submissions Completed</th>
				<th>No. of NMDM Submissions Assigned</th>
			</tr>

			<c:forEach var="report" items="${referralsUserReport}"
				varStatus="line">
				<tr>
					<td align="center">&nbsp;<c:out value="${report.userName}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numTimesLogged}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numincompleteNmdmSubmission}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numPatientsRef}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numPatientsViewed}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numRespSent}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numRefCompleted}"/></td>
					<td align="center">&nbsp;<c:out value="${report.numNmdmSubmissionAssigned}"/></td>

				</tr>
			</c:forEach>

			<tr>
				<th align="right">Totals:</th>
				<td align="center">&nbsp;<c:out value="${totalSignIn}"/></td>
				<td align="center">&nbsp;<c:out value="${totalIncomplete}"/></td>
				<td align="center">&nbsp;<c:out value="${totalPatientReferred}"/></td>
				<td align="center">&nbsp;<c:out value="${totalPatientViewed}"/></td>
				<td align="center">&nbsp;<c:out value="${totalResponseSent}"/></td>
				<td align="center">&nbsp;<c:out value="${toatlCompleteReferralsViewed}"/></td>
				<td align="center">&nbsp;<c:out value="${totalAssigned}"/></td>
			</tr>
		</table>
		<br />
		<table border="1" class="report">
			<tr>
				<td style="width: 160px">Total Number of
				Users</td>
				<td style="width: 164px" align="center"><c:out value="${totalNumberOfUsers}"/></td>
			</tr>
		</table>
		<br />
	</c:when>
	<c:otherwise>
		<div><b><u>NMDM Submissions  Users Statistics
		Summary From <c:out value="${fromDate}"/> To <c:out value="${toDate}"/></u></b></div>
		<br />
		<br />
		<br />
		<div><b>There is no NMDM Submissions Users
		Report for given date range.</b></div>

	</c:otherwise>
</c:choose>

<br />

<div id="navigation"  class="navButtonBar noPrint">
	<a href="nmdmSubmissionsReport.jsp?reportType=<c:out value="${reportType}"/>" class="noPrint"><img src="../images/16x16/arrow_undo.png" />&nbsp;&nbsp;Return to previous screen</a>
	&nbsp; &nbsp; &nbsp;
	<a href="javascript:print();"><img border="0" alt="Printer icon" src="../images/16x16/printer.png"> Print</a>
	&nbsp; &nbsp; &nbsp;
</div>




</body>
</html>