|
<?php
echo '
<!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>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<meta name="format-detection" content="telephone=no"/>
<link rel="shortcut icon" href="/design/style/favicon.png">
<script type="text/javascript" src="/js/panel.js"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/main.js"></script>
<script type="text/javascript" src="/js/action.js"></script>
<script type="text/javascript" src="/js/slidx.js"></script>
<link type="text/css" rel="stylesheet" href="/jquery-dropdown-master/jquery.dropdown.min.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="/jquery-dropdown-master/jquery.dropdown.min.js"></script>
<script>
$(document).ready(function() {
actpanel();
function actpanel() {
$.ajax({
url: "/js/action.php",
cache: false,
success: function(html){
$("#actpanel").html(html);
} } ); }
setInterval(function(){
actpanel();
}, 6000);
});
</script>';
echo '<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>';
if(isset($user['id']))
echo '<link rel="stylesheet" href="'.$HOME.'/design/theme/default/style.css" type="text/css" /> ';
else
echo '<link rel="stylesheet" href="'.$HOME.'/design/theme/default/style.css" type="text/css" /> ';
echo '<title>'. $title .'</title></head>
<body>';
echo '<div class="head">';
echo '</div>';
echo'<style>
.dmy{
background:url(/design/theme/default/dmy.png)center left no-repeat;
}
.dmy2{
background: #D3F2D3;
margin: 7px 2px 7px 24px;
padding: 15px;
border-radius: 10px;
display: inline-block;
}
.dot{
background:url(/design/theme/default/dot.png)center right no-repeat;
}
.dot2{
background: #EAEAEA;
margin: 7px 24px 7px 2px;
padding: 15px;
border-radius: 10px;
display: inline-block;
}
.avatarm {
width: 40px;
height: 40px;
border-radius: 20px;
}
.m3 {
background: #fff;
box-shadow: 0px 2px 2px #c4c4c4;
border-left: 0px solid #e0e0df;
border-right: 0px solid #e0e0df;
}
</style>';
$t = microtime(1);
echo '<div class="menu"><a href="/index.php"><img src="/design/theme/default/llll.png"></a></div> ';
if(!isset($user['id'])) {
echo '<div class="auth"><a href="/login.php">Авторизация</a> <a href="/registr.php">Регистрация</a></div>';
}
if(isset($user['id'])) {
$len = mysql_result(mysql_query("SELECT COUNT(id) FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$mes = mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
if($user['up_p'] == 0){
echo '<table style="width:100%" cellspacing="0" cellpadding="0" class="title"><tr>
<td class="panel"><a href="#" data-jq-dropdown="#jq-dropdown-1"><center><img src="/images/head/menus.png" alt="*"></center></a></td>
<td class="panel"><a href="/mes"><center><img src="/images/head/mail2.png"alt="*"> ' . ($mes > 0 ? '<span class="coun">+'.$mes.'' : '') . ' </span></center></a></td>
<td class="panel"><a href="/lenta.php"><center><img src="/images/head/op2.png"alt="*">' . ($len > 0 ? '<span class="coun">+'.$len.'' : '') . '</span></center></a></td>
<td class="panel"><a href="/kab.php"><center><img src="/images/head/user.png"alt="*"></center></a></td>';
echo '</tr></table>';
?><div id="jq-dropdown-1" class="jq-dropdown jq-dropdown-tip">
<ul class="jq-dropdown-menu">
<li><center><font color="#00BFFF"><b>Моя панель</b></font></center></li>
<li class="jq-dropdown-divider"></li>
<li><a href="/user/red_ank.php">Ред. Анкету</a></li>
<li class="jq-dropdown-divider"></li>
<li><a href="/billing">Биллинг панель</a></li>
<li class="jq-dropdown-divider"></li>
<li><a href="/user/settings.php">Настройки</a></li>
<li class="jq-dropdown-divider"></li>
<li><a href="/rules.php"> Правила проекта</a></li>
<li class="jq-dropdown-divider"></li>
<li><a href="/static"> Статистика</a></li>
<li class="jq-dropdown-divider"></li>
<li><a href="/exit.php"> Выход</a></li>
</ul>
</div><?
}
if($user['up_p'] == 1){
echo '<div class="rega">
<a class="vho"href="/kab.php">'.$user['login'].'</a>
<a class="vho"href="/exit.php">Выход</a>
</div>';
}
}
echo'<div id="actpanel"></div>';
if($user['level'] != 0){
$chat_a = mysql_result(mysql_query('select count(`id`) from `admin_chat` where `time` > "'.(time()-((60*60)*12)).'"'),0);
$chat_b = mysql_result(mysql_query('select count(`id`) from `ban_ch` where `time` > "'.(time()-((60*60)*12)).'"'),0);
echo '<div class="podmenu">
<a href="'.$HOME.'/panel"><b>Админ Панель </b> | </a>
<a href="'.$HOME.'/admin_chat/"> <b>Админ Чат </b> ' . ($chat_a > 0 ? '+' . $chat_a. '' : '') . ' | </a> </center></td>
<a href="'.$HOME.'/tickets/"> <b>Тикеты</b> | </a>
<a href="'.$HOME.'/suser.php"><b> Поиcк </b></a>';
$v5 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_q` WHERE `status` = '0' "),0);
$v6 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_v` WHERE `type` = '0' "),0);
$vr6 = mysql_result(mysql_query("SELECT COUNT(*) FROM `ads` WHERE `tip` = '1' "),0);
echo'</div>';
}
$rek = mysql_result(mysql_query("SELECT COUNT(id) FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0'"),0);
$sql_rek = mysql_query("SELECT * FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0' ORDER BY rand() ");
##Блок рекламы
if($rek != 0) {
echo '<div class="rekl"><img src="/images/reklama.png"></div>';
echo '<div class="podmenu">';
while($sql = mysql_fetch_assoc($sql_rek)){
echo '<a href="'.$sql['url'].'"><img src="'.$HOME.'/images/rek.png" alt="*" title="Реклама" /> ';
echo '<font color="'.$sql['color'].'">';
if($sql['b'] == 1) echo '<b>';
if($sql['i'] == 1) echo '<i>';
echo $sql['name'];
if($sql['i'] == 1) echo '</i>';
if($sql['b'] == 1) echo '</b>';
echo '</font>';
echo '</a>';
if($rek > 1) echo '
';
}
echo '</div>';
}
if(isset($user['id'])) {
if($user['wp'] == 0) {
echo '<div class="podmenu"><font color="red"><a href="/billing/wmid.php">У вас не заполнены данные WMR и WMID просим вас заполнить их и потвердите!</font></a></div>';
}
if($user['level'] >= 1) echo ' ' .($load_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/load_mod">Модерация файлов <font color="red"><b>+' . $load_mod . '</b></font></a> </div>' : '').' ';
if($user['level'] >= 2) echo ' ' .($reg_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/reg_mod">Модерация регистраций <font color="red"><b>+' . $reg_mod . '</b></font></a> </div>' : '').' ';
if($user['level'] >= 3) echo ' ' .($arb > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/arb">Модерация арбитража<font color="red"><b> +' . $arb . '</b></font></a> </div>' : '').' ';
}
?>