<?php
$t = 'Питомец';
require_once 'wcore/core.php';
require_once 'wcore/head.php';
iank();

$pets = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT * FROM `pets_users` WHERE `id` = '". $ank['id'] ."'"));

echo '<center><div class="titles">Питомец</div></center>';

	echo $_SESSION['msg'];
	$_SESSION['msg'] = NULL;
    
$pets_u1 = array(5, 10, 15, 20, 25, 30, 35, 40, 50);
$pets_u2 = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
$pets_u3 = array(10, 20, 30, 40, 50, 60, 70, 80, 90, 100);
$pets_u4 = array(2, 4, 6, 8, 10, 12, 14, 16, 18, 20);
    
echo '<div class="blocks" style="width: 280px;margin: auto;">
<span style="display: block;padding: 3px;color: whitesmoke;font-size: 15px;background: #00000090;text-align: center;opacity: .99;">
Тестер Lv. '. ($pets['level']) .'
</span>
<img src="img/pets/1.png" width="280px" height="400px" style="margin-top: -22px;">
<span style="display: block;padding: 3px;color: whitesmoke;font-size: 15px;background: #00000090;text-align: center;margin-top: -107px;opacity: .99;">
<table width="100%"><tbody><tr>
<td width="50%" style="text-align: right;">Бонус к здоровью</td>
<td width="50%"><span style="display: block;text-align: right;border: 1px solid #333333;color: #7BF336;border-radius: 3px;font-size: 13px;font-weight: bold;padding: 2px 5px;">+'. ($pets['user_id'] == $ank['id'] ? $pets_u1[$pets['level']] : '5') .'%</span></td>
</tr><tr>
<td width="50%" style="text-align: right;">Бонус к силе</td>
<td width="50%"><span style="display: block;text-align: right;border: 1px solid #333333;color: #7BF336;border-radius: 3px;font-size: 13px;font-weight: bold;padding: 2px 5px;">+'. ($pets['user_id'] == $ank['id'] ? $pets_u2[$pets['level']] : '1') .'%</span></td>
</tr><tr>
<td width="50%" style="text-align: right;">Бонус к защите</td>
<td width="50%"><span style="display: block;text-align: right;border: 1px solid #333333;color: #7BF336;border-radius: 3px;font-size: 13px;font-weight: bold;padding: 2px 5px;">+'. ($pets['user_id'] == $ank['id'] ? $pets_u3[$pets['level']] : '10') .'%</span></td>
</tr><tr>
<td width="50%" style="text-align: right;">Бонус к скорости</td>
<td width="50%"><span style="display: block;text-align: right;border: 1px solid #333333;color: #7BF336;border-radius: 3px;font-size: 13px;font-weight: bold;padding: 2px 5px;">+'. ($pets['user_id'] == $ank['id'] ? $pets_u4[$pets['level']] : '2') .'%</span></td>
</tr></tbody></table>
</span>
</div>';

require_once 'wcore/foot.php';
?>