<h3>Settings</h3>
<form id="form" action="<?php echo SITE_URL?>/admin/action.php/ticketsystem/settings_post" method="post">
<dl>
	<dt>Module Language</dt>
	<dd>Loads the relevant core/modules/TicketSystem/<b><xx></b>.lang.php file.</dd>
	<dd><input name="MODULE_LANGUAGE" type="text" value="<?php echo TicketSystemData::getSetting('MODULE_LANGUAGE'); ?>" /></dd>
	<dt>Staff Group</dt>
	<dd>Choose which user group is selected to populate the "Assign To" fields.</dd>
	<dd>
		<select name="SYSTEM_STAFF_GROUP">
			<?php $pg = PilotGroups::getAllGroups(); foreach($pg as $group) { ?>
			<option <?php if(TicketSystemData::getSetting('SYSTEM_STAFF_GROUP') == $group->groupid) echo "selected" ; ?> value="<?php echo $group->groupid; ?>"><?php echo $group->name; ?></option>
			<?php } ?>
		</select>
	</dd>
	<dt>Allow User Settings</dt>
	<dd>Choose whether to allow users to change their email settings or not. If not checked, users will always get an email!</dd>
	<dd><input name="ALLOW_USER_SETTINGS" type="CHECKBOX" <?php if (TicketSystemData::getSetting('ALLOW_USER_SETTINGS')==1) echo 'checked'; ?> /></dd>
	<dt></dt>
	<dd>
		<input type="submit" name="submit" value="Settings" /></dd>
</dl>
</form>
