<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<br />
<smvc:form action="admin/supportingStaffReport.form">
	<input type="hidden" name="redirectParams"
		value="<c:out value="${requestScope['javax.servlet.forward.query_string']}" />" />
	<c:if test="${errorMsg ne null}">
		<div class="error">
			<img src="../images/16x16/error.png" alt="!" border="0" />&nbsp;&nbsp;
			<c:out value="${errorMsg}" />
		</div>
	</c:if>
	<table width="50%">
		<tr>
			<td align="center">
				<h3>Supporting Staff Report</h3>
			</td>
		</tr>
		<tr>
			<td><c:forEach var="user" items="${usersList}" varStatus="s">
				<c:if test="${user.supportingStaffs!=null and (fn:length(user.supportingStaffs))>0}">

				<fieldset>
						<table width="100%">
							<tr>
								<td valign="top"><legend>
										<c:out value="${user.name}" />
									</legend></td>
							</tr>
							<tr>
								<td colspan="2">
									Supporting staff of <a href="userform.form?userId=${user.guid}"><c:out value="${user.name}" />, <c:out value="${user.hospital.hospitalName}" /> </a><br/>
								</td>
							</tr>
									<c:forEach var="supportingStaff" items="${user.supportingStaffs}"
										varStatus="s1">
										<tr>
											<td width=8%><a
												href="userform.form?userId=${supportingStaff.guid}">
													<c:out value="${s1.index+1}" />)
											</a></td>
											<td><a
												href="userform.form?userId=${supportingStaff.guid}">
												<c:out value="${supportingStaff.name}" /></a></td>
										</tr>
									</c:forEach>

						</table>
					</fieldset>
				</c:if>
				</c:forEach></td>
		</tr>
	</table>
</smvc:form>
