Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

root/openmrs/trunk/web/WEB-INF/view/admin/patients/index.jsp

Revision 4095, 1.7 kB (checked in by catullus, 4 months ago)

Set the svn:eol-style property to CRLF.

  • Property svn:eol-style set to CRLF
Line 
1 <%@ include file="/WEB-INF/template/include.jsp" %>
2
3 <openmrs:require privilege="View Patients" otherwise="/login.htm" redirect="/admin/patients/index.htm" />
4
5 <%@ include file="/WEB-INF/template/header.jsp" %>
6 <%@ include file="localHeader.jsp" %>
7
8 <openmrs:htmlInclude file="/scripts/dojo/dojo.js" />
9
10 <script type="text/javascript">
11         dojo.require("dojo.widget.openmrs.PatientSearch");
12        
13         dojo.addOnLoad( function() {
14                
15                 searchWidget = dojo.widget.manager.getWidgetById("pSearch");                   
16                
17                 dojo.event.topic.subscribe("pSearch/select",
18                         function(msg) {
19                                 document.location = "patient.form?patientId=" + msg.objs[0].patientId;
20                         }
21                 );
22                
23                 searchWidget.inputNode.select();
24                 changeClassProperty("description", "display", "none");
25                
26                 searchWidget.addPatientLink =  "<a href='${pageContext.request.contextPath}/admin/person/addPerson.htm?postURL=patient.form'><spring:message javaScriptEscape="true" code="Patient.addNew"/></a>";
27                
28         });
29        
30 </script>
31
32 <h2><spring:message code="Patient.title"/></h2>
33
34 <a href="${pageContext.request.contextPath}/admin/person/addPerson.htm?personType=patient&viewType=edit"><spring:message code="Patient.create"/></a> |
35
36 <a href="${pageContext.request.contextPath}/admin/patients/findDuplicatePatients.htm"><spring:message code="Patient.merge.find"/></a><br/><br/>
37
38 <div id="findPatient">
39         <b class="boxHeader"><spring:message code="Patient.find"/></b>
40         <div class="box">
41                 <div dojoType="PatientSearch" widgetId="pSearch" inputName="patientName" searchLabel='<spring:message code="Patient.searchBox"/>' patientId='<request:parameter name="patientId" />' showIncludeVoided='true'></div>
42         </div>
43 </div>
44
45 <%@ include file="/WEB-INF/template/footer.jsp" %>
Note: See TracBrowser for help on using the browser.