<html>

<head>
	<title>[% $user->gettext('Benutzergruppe') %]</title>	
	<link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/main.css">	
	<script type="text/javascript">
	<!--
		function closing() {
			[% if $tid > 0 %]
				window.opener.location.href = "index.php?module=ticket&event=show&id=[% $tid %]";
			[% /if %]
			window.close();
		}
	// -->
	</script>
</head>

<body id="PopUpForm" [% if $closing %]onload="closing()"[% /if %]>

<form action="index.php?module=ticket&event=changeGroupSupporter" method="post" id="hm" name="hm">
	<input type="hidden" name="tid" value="[% $tid %]" />
	<input type="hidden" name="save" value="0" id="save" />

<table class="formular center" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td class="topleft">[% $user->gettext('Benutzergruppenzuweisung') %]</td>
        <td class="topright">&nbsp;</td>
    </tr>
    <tr>
    	<td colspan="2">

			<table class="ticket_inner" cellspacing="0" border="0">
				<tr>
					<td>[% $user->gettext('Benutzergruppe') %] :</td>
					<td>&nbsp;&nbsp;</td>
				</tr>
				[% if $user->hasRight(215) %]
				<tr>
					<td>
						<select name="UserGroupID" size="1" id="UserGroupID" onchange="document.getElementById('hm').submit();">
							<option value="0" [% if $UserGroupID == 0 %]selected="selected"[% /if %]>[% $user->gettext('Keine Gruppe') %]</option>
							[% foreach from=$usergroups item=group %]
								<option value="[% $group.group_id %]" [% if $group.group_id == $UserGroupID %]selected="selected"[% /if %]>[% $group.name %]</option>
							[% /foreach %]
						</select>
					</td>
				</tr>
				[% /if %]
			</table>
	
			<div style="text-align:right;margin-top:5px;">
                <input type="button" class="button button-green" value="[% $user->gettext('Speichern') %]" onclick="document.getElementById('save').value=1;document.getElementById('hm').submit();" />
			</div>

		</td>
	</tr>
</table>

</form>


</body>
</html>
