diff --git a/iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientList.jsp b/iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientList.jsp index 49b3d1b796a0a8f807f228f210364e235fa8c5eb..565d87152112fc753e5a96d452b46c14b03207c3 100644 --- a/iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientList.jsp +++ b/iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientList.jsp @@ -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); //////////////////// ??????????????????????????????????????????