<?php
// ТРЕНИРОВКА ПАРАМЕТРОВ

include 'core/system.php';


head('Боевой Питомец');

$pers = int($_GET['id']); 
  $my_pets = $dbc->query("SELECT * FROM `user_pets` WHERE `id_user` = '".$pers."'")->fetch_assoc();


if(!$my_pets){ header('location:index.php');exit;}

$login = $dbc->query("SELECT * FROM `users` WHERE `id` = '".$my_pets['id_user']."'")->fetch_assoc(); 

$petik = array (100,1000,1000,5000,7000,12000,20000,        30000,44000,58000,83000,126000,170000,200000,10000,11000,27000,28000,28000,29000,30000,41000,52000,63000,74000,85000);

$lx = $petik[$my_pets['level']];


$proc = $my_pets['slava']/$lx*100;
$proc = floor($proc);


$crit = $my_pets['str']*2;

?><div class="lblue-panel">
<div class="panel-inner">
<div>
<span class="entity e-pet">
<span class="e-icon">
<img src="<?=$my_pets['img']?>" width="32" height="32" alt="*" class="img-npc i100 pet_brd"/>
</a>
</span>
<span>
<span class="e-name">
<span class=<?=$my_pets['lite']?>><?=$my_pets['name']?></span></span>




</span>

</br>Уровень <?=$my_pets['level']?> (<?=$proc?>%)


<br/>
Хозяин: <img src="img/class/<?=$login['storona']?>/<?=$login['pers']?>/pers.png" width="14" height="14" alt="*"><b><a href="pers.php?ank=<?=$login['id']?>"<font color=green> <?=$login['login']?></font></b></a></br>
<span></span>




<div class="clearer"></div>
</span>

</span>
</span>
</div>

</div>
</div><?
?><div class="lblue-panel">

<div class="panel-inner"><?


if($my_pets['weapon']==1){ 

$weapon = $dbc->query("SELECT * FROM `art_pet` WHERE `tip`=1 AND `user_id`='".$pers."' AND `status`=2 LIMIT 1")->fetch_assoc();



/*

?><a href="info_it.php?ids=<?=$weapon['id']?>"><img src="img/item_pet/<?=$weapon['img']?>.png"></a><? 
*/

if($weapon['craft']>0){ $fla = '<span class="info">+'.$weapon['craft'].''; }else{ $fla = '';}  
?><div class="sblue-panel"><div class="panel-inner-3"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="2" style="vertical-align: top;"><img width="32"height="32" src="img/item_pet/<?=$weapon['img']?>.png" alt="."border="0" </td><td><div><a href="/info_it.php?ids=<?=$weapon['id']?>" class="<?=$weapon['lite']?>"><center><?=$weapon['nik']?></a><?=$fla?></td></tr></table></div></div><?







}



if($my_pets['head']==1){ 

$head = $dbc->query("SELECT * FROM `art_pet` WHERE `tip`=2 AND `user_id`='".$pers."' AND `status`=2 LIMIT 1")->fetch_assoc();




/*

?> <a href="info_it.php?ids=<?=$head['id']?>"><img src="img/item_pet/<?=$head['img']?>.png"></a><? */


if($head['craft']>0){ $fla = '<span class="info">+'.$head['craft'].''; }else{ $fla = '';}  
?><div class="sblue-panel"><div class="panel-inner-3"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="2" style="vertical-align: top;"><img width="32"height="32" src="img/item_pet/<?=$head['img']?>.png" alt="."border="0" </td><td><div><a href="/info_it.php?ids=<?=$head['id']?>" class="<?=$head['lite']?>"><center><?=$head['nik']?></a><?=$fla?></td></tr></table></div></div><?





}






if($my_pets['armor']==1){ 

$arm = $dbc->query("SELECT * FROM `art_pet` WHERE `tip`=3 AND `user_id`='".$pers."' AND `status`=2 LIMIT 1")->fetch_assoc();


/*

?><a href="info_it.php?ids=<?=$arm['id']?>"><img src="img/item_pet/<?=$arm['img']?>.png"></a><? }


*/

if($arm['craft']>0){ $fla = '<span class="info">+'.$arm['craft'].''; }else{ $fla = '';}  
?><div class="sblue-panel"><div class="panel-inner-3"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="2" style="vertical-align: top;"><img width="32"height="32" src="img/item_pet/<?=$arm['img']?>.png" alt="."border="0" </td><td><div><a href="/info_it.php?ids=<?=$arm['id']?>" class="<?=$arm['lite']?>"><center><?=$arm['nik']?></a><?=$fla?></td></tr></table></div></div><?



}


























?>
<div class="mt10">
<div>
<div>Параметры:</div>
<div><img src="img/stat/hp.png" width="12" height="12" alt="*" /> Здоровье: <?=$my_pets['vit']?></div>

<div><img src="img/stat/AKulak.png" width="12" height="12" alt="*" /> Сила: <?=$my_pets['str']?></div>
<div><img src="images/icons/armor.png" width="12" height="12" alt="*" /> Защита: <?=$my_pets['def']?></div>
<div>
</div>

<div><img src="img/stat/mp.png" width="12" height="12" alt="*" /> Крит: <?=$my_pets['crit']?>% (<span class="iEpic">урон ~ <?=$crit?></span>)</div>

</div><?


if($my_pets['spec']==1 || $my_pets['spec']==0){ 


?><div class="mt10">

<center><b>Способность Питомца</b></center>

<table>

        <tr>
            <td style="width: 45px;"><img src="img/new/pet_at.png" style="box-shadow: 0px 0px 20px blue; margin: 10px;"></td>






<td>
Способность Атаки(<font color=grey>в бою атакует противников</font>)</br>




</div>
            </td>
        </tr>
</table></div><? }


if($my_pets['spec']==2){


?><div class="mt10">

<center><b>Способность Питомца</b></center>



<table>


        <tr>
            <td style="width: 45px;"><img src="img/new/pet_hil.png" style="box-shadow: 0px 0px 20px green; margin: 10px;"></td>







<td>
Способность Исциления(<font color=grey>Исцеляет ваши раны в бою</font>)</br>




</div>
            </td>
        </tr>
</table> 

</div><?
}
?>







</div>



</div>


</div></div></div></div><?

?><div class="mt10"><div class="lblue-panel">
<div class="panel-inner"> 
<table>



        <tr>
            <td style="width: 45px;"><img src="img/icon/pet_sila.png" style="box-shadow: 0px 0px 20px green; margin: 10px;"></td>







<td>Острые Когти(<?=$my_pets['tren_sila']?>) </br><div class="font-small text-italic c-verygray"><font color=grey>Повышает Атаку питомца</font></br>















</div>
            </td>
        </tr>
</table> <?




?><table>


        <tr>
            <td style="width: 45px;"><img src="img/icon/pet_hp.png" style="box-shadow: 0px 0px 20px green; margin: 10px;"></td>








<td>Живучесть(<?=$my_pets['tren_hp']?>) </br><div class="font-small text-italic c-verygray"><font color=grey>Повышает Здоровье питомца</font></br>















</div>
            </td>
        </tr>
</table> <?




?><table>


        <tr>
            <td style="width: 45px;"><img src="img/icon/pet_def.png" style="box-shadow: 0px 0px 20px green; margin: 10px;"></td>







<td>Крепкая Броня(<?=$my_pets['tren_def']?>) </br><div class="font-small text-italic c-verygray"><font color=grey>Повышает Защиту питомца</font></br>















</div>
            </td>
        </tr>
</table> <?




?><table>


        <tr>
            <td style="width: 45px;"><img src="img/icon/pet_crit.png" style="box-shadow: 0px 0px 20px green; margin: 10px;"></td>







<td>Ярость(<?=$my_pets['tren_crit']?>) </br><div class="font-small text-italic c-verygray"><font color=grey>Повышает шанс крит-удара питомца</font></br>















</div>
            </td>
        </tr>
</table> <?




?></div></div><? 

foot();
exit;

?>

