<?
$sms = $db -> dbcount('COUNT(`id`)','mail',"`fid` = '".$ya['id']."' AND `read` = 'no'");
if($sms>0)$sms=' '.$sms.''; else $sms=null;
echo '<div class="verxk"><a href="./"><img src="style/images/logok.png" alt=""/></a></div>';
echo '
<div style="background : #d88449 url(images/cvb.png) left bottom repeat-x;
color: #fff;box-shadow: inset 0px 0px 1px #a8e1f6;
padding:0px;
line-height: 0px;
"> <div class="menu_i">
<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style="vertical-align:top;width:14%;border-right: 1px solid #a1542f;white-space: nowrap;">
<a href= "'.ROOT.'my/" class="top_menu_link"><img src="img/ev_newsfeed.png" alt="LK" title = "Личный кабинет" /></a> </td>
<td style="vertical-align:top;width:14%;border-left: 1px solid #e5955c;border-right: 1px solid #a1542f;white-space: nowrap;">
<a href= "'.ROOT.'id'.$ya['id'].'" class="top_menu_link"><img src="img/ev_other.png" alt="Я" title = "Я"/></a> </td>
<td style="vertical-align:top;width:14%;border-left: 1px solid #e5955c;white-space: nowrap;">
<a href= "'.ROOT.'my/mail.php" class="top_menu_link"><img src="img/mail978.png" alt="Mail" title = "Почта"/><span style = "color: #fff;"> '.$sms.'</span></a> </td>
</tr></table></div></div></div>
';
?>