Размер файла: 2.21Kb
<?php
require_once '../core/system.php';
echo only_reg();
echo ban();
$header = 'Магазин';
mysql_query("UPDATE `user` set `mesto` = 'Магазин' where `id` = '".$user['id']."'");
require_once '../core/head.php';
?>
<table class="foot center" width="100%" border="0" style="padding-top: 5px;" cellpadding="2px" cellspacing="2px">
<tbody>
<tr>
<td width="50%">
<a class="fight" href="?equip"><img src="/images/icon/equip.png" width="14px" height="14px"> Экипировка</a>
</td>
<td width="50%">
<a class="fight" href="?bottle"><img src="/images/icon/alc.png"> Бутылки</a>
</td>
</tr></tbody>
</table>
<hr>
<?php
if(isset($_GET['bottle'])){
if ($user['id'] == 11 || $user['id'] == 1 || $user['id'] == 3)
{
include_once __DIR__ . '/bottle_shop.php';
} else {
$_SESSION['err']="Раздел временно в разработке!";
header ("Location: ?");
exit;
}
} else {
$spis = mysql_query("SELECT * FROM `komplekt` WHERE `lvl`<='".$user['level']."' and `id`<100 order by `id` asc Limit 11 ");
while($s = mysql_fetch_array($spis)){
?>
<div class="foot">
<table width="100%">
<tbody>
<tr>
<?php
if($user['level'] >= $s['lvl']){
echo'<td class="shadow" width="58">
<img src="/images/kompl/'.$s['id'].'.jpg" style="border:1px solid #131313;border-radius:4px; height:50px; width:50px">
</td><td>';
} else {
echo'<td width="58">
<img src="/images/kompl/'.$s['id'].'-black.jpg" style="border:1.5px solid #131313;border-radius:4px; height:50px; width:50px"></td>
<td>';
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td class="or">
<?php
if($user['level'] >= $s['lvl']){
echo'<a href="kompl?id='.$s['id'].'"><font color="D5A94B">'.$s['name'].'</font></a></td>';
} else {
echo $s['name'];
}
if($user['level']>=$s['lvl']){
echo'<td class="float-right"><font color="D5A94B">'.$s['lvl'].' ур.</font></td>';
} else {
echo'<td class="float-right">с '.$s['lvl'].' ур.</td>';
}
?>
</tr>
</tbody>
</table>
</tr>
</tbody></table></div>
<hr>
<?php
}
?>
<div class="main center">
<div class="empty2"></div>Здесь всегда можно приобрести самую лучшую экипировку!<div class="empty2"></div></div>
</div>
<?php
}
include_once '../core/foot.php';
?>