{**
* XS2: Форма редактирования пользователя
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
{* Форма авторизации пользователя *}
{xs2Fetch mod="users" obj="user" met="login"}
{* /Форма авторизации пользователя *}
{* Форма редактирования пользователя *}
{if $_ERR}
{* Выводим сообщения об ошибках, если они есть *}
<ul>
{foreach from=$_ERR item="errorMsg"}
<li>{$errorMsg}</li>
{/foreach}
</ul>
{/if}
{if $currentUser}
{* Выводим форму редактирования только, если есть текущий авторизованный пользователь *}
Редактирование пользователя {$currentUser.Login}<br>
<form name="userRegister" method="POST" action="{$_THE.REQUEST_URI}" enctype="multipart/form-data">
<input type="hidden" name="action" value="editUser">
ФИО: <input type="text" name="NName" value="{$currentUser.NName}"><br>
Дата рождения: <input type="text" name="Birthday" value="{$currentUser.Birthday}"><br>
Пароль: <input type="password" name="Password1"><br>
Пароль (повтор): <input type="password" name="Password2"><br>
Пол: <input type="radio" value="m" name="Sex"{if $currentUser.Sex eq 'm'} checked{/if}> - мужской
<input type="radio" value="f" name="Sex"{if $currentUser.Sex eq 'f'} checked{/if}> - женский<br>
Страна: <input type="text" name="Country" value="{$currentUser.Country}"><br>
Город: <input type="text" name="City" value="{$currentUser.City}"><br>
Телефон: <input type="text" name="Phone" value="{$currentUser.Phone}"><br>
Email: <input type="text" name="Email" value="{$currentUser.Email}"><br>
О себе: <input type="text" name="About" value="{$currentUser.About}"><br>
Аватара:<br>
{if $currentUser.Avatar}
<img src="{$currentUser.Avatar.path}">
{/if}
<input type="file" name="Avatar">
<input type="submit" value="Сохранить">
</form>
{else}
Вы не авторизованы.
{/if}
{* /Форма редактирования пользователя *}
|
|