{{include file='head.tpl' inline}}

<script type="text/javascript">
	var request_type = '{{$_GET.request_type}}';
</script>
</head>
<body>
	<h1>{{$lang.Users_groups}}</h1>
	{{if count( $aUserGroups ) > 0}}
		<form action="?p={{$_GET.p}}" method="post" id="groups-multiselect">
			<fieldset>
				<table class="list" id="groups">
					<thead>
						<tr><th class="enabled">{{$lang.Select}}</th><th class="id">{{$lang.Id}}</th><th class="name">{{$lang.First_surname}}</th></tr>
					</thead>
					<tbody>
						{{foreach from=$aUserGroups item=aGroup}}
							<tr>
								<td class="enabled"><input type="checkbox" name="aSelected[{{$aGroup.iGroup}}]" id="selected-{{$aGroup.iGroup}}" /></td> 
								<td class="id"><label for="selected-{{$aGroup.iGroup}}">{{$aGroup.iGroup}}</label></td>
								<th class="name"><label for="selected-{{$aGroup.iGroup}}">{{$aGroup.sName}}</label></th>
							</tr>
						{{/foreach}}
					</tbody>
				</table>
				<div class="save float"><div class="floatcontainer">
					<input type="submit" class="submit" name="sOption" value="{{$lang.Save}}" />
				</div></div>
			</fieldset>
		</form>
	{{else}}
		<div class="msg" id="error">
			<img src="{{$config.dir_templates}}admin/images/ico/msg_error.png" class="imgv" alt="" /> {{$lang.Data_not_found}}
		</div>
	{{/if}}
	<div id="footer"></div>
</body>
</html>