tests
This commit is contained in:
parent
51b1e51e74
commit
fe26aeaab3
@ -919,6 +919,15 @@ function showinf_pers($id, $battle = 0, $me = 0) //FIXME 37 запросов! Т
|
||||
global $rooms;
|
||||
$r = '';
|
||||
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $id)->fetch_assoc();
|
||||
|
||||
|
||||
private function item($image,$bg_color = '#AAA',$border_color = '#EEE')
|
||||
{
|
||||
return '<img src="' . $image . '" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25);
|
||||
padding: 7px; display: inline-block; background-repeat: no-repeat;
|
||||
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');">';
|
||||
}
|
||||
|
||||
if ($id > _BOTSEPARATOR_) {
|
||||
// Если ID большой, берём бота из базы ботов, подставляем имя и здоровье из прототипа в юзерах.
|
||||
$bots = db::c()->query('SELECT `name`, `hp` FROM `bots` WHERE `id` = ?i', $id)->fetch_assoc();
|
||||
@ -1125,20 +1134,14 @@ HTML;
|
||||
}
|
||||
} else {
|
||||
#$r .= '<img class=\'tooltip\' src="i/w12.gif" width=60 height=40 title="Пустой слот Oбувь" />';
|
||||
$r .= '<img src="i/1x1.gif" class="item">';
|
||||
#$r .= '<img src="i/1x1.gif" class="item">';
|
||||
$r .= item('i/1x1.gif');
|
||||
}
|
||||
|
||||
$data = db::c()->query('SELECT * FROM `online` WHERE `date` >= ?i AND `id` = ?i', time() - 60, $user['id'])->fetch_assoc();
|
||||
|
||||
$r .= '</td></tr></table></td></tr></table>';
|
||||
|
||||
function item($image,$bg_color,$border_color)
|
||||
{
|
||||
return '<img src="' . $image . '" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25);
|
||||
padding: 7px; display: inline-block; background-repeat: no-repeat;
|
||||
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');">';
|
||||
}
|
||||
|
||||
$r .= '<div style="text-align: center">';
|
||||
$r .= item('i/1x1.gif','#6D0329','#F94B89');
|
||||
$r .= item('i/1x1.gif','#6D0329','#F94B89');
|
||||
|
Loading…
Reference in New Issue
Block a user