<%@ include file="/includes.jsp" %>
<table class="menu">
	<tr>
		<th class="menuTitle"><img border="0" src='images/16x16/icon.png' alt='System'/>&nbsp;System</th>
	</tr>
	<tr>
		<td class="menuItem"><a href="../admin/index.jsp">About eMDT</a></td>
	</tr>
	<tr>
		<td class="menuItem"><a href="../admin/userform.form?userId=<c:out value="${webapp.currentUser.guid}"/>">Your User Profile</a></td>
	</tr>
	<sec:authorize access="hasRole('ADMIN')">
		<c:if test="${admin.createUsersEnabled or admin.createRolesEnabled or admin.createGroupsEnabled }">
			<tr>
				<td class="menuSectionTitle">Security</td>
			</tr>
			<c:if test="${admin.createUsersEnabled }">
				<tr>
					<td class="menuItem"><a href="../admin/listUsers.jsp">Users</a></td>
				</tr>
			</c:if>
			<c:if test="${admin.createGroupsEnabled }">
				<tr>
					<td class="menuItem"><a href="../admin/groups.form">Groups</a></td>
				</tr>
			</c:if>
			<c:if test="${admin.createRolesEnabled }">
				<tr>
					<td class="menuItem"><a href="../admin/updateRoles.form">Roles</a></td>
				</tr>
			</c:if>
				<tr>
					<td class="menuItem"><a href="../admin/userAuditLog.form">View User Audit Log</a></td>
				</tr>
		</c:if>
		
		
		<tr>
			<td class="menuSectionTitle">Communication</td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/messaging.form">User Messaging Preferences</a></td>
		</tr>
		<!-- EMDT-637 not working and of unknown usefulness.
		<tr>
			<td class="menuItem"><a href="../emdt/frequency.form">Set Notifications Schedule</a></td>
		</tr>
		-->
		<tr>
			<td class="menuItem"><a href="../emdt/notifications.jsp" onclick="return dataGuard()">Form Notifications</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/emailSettings.form">Send Test Email</a></td>
		</tr>
	<sec:authorize access="hasRole('ADMIN')">
		<tr>
			<td class="menuItem"><a href="../admin/systemSettings.form">System Messaging</a></td>
		</tr>
		<!--
		<tr>
			<td class="menuItem"><a href="../emdt/escalation.form">Escalations</a></td>
		</tr>
		-->
	</sec:authorize>

		<tr>
			<td class="menuSectionTitle">Content&nbsp;Admin</td>
		</tr>
		<tr>
			<td class="menuItem"><a onclick="return dataGuard()" href='../emdt/formObject.form?type=0&id=<c:out value="${emdt.formDomain.id}"/>'>Form&nbsp;Editor</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/listAdmin.form">List Editor</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/listhospitals.form">Hospitals</a></td>
		</tr>		
		<tr>
			<td class="menuItem"><a onclick="return dataGuard()" href='../emdt/referralsDefinition.form'>Referral&nbsp;Pathways</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/iepSetup.form">IEP Setup</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/formSequenceList.form">Sequences</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/inventorySelection.form">Inventory</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../emdt/webShareFiles.form">File Sharing</a></td>
		</tr>
		<tr>
			<td class="menuItem"><a href="../admin/configuration.form?isLoginMessage=yes">Login Screen Message</a></td>
		</tr>
		<tr>
			<td class="menuSectionTitle">Import/Export</td>
		</tr>
		<tr>
			<td class="menuitem"><a href="../admin/formDefinitionImport.form">Import Forms</a></td>
		</tr>
		<tr>
			<td class="menuitem"><a href="../admin/formDefinitionExport.jsp">Export Forms</a></td>
		</tr>
		      <tr>
            <td class="menuitem"><a href="../admin/importUsers.form">Import Users</a></td>
        </tr>
        <tr>
            <td class="menuitem"><a href="../admin/exportUsers.jsp">Export Users</a></td>
        </tr>
        <tr>
        <c:choose>
			<c:when test="${webapp.expiresIn <= 0}">
			    <td class="menuitem"><a href="javascript:alert('This software license has expired. Hence, Patients cannot be Imported from SAP.')">Import PAS Feeds</a></td>
			</c:when>
			<c:otherwise>
 				<td class="menuitem"><a href="../admin/pasPatientImport.form">Import PAS Feeds</a></td>
 			</c:otherwise>
		</c:choose>
		</tr>
		<tr>
			<td class="menuItem">
				<a href="../emdt/ReportingExport.form?initially=true" onclick="return dataGuard()">Reporting Export</a>
			</td>
		</tr>
		
	</sec:authorize>
</table>