<?php
if (!defined('webid')) {
    exit();
}
$res = mysql_fetch_array( mysql_query( "SELECT(SELECT count(*) FROM tb_users) nasvsego,(SELECT COUNT(id) FROM online) colonlines, (SELECT sum(sumpay) FROM tb_payx) totalpaid, (SELECT count(*) FROM tb_users WHERE joindate > '$nowtime' - 86400) newtoday, (SELECT sum(amount) FROM tb_history WHERE date > '$nowtime' - 86400) newtopaid" ) );
$nasvsego=$res["nasvsego"];
$newtoday=$res["newtoday"];
$newtopaid=$res["newtopaid"];
$colonlines=$res["colonlines"];
$totalpaid=round($res["totalpaid"], 2);
?>
<script type="text/javascript">
$('.nasvsego, .newday, .payuser, .online').tipTip();
</script>
<font style="color: #444444;">
<span class="nasvsego" title="Всего пользователей">Пользователей: <?=$nasvsego?></span>&nbsp;&nbsp;&nbsp;&nbsp;
<span class="newday" title="Новых за 24 часа"> Новых за 24 часа: <?=$newtoday?></span>&nbsp;&nbsp;&nbsp;&nbsp;
<span class="payuser" title="Всего выплачено (рублей)"> Выплачено: <?=round($totalpaid,2); ?></span>&nbsp;&nbsp;&nbsp;
<span class="payuser" title="Выплачено за 24 часа (рублей)"> Выплачено за 24 часа: <?=round($newtopaid,2); ?></span>&nbsp;&nbsp;&nbsp;
<span class="payuser" title="Пользователей онлайн"> Онлайн: <?=$colonlines ?></span>
</font>