Skip to content
Snippets Groups Projects
Commit 37b7cb9f authored by xuechen5's avatar xuechen5
Browse files

Add "Activate" & "Deactivate" Buttons, Add link to Patient Info

parent 4dfe33ac
No related branches found
No related tags found
1 merge request!22Merge UC92 into Master
......@@ -60,10 +60,21 @@ loggingAction.logEvent(TransactionType.PATIENT_LIST_VIEW, loggedInMID, 0, "");
<form action="viewReport.jsp" method="post" name="myform">
<table class="display fTable" id="patientList" align="center">
<script type="text/javascript">
function showRisks(){ ///////////////////////////////////// for BUTTONS DEACTIVE, Should HIDE ROW.
//document.getElementById("risks").style.display="inline";
//document.getElementById("riskButton").style.display="none";
return;
}
</script>
<thead>
<tr class="">
<th>Approve</th>
<th>Deactivate</th>
<th>Name</th>
<th>Address</th>
<th>Email</th>
......@@ -79,8 +90,19 @@ loggingAction.logEvent(TransactionType.PATIENT_LIST_VIEW, loggedInMID, 0, "");
patientsList.add(bean);
%>
<tr>
<td>
<a href="editPatient.jsp" style="text-decoration: none;">
<input type=button value="Activate" onclick="javascript:showRisks();">
</a>
</td>
<td>
<a href="editPatient.jsp" style="text-decoration: none;">
<input type=button value="DeActivate" onclick="javascript:showRisks();">
</a>
</td>
<td >
<a href="editPHR.jsp?patient=<%= StringEscapeUtils.escapeHtml("" + (index)) %>">
<a href="viewPreRegisteredPatientInfo.jsp?patient=<%= StringEscapeUtils.escapeHtml("" + (index)) %>">
<%= StringEscapeUtils.escapeHtml("" + (bean.getFullName())) %>
......@@ -95,7 +117,6 @@ loggingAction.logEvent(TransactionType.PATIENT_LIST_VIEW, loggedInMID, 0, "");
</tr>
<%
index ++;
}
session.setAttribute("patients", patientsList); //////////////////// ??????????????????????????????????????????
......
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