MRVLAD, вот тебе
<?php
if ( $_SERVER[ 'PHP_SELF' ] != '/
index.php' )//не выводить на
главной
{
echo "<div class='head'>";
echo "<a href='/umenu.php'
title='Дом'> <img src='/style/
img/dom.png' alt=''> </a>" ;
//дом
echo " <img src='style/themes/
$set[set_them]/head_blok.png'
alt=''> ";
if ($user['pol']==1)//условия
нащот пола
{
echo "<a href='/info.php'
title='Я'> <img
style='position:25%;' src='/
style/img/man.png' alt=''> </
a>" ;
}
else
{
echo "<a href='/info.php'
title='Я'> <img src='/style/img/
woman.gif' alt=''> </a>" ;
}
echo " <img src='style/themes/
$set[set_them]/head_blok.png'
alt=''> ";
//Почта
$k_new=mysql_result(mysql_query("SELECT COUNT
(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` A
[id]'
WHERE `mail`.`id_kont` = ' $user
[id]' AND (`users_konts`.`type` IS NULL OR `users_konts`.`type` = 'comm
$k_new_fav=mysql_result(mysql_query("SELECT COUNT
(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` A
[id]'
WHERE `mail`.`id_kont` = '$user
[id]' AND (`users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"
,0);
echo "<a href='/mail.php' title='Почта'> <img src='/style/img/
mail.png' alt=''> </a>";
if ($k_new!=0 && $k_new_fav==0)
{
echo " <h class=' mail''>$k_new</h>";
}
echo " <img src='style/themes/$set[set_them]/head_blok.png' alt=''> ";
echo " <a href='/journal.php' title='Журнал'> <img src='style/img/
journal.png' alt=''> </a>";
echo "</div>";
}
?>