Вход Регистрация
Файл: style/themes/web/head.php
Строк: 276
<?
$set
['web']=true;
$spaces=true;
header("Content-type: text/html");
echo 
'<?xml version="1.0" encoding="utf-8"?>';
?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<title><?echo $set['title'];?></title>

<link rel="shortcut icon" href="/style/themes/<?echo $set['set_them'];?>/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?echo $set['set_them'];?>/style.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="/style/themes/<?echo $set['set_them'];?>/desktop_cache_r793p.css" />

<link rel="stylesheet" type="text/css" href="/style/themes/<?echo $set['set_them'];?>/2056298133_r793p.css" />



</head>

<body>
<?

if (isset($_SESSION['message'])){
echo 
"<div class='msg'>$_SESSION[message]</div>";
$_SESSION['message']=NULL;
}

if(!isset(
$user)){ header("location: /?t=wap"); exit; } //Закрываем от гостей
?>
            <div id="scroll_page">
                <div id="scroll_page_place_wrapper">
                    <div id="scroll_page_place"></div>
                </div>
                
                <div id="scroll_page_toTop">&#9650;</div>
                <div id="scroll_page_toBottom">&#9660;</div>
            </div>

            <script type="text/javascript" src="/style/themes/<?echo $set['set_them'];?>/scroll_page.js?r=793p"></script>
        
<div id="wrap_all">
<div id="main_shadow">

<div class="page_fixer"></div>
<div class="vert_line"></div>
<div class="vert_line2"></div>

<div id="left_nav_bg"></div>
<div id="sidebarOverlay" onclick="Sidebar.toggle(event);"></div>
<div id="sidebar_wrap">




<div id="left_nav">
<ul>

<li class="new_bg">
<a href="/" class="h-logo" id="main_logo_link"><img src="/style/themes/<?echo $set['set_them'];?>/logo_image.png" alt="" class="logo_image" title="Spaces" /><img src="/style/themes/<?echo $set['set_them'];?>/logo_words.png" alt="" /></a>
</li>


<li class="left_nav_stat_item overfl_hid">
<form style='padding:0;' action="/obmen/search.php?go" method="post">
<a href="/obmen/search.php?go" class="left_nav_padding left_nav_search_input_ico" id="main_search_input_ico">
<span class="s_i s_i_search"></span>
</a>

<input type="hidden" name="sid" value="" />

<input type="hidden" name="CK" value="1" />

<input type="hidden" name="link_id" value="0" />


<!-- <input type="text" class="font_medium" style="width: 98%; margin: 0px; padding: 4px 0px; vertical-align: middle;line-height: 100%;border: 1px solid #ccc;" name="q" value="" />
-->
<span id="main_search_form" class="left_nav_padding">
<input type="text" placeholder="Поиск" class="left_nav_search_input medium" name="search" id="main_search_input" />
<input type="submit" class="main_search_input_submit" name="cfms" title="Найти" value="." />
</span>
</form>
</li>


<li class="sep_bl">
<a href="/info.php" class="avatar_link user_avatar" >
<span class="for_avatar ava">
<?
$p 
mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='$user[id]'  LIMIT 1"));
$a mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `id_user`='$user[id]' AND `avatar`='1' LIMIT 1"));
if (
is_file(H."sys/gallery/50/$a[id].$a[ras]"))
echo 
"<a href='/foto/$user[id]/$a[id_gallery]/$a[id]/'><img src='/foto/foto50/$a[id].$a[ras]' alt='$a[name]' style='margin-top:-5px;'></a>";
else
echo 
"<img src='/style/icons/avatar.png' style='margin-top:-5px;' width='50' >";

echo 
"</span>
$user[nick]
</a>
</li>"
;

echo 
'<li class="sep_bl bt0 s_title">
<span class="s_i s_i_titles"></span>
<b class="m">Разделы сайта</b>
</li>

<li class="bt0">'
;



$q_menu=mysql_query("SELECT * FROM `menu` ORDER BY `pos` ASC");
while (
$post_menu mysql_fetch_assoc($q_menu)) {

if (!isset(
$post_menu['icon']))mysql_query('ALTER TABLE `menu` ADD `icon` VARCHAR( 32 ) NULL DEFAULT NULL');
if (!isset(
$post_menu['type']))mysql_query("ALTER TABLE  `menu` ADD  `type` ENUM('link', 'razd') NOT NULL DEFAULT 'link' AFTER `id`");

echo 
"<li> <a href='$post_menu[url]'> <img src='/style/icons/$post_menu[icon]' alt='*'>  <span class='m'>$post_menu[name] ";
if (
$post_menu['counter']!=NULL && is_file(H.$post_menu['counter']))
include 
H.$post_menu['counter'];

echo 
"</a></li>";
}


echo 
'<li class="sep_bl bt0 s_title">
<span class="s_i s_i_titles"></span>
<b class="m">Мои разделы</b>
</li>

<li class=" bt0 ">
<a href="/user/info/settings.php"> <img src="/style/icons/settings.png">
<span class="m">Общие настройки</span>
</a>
</li>
<li>
<a href="/user/money/"> <img src="/style/icons/uslugi.gif"> <span class="m">Дополнительные услуги</span></a>
</li>

<li><a href="/plugins/rules/"><img src="/style/icons/info.gif"> <span class="m">Помощь</span></a>
</li>

<li>
<a href="/exit.php"> <img src="/style/icons/obmen.png"> <span class="m">Выход</span></a>
</li>
</ul>
</div><!-- #left_nav -->
</div>


<div id="main_content_block">
<div class="content_wrap" id="content_wrap_move">

<div id="wrapper_for_header">
<div id="wrapper_for_header_fix">

<span style="display:none;"><img id="site_logo" src="http://spaces.ru/i/spaces.ru_logo_big.png" alt="" /></span>





<div id="navi" class=" many_events">
<div class="menu_wrap  ">
'
;

echo 
'<table style="width:100%" cellspacing="0" cellpadding="0"><tr>

<td style="vertical-align:top;width:19%;" id="home_link_td">
<a class="top_menu_link user_color_link h-menu_link" href="/umenu.php" title="Старт" id="home_link" onclick="Sidebar.toggle(event);">

<img class="icon" src="/style/themes/'
.$set['set_them'].'/img/qlt_homen_b.png" alt="Старт"/>

</a>
</td>'
;

$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_notif mysql_result(mysql_query("SELECT COUNT(`read`) FROM `notification` WHERE `id_user` = '$user[id]' AND `read` = '0'"), 0); // Уведомления

$discuss mysql_result(mysql_query("SELECT COUNT(`count`) FROM `discussions` WHERE `id_user` = '$user[id]' AND `count` > '0' "),0); // Обсуждения

$k_frend mysql_result(mysql_query("SELECT COUNT(id) FROM `frends_new` WHERE `to` = '$user[id]'"), 0); // Друзья




echo '<td style="vertical-align:top;width:20%;">
<a class="top_menu_link user_color_link h-menu_link" href="/new_mess.php" title="Почта">

<img class="icon" src="/style/themes/'
.$set['set_them'].'/img/qlt_mailn_b.png" alt="Почта"/>
'
;
if(
$k_new!=0)echo '<span class="newevent">'.$k_new.'</span>';
echo 
'</a>
</td>

<td style="vertical-align:top;width:19%;">
<a class="top_menu_link user_color_link h-menu_link" href="/user/notification" title="Уведомления">

<img class="icon" src="/style/themes/'
.$set['set_them'].'/img/qlt_journaln_b.png" alt="Жур"/>';

if(
$k_notif!=0)echo '<span class="newevent">'.$k_notif.'</span>';

echo 
'</a></td>';

if (
$lenta 0)
{
$j2 'tape';
}
elseif (
$discuss 0)
{
$j2 'discussions';
}
else {
$j2 'discussions';
}

echo 
'<td style="vertical-align:top;width:21%;">

<a class="top_menu_link user_color_link h-menu_link" href="/user/'
.$j2.'/" title="Обсуждения">

<img class="icon" src="/style/themes/'
.$set['set_them'].'/img/qlt_lenta2n_b.png">';

$k_l $lenta+$discuss;
if(
$k_l!=0)echo '<span class="newevent">'.$k_l.'</span>';
echo 
'
</a>
</td>

<td style="vertical-align:top;width:19%;border-right:none !important;">

<a class="top_menu_link user_color_link h-menu_link" href="/info.php" title="Профиль">

<img class="icon" src="/style/themes/'
.$set['set_them'].'/img/profile_man_b.png" alt="Профиль" />

</a>

</td>'
;

if (
$k_frend 0)
{

echo 
'<td style="vertical-align:top;width:19%;border-right:none !important;">
<a class="top_menu_link user_color_link h-menu_link" href="/user/frends/new.php" title="Друзья">
<img class="icon" src="/style/panel/friends.png" alt="Друзья" />
<span class="newevent">'
.$k_frend.'</span>
</a>
</td>'
;

}

echo 
'</tr></table>





</div>
</div>



</div>
</div>



<script type="text/javascript" src="/style/themes/'
.$set['set_them'].'/Sidebar_PC.js?r=793p"></script>




<div class="main">



<div id="index_page">'
;

/* Накладка дива на форму */
function form($form){
return 
preg_replace("#<form #i"'<form class="iform" '$form);
}
ob_start ("form");

?>
Онлайн: 6
Реклама