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

$login_panel = <<<HTML
                                      <table width="185" border="0" cellspacing="0" cellpadding="0" class="smm04">
                                        <tr>
                                          <td colspan="3" align="right">Привет, <strong>{$member_id['name']}</strong>!&nbsp; &nbsp;[<strong><a href="{$link_logout}">Выход</a></strong>]</td>
                                        </tr>
HTML;

if ($user_group[$member_id['user_group']]['allow_admin']) {
$login_panel .= <<<HTML
                                        <tr>
                                          <td align="left" height="24">&nbsp;</td>
                                          <td width="5" align="left">&nbsp;</td>
                                          <td align="right"><a href="{$adminlink}" target="_blank">Админцентр</a></td>
                                        </tr>
HTML;
}

$login_panel .= <<<HTML
                                        <tr>
                                          <td align="left"><a href="{$link_profile}">Мой профиль</a></td>
                                          <td width="5" align="left">&nbsp;</td>
                                          <td align="right"><a href="{$link_pm}">ПС ({$member_id['pm_unread']} | {$member_id['pm_all']})</a></td>
                                        </tr>
                                        <tr>
                                          <td align="left"><a href="{$link_favorites}">Мои закладки</a></td>
                                          <td width="5" align="left">&nbsp;</td>
                                          <td align="right"><a href="{$link_addnews}">Опубликовать</a></td>
                                        </tr>
                                        <tr>
                                          <td align="left"><a href="{$link_stats}">Статистика</a></td>
                                          <td width="5" align="left">&nbsp;</td>
                                          <td align="right"><a href="{$link_newposts}">Непрочитанное</a></td>
                                        </tr>
                                      </table>
HTML;

} else {
$login_panel = <<<HTML
                                    <form method="post" action=''>
                                      <input name="login" type="hidden" id="login" value="submit" />
                                      <table width="185" border="0" cellpadding="0" cellspacing="0" class="smm01">
                                        <tr>
                                          <td width="75" align="left"><strong>логин :</strong></td>
                                          <td width="110" align="left" class="hder17-1"><input name="login_name" type="text" class="a_field" style="width:104px" /></td>
                                        </tr>
                                        <tr>
                                          <td colspan="2" align="left"><img src="{THEME}/images/spacer.gif" width="1" height="5" alt="" /></td>
                                        </tr>
                                        <tr>
                                          <td width="75" align="left"><strong>пароль :</strong></td>
                                          <td width="110" align="left" class="hder17-2"><input name="login_password" type="password" class="a_field" style="width:104px" /></td>
                                        </tr>
                                        <tr>
                                          <td colspan="2" align="left"><img src="{THEME}/images/spacer.gif" width="1" height="10" alt="" /></td>
                                        </tr>
                                        <tr>
                                          <td colspan="2" align="left"><table width="185" border="0" cellspacing="0" cellpadding="0">
                                              <tr>
                                                <td align="left"><a href="{$link_lost}">Напомнить пароль?</a></td>
                                                <td width="65" align="right"><input onclick="submit();" name="image" type="image" src="{THEME}/images/dlet_bttn_login.gif" style="width:65px; height:20px; border:0" alt="Login" /></td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                      </table>
                                    </form>
HTML;
}
?>