Файл: sys/inc/umenu.php
Строк: 96
<?
/******************************************************************************/
echo "<div class='menu_razd'>Мой профиль</div>";
/******************************************************************************/
$div="wm";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/ank.png' alt='' /> <a href='/info.php'>Анкета</a></div>n";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/edit_prof.png' alt='' /> <a href='/anketa.php'>Изменить профиль</a></div>n";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/avatar.png' alt='' /> <a href='/avatar.php'>Мой аватар</a></div>n";
/******************************************************************************/
echo "<div class='menu_razd'>Моя активность</div>n";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/contakt.png' alt='' /> <a href='/konts.php'>Контакты</a> (".mysql_result(mysql_query("SELECT COUNT(*) FROM `users_konts` WHERE `id_user` = '$user[id]' AND (`type` = 'common' OR `type` = 'favorite')"), 0).")</div>n";
/******************************************************************************/
echo "<div class='$div'>n";
$k_new=mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` IS NULL OR `users_konts`.`type` = 'common' OR `users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);
$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` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);
if ($k_new!=0 && $k_new_fav==0){
echo "<img src='/style/my_menu/mail.png' alt='' /> <a href='/new_mess.php'>Моя почта<font color='red'> (+$k_new)</font></a>n";
}
elseif ($k_new_fav!=0){
echo "<a href='/new_mess.php'><img src='/style/my_menu/mess_fav.png'> Моя почта <font color='red'> (+$k_new)</font></a>n";
}
else {echo "<img src='/style/my_menu/mail.png'> Почты нет</a>n";}
echo "</div>n";
/******************************************************************************/
echo "<div class='$div'>n";
$k_n_s_zak=mysql_result(mysql_query("SELECT COUNT(`forum_zakl`.`id_them`) FROM `forum_zakl` LEFT JOIN `forum_p` ON `forum_zakl`.`id_them` = `forum_p`.`id_them` AND `forum_p`.`time` > `forum_zakl`.`time` WHERE `forum_zakl`.`id_user` = '$user[id]' AND `forum_p`.`id` IS NOT NULL"),0);
echo "<img src='/style/my_menu/zakl.png'> <a href='/zakl.php'>Мои закладки</a>n";
if ($k_n_s_zak>0)
echo "+(<span class='off'>$k_n_s_zak</span>)n";
echo "</div>n";
/******************************************************************************/
echo "<div class='menu_razd'>Мои настройки</div>";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/set.png'> <a href='/settings.php'>Общие настройки</a></div>n";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/secure.png'> <a href='/secure.php'>Сменить пароль</a></div>n";
/******************************************************************************/
echo "<div class='$div'><img src='/style/my_menu/rules.png'> <a href='/rules.php'>Правила</a></div>n";
/******************************************************************************/
if (user_access('adm_panel_show')){
echo "<div class='menu_razd'>Админ-Панель</div>n";
echo "<div class='$div'><img src='/style/my_menu/adm_panel.png'> <a href='/adm_panel/'>Админка</a></div>n";
}
/******************************************************************************/
if ($set['web']==false)
echo "<div class='wm'><img src='/style/my_menu/exit.png'> <a href='/exit.php'>Выход из под $user[nick]</a></div>n";
/******************************************************************************/
?>