Файл: modules/bill/index.php
Строк: 106
<?php
$title = 'Биллинг панель | Главная';
include_once ('../../system/function.php');
include_once ('../../system/header.php');
if(!$user['id']) exit(header('Location: /'));
$var1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_hist` WHERE `us` = '".$user['id']."' "),0);
$var2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_p` WHERE `us2` = '".$user['id']."' "),0);
$var3 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_p` WHERE `us1` = '".$user['id']."' "),0);
$var4 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_ch` WHERE `us2` = '".$user['id']."' "),0);
$var5 = mysql_result(mysql_query("SELECT COUNT(*) FROM `bill_ch` WHERE `us1` = '".$user['id']."' "),0);
$var8 = mysql_result(mysql_query("SELECT SUM(`sum`) FROM `bill_fond`"),0);
echo'<div class="title">Информация</div>';
if($user['level'] == 4){
echo'<div class="podmenu"><a href="/BillingPanel/Admin"><img src="/images/icons/package.png" height="20" alt="*"> Админка биллинга</a></div>';
}
echo'<div class="podmenu">
<b><img src="/images/icons/info.png" height="17" alt="*"> Рубли:<font color="green"> '.$user['money'].'</b></font></br>
<b><img src="/images/icons/info.png" height="17" alt="*"> Баллы:<font color="red"> '.$user['balls'].'</b></font></div>
<div class="podmenu"><a href="/BillingPanel/ExChange"><img src="/images/icons/refresh.png" height="20" alt="*"><b> Обменник [Баллы => Рубли]</b></a></div>
<div class="title">Биллинг панель</div>
<div class="podmenu"><a href="/paywk"><img src="/images/icons/good_decision.png" height="20" alt="*">Пополнение WAP-KASSA</a></div>
<div class="podmenu"><a href="/worldkassa"><img src="/images/icons/good_decision.png" height="20" alt="*">Пополнение WORLD-KASSA</a></div>
<div class="podmenu"><a href="/BillingPanel/QIWIPay"><img src="/images/icons/good_decision.png" height="20" alt="*"> Пополнение QIWI (в ручном режиме)</a></div>
<div class="podmenu"><a href="/BillingPanel/Perevody"><img src="/images/icons/money_transfer.png" height="20" alt="*"> Переводы [<b> '.$var2.'</b> / <b>'.$var3.' </b>]</a></div>
<div class="podmenu"><a href="/BillingPanel/Requisites"><img src="/images/icons/leave.png" height="20" alt="*"> Реквизиты</a></div>
<div class="podmenu"><a href="/BillingPanel/Checks"><img src="/images/icons/filing_cabinet.png" height="20" alt="*"> Счета [<b> '.$var4.'</b> / <b>'.$var5.'</b> ]</a></div>
<div class="podmenu"><a href="/BillingPanel/History"><img src="/images/icons/negative_dynamic.png" height="20" alt="*"> История операций [<b>'.$var1.'</b>]</a></div>
<div class="podmenu"><a href="/BillingPanel/Uslugi"><img src="/images/icons/opened_folder.png" height="20" alt="*"> Услуги сайта</a></div>
<div class="podmenu"><a href="/BillingPanel/Reglament"><img src="/images/icons/rules.png" height="20" alt="*"> Регламент</a></div>
<div class="podmenu"><a href="/BillingPanel/Fond"><img src="/images/icons/middle_battery.png" height="20" alt="*"> Фонд мастерской [<b>'.$var8.'</b> рублей]</a></div>
<div class="podmenu"><a href="/BillingPanel/Ads"><img src="/images/icons/share.png" height="20" alt="*"> Реклама</a></div>
<div class="podmenu"><a href="/BillingPanel/Brexit"><font color="#ff4500"><img src="/images/icons/export.png" height="20" alt="*"> Заявка на вывод</font></a></div>';
include_once ('../../system/footer.php');
?>