Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

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

Revision 4158, 4.8 kB (checked in by bwolfe, 4 months ago)

Merging report-api-refactoring to trunk [2696]:[4157]

  • Property svn:eol-style set to CRLF
Line 
1 <%@ include file="/WEB-INF/template/include.jsp" %>
2
3 <openmrs:require privilege="View Administration Functions" otherwise="/login.htm" redirect="/admin/index.htm" />
4
5 <spring:message var="pageTitle" code="index.title" scope="page"/>
6 <%@ include file="/WEB-INF/template/header.jsp" %>
7
8 <style>
9         .adminMenuList #menu li {
10                 display: list-item;
11                 border-left-width: 0px;
12                
13         }
14         .adminMenuList #menu li.first {
15                 display: none;
16         }
17         .adminMenuList #menu {
18                 list-style: none;
19                 margin-left: 10px;
20                 margin-top: 0;
21         }
22         h4 {
23                 margin-bottom: 0;
24         }
25 </style>
26
27 <h2><spring:message code="admin.title"/></h2>
28
29 <table border="0" width="93%">
30         <tbody>
31         <tr>
32        
33                 <td valign="top" width="30%">
34                
35                         <openmrs:hasPrivilege privilege="View Users,Manage Roles,Manage Privileges">
36                                 <div class="adminMenuList">
37                                         <h4><spring:message code="User.header"/></h4>
38                                                 <%@ include file="users/localHeader.jsp" %>
39                                 </div>
40                         </openmrs:hasPrivilege>
41                        
42                         <openmrs:hasPrivilege privilege="View Patients,Manage Tribes,Manage Identifier Types">
43                                 <div class="adminMenuList">
44                                         <h4><spring:message code="Patient.header"/></h4>
45                                                 <%@ include file="patients/localHeader.jsp" %>
46                                 </div>
47                         </openmrs:hasPrivilege>
48                        
49                         <openmrs:hasPrivilege privilege="Manage Relationships,Manage Person Attribute Types">
50                                 <div class="adminMenuList">
51                                         <h4><spring:message code="Person.header"/></h4>
52                                                 <%@ include file="person/localHeader.jsp" %>
53                                 </div>
54                         </openmrs:hasPrivilege>
55                        
56                         <openmrs:hasPrivilege privilege="View Encounters,Manage Locations,Manage Encounter Types">
57                                 <div class="adminMenuList">
58                                         <h4><spring:message code="Encounter.header"/></h4>
59                                                 <%@ include file="encounters/localHeader.jsp" %>
60                                 </div>
61                         </openmrs:hasPrivilege>
62                        
63                         <openmrs:hasPrivilege privilege="View Encounters,Manage Mime Types">
64                                 <div class="adminMenuList">
65                                         <h4><spring:message code="Obs.header"/></h4>
66                                                 <%@ include file="observations/localHeader.jsp" %>
67                                 </div>
68                         </openmrs:hasPrivilege>
69                        
70                         <openmrs:hasPrivilege privilege="View Orders,Manage Order Types">
71                                 <div class="adminMenuList">
72                                         <h4><spring:message code="Order.header"/></h4>
73                                                 <%@ include file="orders/localHeader.jsp" %>
74                                 </div>
75                         </openmrs:hasPrivilege>
76
77                         <openmrs:hasPrivilege privilege="View Scheduler,Manage Scheduler">
78                                 <div class="adminMenuList">
79                                         <h4><spring:message code="Scheduler.header"/></h4>
80                                                 <%@ include file="scheduler/localHeader.jsp" %>
81                                 </div>
82                         </openmrs:hasPrivilege>
83                
84                         <openmrs:hasPrivilege privilege="Manage Programs">
85                                 <div class="adminMenuList">
86                                         <h4><spring:message code="Program.header"/></h4>
87                                                 <%@ include file="programs/localHeader.jsp" %>
88                                 </div>
89                         </openmrs:hasPrivilege>
90                
91                 </td>
92                
93                 <td valign="top" width="30%">
94                
95                         <openmrs:hasPrivilege privilege="View Concepts,Manage Concept Classes,Manage Concept Datatypes,Manage Concept Proposals">
96                                 <div class="adminMenuList">
97                                         <h4><spring:message code="Concept.header"/></h4>
98                                                 <%@ include file="concepts/localHeader.jsp" %>
99                                 </div>
100                         </openmrs:hasPrivilege>
101                        
102                         <openmrs:hasPrivilege privilege="View Forms,Manage Field Types">
103                                 <div class="adminMenuList">
104                                         <h4><spring:message code="Form.header"/></h4>
105                                                 <%@ include file="forms/localHeader.jsp" %>
106                                 </div>
107                         </openmrs:hasPrivilege>
108
109                         <openmrs:hasPrivilege privilege="Run Reports,Manage Reports,View Reports,View Data Exports">
110                                 <div class="adminMenuList">
111                                         <h4><spring:message code="Report.header"/></h4>
112                                                 <%@ include file="reports/localHeader.jsp" %>
113                                 </div>
114                         </openmrs:hasPrivilege>
115                        
116                         <openmrs:hasPrivilege privilege="Edit Patients,Audit,View Patients">
117                                 <div class="adminMenuList">
118                                         <h4><spring:message code="Maintenance.header"/></h4>
119                                                 <%@ include file="maintenance/localHeader.jsp" %>
120                                 </div>
121                         </openmrs:hasPrivilege>
122
123                 </td>
124                 <td valign="top" width="30%">
125                        
126                         <openmrs:hasPrivilege privilege="Manage Modules">
127                                 <div class="adminMenuList">
128                                         <h4><spring:message code="Module.header"/></h4>
129                                                 <%@ include file="modules/localHeader.jsp" %>
130                                 </div>
131                         </openmrs:hasPrivilege>
132                        
133                         <openmrs:extensionPoint pointId="org.openmrs.admin.list" type="html">
134                                 <openmrs:hasPrivilege privilege="${extension.requiredPrivilege}">
135                                         <div class="adminMenuList">
136                                                 <h4><spring:message code="${extension.title}"/></h4>
137                                                 <ul id="menu">
138                                                         <c:forEach items="${extension.links}" var="link">
139                                                                 <li><a href="${pageContext.request.contextPath}/${link.key}"><spring:message code="${link.value}"/></a></li>
140                                                         </c:forEach>
141                                                 </ul>
142                                         </div>
143                                 </openmrs:hasPrivilege>
144                         </openmrs:extensionPoint>
145                        
146                 </td>
147                        
148         </tr>
149         </tbody>
150 </table>
151
152 <%@ include file="/WEB-INF/template/footer.jsp" %>
Note: See TracBrowser for help on using the browser.