Skip to content
Snippets Groups Projects
Commit cedcfd48 authored by mjw11's avatar mjw11
Browse files

Add view all preregistered patients page UC92

parent eae7a1bc
No related branches found
No related tags found
1 merge request!22Merge UC92 into Master
<%@taglib uri="/WEB-INF/tags.tld" prefix="itrust"%>
<%@page errorPage="/auth/exceptionHandler.jsp"%>
<%@page import="java.util.List"%>
<%@include file="/global.jsp" %>
<%
pageTitle = "iTrust - View Preregistered Patients";
%>
<%@include file="/header.jsp" %>
<br />
<%
// Have to get the DAO
%>
<div align=center>
<table id="patientList" class="fTable">
<thead>
<tr>
<th colspan="4" style="text-align: center;">All Preregistered Patients</th>
</tr>
<tr>
<th align="center" width="200"><div align="center">Patient Name</div></th>
</tr>
</thead>
<tbody>
<%
List<PreRegisteredBean> beans = patientDAO.getPreregisteredPatients();
for (PreregisteredBean b : beans) {
Patient p = b.getPatient();
%>
<tr>
<td align="center">
<a href="editPreregisteredPatient.jsp?pid=<%= StringEscapeUtils.escapeHtml(p.getMID().toString()) %>">
<%= StringEscapeUtils.escapeHtml(patient.getFullName().toString()) %>
</a>
</td>
</tr>
<%
}
%>
<th colspan="4"></th>
</tbody>
</table>
</div>
<%@include file="/footer.jsp"%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment