<?php
if ($is_logged == TRUE){

$login_panel = <<<HTML
														<span class="niftyquick" style="display: block;"><span class="yoo-login"><span class="logout">
															<span class="member">Привет, <b>{$member_id['name']}</b>!</span>
															<span class="columns2">
																<ul class="level2 first">
HTML;

if ($user_group[$member_id['user_group']]['allow_admin']) {
$login_panel .= <<<HTML
																	<li><a href="{$adminlink}" target="_blank"><b>Админцентр</b></a></li>
HTML;
} else {
$login_panel = <<<HTML
																	<li><a>&nbsp;</a></li>
HTML;
}
$login_panel .= <<<HTML
																	<li><a href="{$link_profile}">Мой профиль</a></li>
																	<li><a href="{$link_pm}">ПС ({$member_id['pm_unread']} | {$member_id['pm_all']})</a></li>
																	<li><a href="{$link_favorites}">Мои закладки</a></li>
																</ul>
																<ul class="level2 last">
																	<li><a href="{$link_addnews}">Опубликовать</a></li>
																	<li><a href="{$link_stats}">Статистика</a></li>
																	<li><a href="{$link_newposts}">Непрочитанное</a></li>
																	<li><a onclick="javascript: showBusyLayer()" href="{$link_logout}"><b>Выход</b></a></li>
																</ul>
															</span>
														</span></span></span>
HTML;

} else {
$login_panel = <<<HTML
													<form action="" method="post" name="login">
														<span class="niftyquick" style="display: block;"><span class="yoo-login"><span class="login">
															<input name="login" type="hidden" id="login" value="submit" />
															<span class="username">
																<input name="login_name" type="text" size="18" alt="Username" value="логин" onblur="if(this.value=='') this.value='логин';" onfocus="if(this.value=='логин') this.value='';" />
															</span>
															<span class="password">
																<input name="login_password" type="password" size="10" alt="Password" value="пароль" onblur="if(this.value=='') this.value='пароль';" onfocus="if(this.value=='пароль') this.value='';" />
															</span>
															<span class="login-button">
																<button value="Вход" name="image" type="submit" onclick="submit();" title="Login">Вход</button>
															</span>
															<span class="lostpassword">
																<a href="{$link_lost}" title="Напомнить пароль?"></a>
															</span>
															<span class="lostusername">
																<a href="{$link_regist}" title="Регистрация"></a>
															</span>
														</span></span></span>
													</form>
HTML;
}
?>