<?
include './system/common.php';
    
 include './system/functions.php';

 include './system/user.php';

if(!$user) exit(header('location: /menu'));

$id = _string(_num($_GET['id']));
if($id){
$u_pet = mysql_query('SELECT * FROM `pets_user` WHERE `id` = "'.$id.'"');
$u_pet = mysql_fetch_array($u_pet);

if(!$u_pet)exit(header('location: /menu'));}
$title = $u_pet['name'];
include './system/h.php';
?>
    <div class="content"><div class="block center color3 s125"> <?=$u_pet['name']?></div>
 <div class="line"></div>
<?
 if($petsu['id'] == $u_pet['id']) {
?>
           
    <div class="block center">
                    <img src="/images/icons/experience.png" width="16" height="16" alt=""> Авторитет: <?=$u_pet['exp']?>/<?=$_lvlpet[$u_pet['lvl']]?>    </div>
    <div class="line"></div>

<?}?>

<div class="block">        
    <span> 
<img class="left mr8" src="/images/pets/<?=$u_pet['pet']?>.jpg" width="100" height="100" alt="">    </span>
                                <img src="/images/pets/pet_<?=$u_pet['pet']?>.png" width="16" height="16" alt=""> <span><?=$u_pet['name']?></span>   <span class="white">
    
    <img src="/images/icons/level.png" width="16" height="16" alt=""> <?=$u_pet['lvl']?> ур.    </span>
    <div class="m3" style="padding-left: 108px"> 
            

    <img src="/images/icons/health.png" width="16" height="16" alt=""> Здоровье: <?=$u_pet['str']?>    </div>
            
    <div>
    <img src="/images/icons/damage.png" width="16" height="16" alt=""> Сила: <?=$u_pet['str']?>    </div>
            
    <div>
    <img src="/images/icons/armor.png" width="16" height="16" alt=""> Защита: <?=$u_pet['def']?>    </div>
        
<div class="clear"></div>
</div>
<div class="dotted"></div>
<div class="menu">
  <li><a href='/user/<?=$u_pet['user']?>'><img src='/images/icons/right_blue.png' alt=''/> вернуться</a></li>
</div>
</div>
<?
include './system/f.php';
?>