В блок:
Code
<?if($USER_LOGGED_IN$)?><div align="center">
<img title="$USERNAME$" src="$USER_AVATAR_URL$" border="0">
<div align="center"><br><div align="left"><span style="font-size: 8pt; color: rgb(105, 105, 105);"><b><span style="font-family: Arial; font-size: 8pt; color: rgb(105, 105, 105);">Вы вошли как: <font color="#00bfff">$USERNAME$
</font><br>Группа: <font color="#00bfff">$USER_GROUP$</font><br>Личных сообщений: <font color="#00bfff">$UNREAD_PM$</font></span></b></span></div>
</p>
<input class="buttonprofile" onclick="document.location.href='/index/8'; return false;" value="Профиль" type="button">
<input class="buttonprofile" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="ЛС" type="button">
<input class="buttonprofile" onclick="document.location.href='/index/10'; return false;" value="Выход" type="button">
</div>
<br>
<?else?>
<div align="center">
<script type="text/javascript">
sendFrm549102=function(){
var o=$('#frmLg549102')[0],pos=_uGetOffset(o),o2=$('#blk549102')[0];
document.body.insertBefore(o2,document.body.firstChild);
$(o2).css({top:(pos['top'])+'px',left:(pos['left'])+'px',width:o.offsetWidth+'px',height:o.offsetHeight+'px',display:''}).html('<div align="left" style="padding:5px;"><div class="myWinLoad"></div></div>');
_uPostForm('frmLg549102',{type:'POST',url:'/index/sub/',error:function() {
$('#blk549102').html('<div align="left" style="padding:10px;"><div class="myWinLoadSF" title="Невозможно выполнить запрос, попробуйте позже"></div></div>');
_uWnd.alert('<div class="myWinError">Невозможно выполнить запрос, попробуйте позже</div>','',{w:250,h:90,tm:3000,pad:'15px'});
setTimeout("$('#blk549102').css('display','none');",'1500');
}
});
}
</script>
<div id="blk549102" style="border:1px solid #CCCCCC;position:absolute;z-index:82;background:url('http://s27.ucoz.net/img/fr/g.gif');display:none;"></div><form id="frmLg549102" action="/index/sub/" method="post" style="margin:0" onsubmit="sendFrm549102();return false;">
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr><td width="20%" nowrap="nowrap">Логин:</td><td><input class="loginField" type="text" name="user" value="" size="20" style="width:100%;" maxlength="50"/></td></tr>
<tr><td>Пароль:</td><td><input class="loginField" type="password" name="password" size="20" style="width:100%" maxlength="15"/></td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr><td nowrap><input id="remmain" type="checkbox" name="rem" value="1" checked="checked"/><label for="remmain">запомнить</label> </td><td align="right" valign="top"><input class="loginButton" name="sbm" type="submit" value="Вход"/></td></tr>
<tr><td colspan="2"><div style="font-size:7pt;text-align:center;"><a href="javascript://" rel="nofollow" onclick="new _uWnd('Prm','Напоминание пароля',300,130,{autosize:1,closeonesc:1},{url:'/index/5'});return false;">Забыл пароль</a> | <a href="http://cs-zona.ru/index/3">Регистрация</a></div></td></tr>
</table>
<script type="text/javascript" src="http://cs-zona.ru/js/jquery-min.js"></script>
<input type="hidden" name="a" value="2" /><input type="hidden" name="ajax" value="1" /><input type="hidden" name="rnd" value="102" /></form><?endif?>