File size: 945B
<?php
echo'<div class="menu1">'.$data['title'].'</div>';
$q = mysql_query("select * from `kat_kat` order by `por` asc");
echo'<div class="menu3"><small><a href="?in=news">Новости каталога</a></small><br/>
<a href="?in=sites&mod=top">TOP 10</a></div>
Категории:';
while($f = mysql_fetch_array($q)){
echo'<div class="menu4">
<a href="?in=sites&kat='.$f['id'].'">'.$f['name'].'</a> ('.(mysql_num_rows(mysql_query("select * from `kat_sites` where `kat`='".$f['id']."' and `mod`='1' and `in`>0"))).')
</div>';
}
echo'<div class="menu3"><small>';
if($_SESSION['apass'])echo'<a href="?in=apanel">Админ-панель</a><br/>';
if(!$_SESSION['pass'])echo'<a href="?in=cpanel&mod=enter">Вход</a><br/><a href="?in=reg">Регистрация</a><br/>';
else echo'<a href="?in=cpanel">В панель</a><br/>';
echo'<a href="?in=stat">Статистика</a><br/></small>';
echo'</div>';
?>