<div class="menu_title">
{if $user->id}{$user->login}{else}Авторизация{/if}
</div>


{if $user->id}

{if $user->mail_new_count}<a class="menu_left" href='/my.mail.php?only_unreaded'>Почта +{$user->mail_new_count}</a>{/if}
{if $user->friend_new_count}<a class="menu_left" href='/my.friends.php'>Предложения дружбы +{$user->friend_new_count}</a>{/if}
{if $user->group >= 2  AND $dcms->count('complaints')}<a class="menu_left" href='/dpanel/user.complaints.php'>Новые жалобы</a>{/if}

{php}
$menu = new menu('user');
$menu -> tpl = 'design.menu_left.tpl';
$menu -> display();
{/php}

{else}
<form action="/login.php?return={$URL}" method="post">
Логин:<br />
<input type="text" name="login" /><br />
Пароль:<br />
<input type="password" name="password" /><br />
<label><input type="checkbox" name="save_to_cookie" /> Запомнить меня</label><br />
<input type="submit" value="Вход" />
</form>
<form action="/reg.php?return={$URL}" method="post">
<input type="submit" value="Регистрация" />
</form>

{/if}

