<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<sec:authorize access="hasRole('ADMIN')">
<fieldset style="width: 500px" class="nobg"><legend>System Messaging Settings</legend>
<fieldset class="buttonFieldset">
<smvc:form modelAttribute="systemSettingsForm" method="POST" id="sendTestEmailFm" name="sendTestEmailFm" action="../admin/systemSettings.form">
	<input type="hidden" name="redirectParams" value="<c:out value="${requestScope['javax.servlet.forward.query_string']}" />" />
	<table align="left" width="100%">
		<tr>
			<td colspan="3" align="center">
				<b>System Messaging Settings</b>
				<br/>
				&nbsp;
			</td>
		</tr>
		<tr>
			<td colspan="3" align="left">
				<img src="../images/16x16/information.png"/>
				This screen controls whether various messaging events are enabled.<br/>
				Note that these global settings override the user messaging preferences.
				<hr />
			</td>
		</tr>
		<tr>
			<td align="left" colspan="3" style="color : #0000FF;"><b><c:out value="${saveSuccessMessage}"/></b></td>
		</tr>
				<tr>
			<td colspan="3" align="right">Select: <a href="javascript:select('all')">All</a> | <a href="javascript:select('none')">None</a> | <a href="javascript:select('invert')">Invert</a></td>
		</tr>								
		<c:forEach var="activeSystemOptionsKeyValues" items="${systemOptionKeyValueList}">
		<tr>
			<td align="left" width="50%" class="input"><c:out value="${activeSystemOptionsKeyValues.description}"/></td>
			<td align="left" width="30%" class="input"><c:out value="${activeSystemOptionsKeyValues.flagLevel}"/></td>
			<td align="center" width="20%">
				<smvc:checkbox path="selectedSystemOptions" value="${activeSystemOptionsKeyValues.id}" cssClass="allNonInvert"/>&nbsp;<br/>
			</td>
		</tr>
		</c:forEach>
		<tr>
			<td colspan="3" align="right"><input type="submit" value="Save" /></td>
		</tr>
	</table>
</smvc:form> </fieldset>
</fieldset></sec:authorize>
