<?
if ($is_logged == TRUE){

$login_panel = <<<HTML
<div style="padding-top:2px; padding-left:2px;">Привет, <b>{$member_id['name']}</b>!</div><br>
<table width="100%" border="0" class="copy">
  <tr>
HTML;

if ($user_group[$member_id['user_group']]['allow_admin']) {
$login_panel .= <<<HTML
    <td style="padding:2px;" width=100><a href="{$adminlink}" target="_blank">Админцентр</a></td>
HTML;
}
$login_panel .= <<<HTML
	
    <td style="padding:2px;" width=100><a href="{$link_profile}">Мой профиль</a></td>
    <td style="padding:2px;" width=100><a href="{$link_pm}">Cообщения ({$member_id['pm_unread']} | {$member_id['pm_all']})</a></td>
    <td width=80><a href="{$link_newposts}">Обзор непрочитанного</a></td>
  </tr>
  <tr>
    <td style="padding:2px;" width=100><a href="{$link_favorites}">Мои закладки</a></td>
    <td style="padding:2px;" width=100><a href="{$link_stats}">Статистика</a></td>
    <td style="padding:2px;" width=100><a href="{$link_addnews}">Добавить новость</a></td>
    <td style="padding:2px;" width="60%"></td>
  </tr>
</table>
<br>
<div style="padding-top:2px; padding-bottom:5px; padding-left:2px;"><a onclick="javascript: showBusyLayer()" href="{$link_logout}"><b>Завершить сеанс!</b></a></div>
HTML;

} else {
$login_panel = <<<HTML
 			<div style="padding-top:5px;"><form method="post" onsubmit="javascript:showBusyLayer()">
<table width="100%" border="0" class="stext">
  <tr>
    <td width="5%">Логин</td>
    <td width="11%"><input type="text" name="login_name" style="width:103px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>
    <td width="6%">Пароль</td>
    <td width="11%"><input type="password" name="login_password" style="width:103px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>
    <td width="13%" align="left"><div style="padding-top:2px; padding-left:5px;">
                    <input onclick="submit();" name="image" type="image" src="{THEME}/images/send.png">
					<input name="login" type="hidden" id="login" value="submit">
    </div></td>
    <td width="54%" align="left"><div style="padding-top:8px; padding-left:20px; padding-bottom:5px;"><a href="{$link_regist}">Регистрация на сайте!</a><br /><a href="{$link_lost}">Забыли пароль?</a></div></td>
  </tr>
</table></form>
              </div>
HTML;
}
?>