Файл: public_html/shmotpers.php
Строк: 44
<?
$sack = mysql_query('SELECT * FROM `pit_user` WHERE `id_user` = "'.$i['id'].'"');
$sack = mysql_fetch_array($sack);
$sack = mysql_query('SELECT * FROM `pits` WHERE `id` = "'.$sack['id_pit'].'"');
$sack = mysql_fetch_array($sack);
if(!$sack)$sack['image'] = 0;
$inv = mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_'.$w].'"');
$inv = mysql_fetch_array($inv);
$item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv['item'].'"');
$item = mysql_fetch_array($item);
?>
<?echo'<center><table border="1" background="URL" bordercolor="#291A16" cellspacing="0" cellpadding="0">';?>
<?if($i['w_1'.$w]) {?><td><img src='/images/items/<?=$w_1['item']?>.png' alt='<?=$w_1['name']?>' title='<?=$item['name']?>' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
<?echo "<td class='image' colspan='0' rowspan='5'>";?>
<center>
<?if($i['avatar']){
?><a href="/avatar/?id=<?=$i['id']?>"><img src="/avatar/upload/<?=$i['avatar']?>?v4" style="max-width:90%; max-height:260px;" ></a><?}else{?>
<a href="/avatar/?id=<?=$i['id']?>"><img src='/manekenImage/<?=$i['bg_man']?>/<?=$i['sex']?>/<?=$w_1['item']?>/<?=$w_2['item']?>/<?=$w_3['item']?>/<?=$w_4['item']?>/<?=$w_5['item']?>/<?=$w_6['item']?>/<?=$w_7['item']?>/<?=$w_8['item']?>/<?=$i['bg_man']?>/?t=<?=$sack['image']?>' alt='*'/></a>
<?
}
?>
</td>
<?if($i['w_2'.$w]) {?><td><img src='/images/items/<?=$w_2['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td height='50px'><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
<tr><?if($i['w_3'.$w]) {?><td><img src='/images/items/<?=$w_3['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
<?if($i['w_4'.$w]) {?><td><img src='/images/items/<?=$w_4['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?></td>
<tr><?if($i['w_5'.$w]) {?><td><img src='/images/items/<?=$w_5['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
<?if($i['w_6'.$w]) {?><td><img src='/images/items/<?=$w_6['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
<tr><?if($i['w_7'.$w]) {?><td><img src='/images/items/<?=$w_7['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
<?if($i['w_8'.$w]) {?><td><img src='/images/items/<?=$w_8['item']?>.png' alt='' height=50 width=50/></td>
<?
}
else
{echo "<td><img src='/images/item_null.png' alt='*' height=50 width=50/></td>";}
?>
</center>
</table>