Файл: sheet/style/default/top.php
Строк: 79
<?
$apa_seo = mysql_fetch_assoc(mysql_query("SELECT * FROM `apache` WHERE `id` = '1'"));
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="© '.$ini['copy'].'" />
<meta name="author" Content="'.name($apa_seo['id']).'">
<meta name="reply-to" Content="'.$apa_seo['email'].'">
<meta name="description" content="'.$ini['description'].'"/>
<meta name="keywords" content="'.$ini['keywords'].'"/>
<link rel="stylesheet" type="text/css" href="/sheet/style/'.$themes.'/style.css"/>
<link rel="shortcut icon" href="/sheet/style/'.$themes.'/favicon.png" type="image/x-icon"/>
<title>'.$inc['title'].'</title></head><body>';
echo '<div class="main-href"><img src="/sheet/style/'.$themes.'/logotip.gif"/></div>';
echo '<table class="top" width="100%" cellspacing="0" cellpadding="0"><tr>';
echo '<td class="apa-l">';
if ($_SERVER['PHP_SELF']!='/index.php'){
echo '<td style="vertical-align:top;width:15%;"><a href="/index.dll" title="Главная"><img src="/sheet/icon-apa/home.png"></a></td>';
}
if (!isset($apache))echo '<td style="vertical-align:top;width:15%;"><a href="/input.dll" title="Вход">Вход</a></td>';
if (isset($apache))echo '<td style="vertical-align:top;width:15%;"><a href="/id-'.$apache['id'].'.dll" title="'.$apache['name'].'"><img src="/sheet/icon-apa/profile_man.png"></a></td>';
$journal = mysql_result(mysql_query("SELECT COUNT(*) FROM `apache-j` WHERE `id-apache` = '".$apache['id']."' and `read` = '1'"), 0);
if (isset($apache)){
if ($journal)echo '<td style="vertical-align:top;width:15%;"><a class=top" href="/pages/journal.dll" title="Журнал"><img src="/sheet/icon-apa/jurnal.png"> '.$journal.'</a></td>';
}
$friend_m = mysql_result(mysql_query("SELECT COUNT(*) FROM `friend-m` WHERE `id-apache` = '".$apache['id']."' and `read` = '1'"), 0);
if (isset($apache)){
if ($friend_m)echo '<td style="vertical-align:top;width:15%;"><a href="/pages/message.dll" title="Почта"><img src="/sheet/icon-apa/mail.png"> '.$friend_m.'</a>';
}
echo '</td>';
echo '<td class="apa-r">';
if (!isset($apache))echo '<td style="vertical-align:top;width:15%;"><a href="/create.dll" title="Регистрация">Регистрация</a></td>';
if (isset($apache) && $apache['level']>=1)echo '<td style="vertical-align:top;width:15%;"><a href="/panel-control/index.dll" title="Панел управления"><img src="/sheet/icon-apa/apanel.png"></a>';
echo '</td>';
echo '</tr></table>';
echo '<div class="main">';
?>