<!-- начало пользователи -->
<div id="admin_users_main">
	<h1>Редактирование пользователя</h1>
	<a href="{url}" title="назад"><img class="icon" src="/skins/default/images/icons/simple_arrow_left.png" alt="назад" /></a>
	<form method="post" action="">
		<div class='mod_list'>
			<input type="hidden" name="token" value="{$_user->token}" />
			<p>Логин: <br /><input type="text" name="login" value="{$smarty.post.login|default:$login|escape}" size="40" maxlength="40"/> </p>
			<p>Пароль: <br /><input type="password" name="pass" value="" size="40" maxlength="40"/> </p>
			<p>Ввести повторно: <br /><input type="password" name="pass1" value="" size="40" maxlength="40"/> </p>
			<p>email: <br /><input type="text" name="email" value="{$smarty.post.email|default:$email|escape}" size="40" maxlength="40"/> </p>
			<p>Группа:<br />
				<select name="group_id">
					{foreach $possible_groups as $ggroup_id=>$group}
						<option value="{$ggroup_id}" {if $ggroup_id==$smarty.post.group_id && $smarty.server.REQUEST_METHOD=='POST'} selected="selected"{elseif $ggroup_id==$group_id} selected="selected"{/if}{if $group.disabled} disabled="disabled"{/if}>{$group.name_html}</option>
					{/foreach}
				</select>
			</p>
			<p>
				Активирован: <input {if $status}checked="checked"{/if} name="status" type="checkbox" /> 
			</p>
			<input type="submit" value="Сохранить" />
		</div>

	</form>
</div>
<!-- конец пользователи -->