<?

?> 

   </div>
    <div class="body">
        <div class="left">
    <div class="c89"><b> Ваше меню</b></div>
	<? 
if(isset($user['id'])){
    echo '<div class="menu_j"> <a href="/kab.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="kabinet"/> Личный кабинет </div></a> <div class="menu_j">  <a href="/exit.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="exit"/> Выход </div></a>';
	} 
	if(!isset($user['id'])) {
	echo '<div class="menu_j"> <a href="/registr.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="kabinet"/> Регистрация </div></a> <div class="menu_j">  <a href="/login.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="exit"/> Вход</div></a>';
	}
	?>
	<div class="head">Новости</div><div class="obv"><img src="/design/theme/web/rss.png" alt="novosti"/> 
	<a href="/news.php" class="href">Новости</a><br /><?
$sql = mysql_query("SELECT * FROM `news` ORDER BY `id` DESC LIMIT 1");
while($sql1 = mysql_fetch_assoc($sql))
{
echo ''.nl2br(smile(bb($sql1['text']))).'<br />
Добавил: '.nick($sql1['avtor']).'<br />
<a href="/news/comment'.$sql1['id'].'">Комментарии:</a> ('.mysql_result(mysql_query('select count(`id`) from `news_com` where `news` = "'.$sql1['id'].'"'),0).')';
}
?></div>
    <br />
    <div class="head">Меню сайта</div>
    <div class="menu_j"> <a href="/forum/index.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Форум</a></div>
    <div class="menu_j"> <a href="/down/" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Архив файлов</a></div>
    <div class="menu_j"> <a href="/m/" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Магазин</a></div>
    <div class="menu_j"> <a href="/cod/" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Куски PHP кода</a></div>
	<div class="menu_j"> <a href="/birga/" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Биржа труда</a></div>
	<div class="menu_j"> <a href="/porte/" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Портфолио пользавателей</a></div>	    
    <div class="menu_j"> <a href="/wminfo.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Информация Wap-мастеру</a></div>
    <div class="menu_j"> <a href="/user/pochet.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Доска Почета</a></div>
    <div class="menu_j"> <a href="/user/doska.php" class="top_menu_j"><img src="/design/theme/web/zn.png" alt="JustWM"/> Доска Позора</a></div>
	
   </div>

	
	<?
?>