Файл: Arhmobi_esdcms/games/zverek/index.php
Строк: 69
<?php
include_once '../../sys/inc/start.php';
$doc = new document(1);
$doc->title = __('Поймай зверька');
?><style>
.bg_game {
background: #000 url("img/z.jpg") center no-repeat;
height: 314px;
margin-bottom: 10px;
box-shadow: 0px 0px 10px;
}</style> <?
echo "<div class='bg_game'> </div>";
global $user;
$listing = new listing();
$post = $listing->post();
$post->title='Ваша статистика';
$post-> icon('info');
$post = $listing->post();
$post->title = __('Поймано кроликов');
$post->counter = $user->zverek_krolik;
$post->icon = 'img/krol.png';
$post = $listing->post();
$post->title = __('Поймано цыплят');
$post->counter = $user->zverek_med;
$post-> icon= 'img/cipa.png';
$post = $listing->post();
$post->title = __('Поймано мышей');
$post->counter = $user->zverek_lisa;
$post-> icon= 'img/mi.png';
$post = $listing->post();
$post->title = __('Украдено яиц');
$post->counter = $user->zverek_volk;
$post-> icon= 'img/co.png';
$post = $listing->post();
$post->title = __('Количество укусов змеи');
$post->counter = $user->zverek_kapkan;
$post-> icon= 'img/snake.png';
$listing->display();
$res=$db->query("SELECT COUNT(*) FROM `users` WHERE `zverek_krolik` > '0'");
$top_k= $res->fetchColumn();
$ress=$db->query("SELECT COUNT(*) FROM `users` WHERE `zverek_kapkan` > '0'");
$top_z= $ress->fetchColumn();
$resp = $db->query("SELECT COUNT(*) FROM `users_online` WHERE `request` LIKE '/zverek/%'");
$users = $resp->fetchColumn();
$listing = new listing();
$post = $listing->post();
$post->title = 'Топ ловцов кроликов';
$post->url = 'top_z.php';
$post-> icon = 'img/top.png';
$post->counter = $top_k;
$post = $listing->post();
$post->title = 'Топ больных укусами';
$post->url = 'top_k.php';
$post-> icon = 'img/top.png';
$post->counter = $top_z;
$post = $listing->post();
$post->title = 'Информация';
$post->url = 'info.php';
$post-> icon('info');
$post = $listing->post();
$post->title = 'Сейчас играют';
$post->url = 'players.php';
$post-> icon = 'img/on.png';
if ($users)
$post->bottom = __('%s ' . misc::number($users, 'человек', 'человека', 'человек'), $users);
$listing->display();
$form = new form('play.php');
$form->button(__('Начать игру'));
$form->display();
?>