Файл: sumerki.mobi/sumerki.mobi/shop.php
Строк: 574
<?
//////////////////////////////////////////////////////////////
//////////////////////Онлайн "Сумерки"///////////////////
//////////////////////Основатель: Mc Laren////////////////////
///////////////////Контакты: ICQ - 597687549//////////////////
/////////////////////Пример: Sumerki.Mobi/////////////////////
///////////Если ты это читаешь, значит скрипт слили :D////////
//////////////////////////////////////////////////////////////
/*
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
if($udata[lvl]>$mag[nlvl]){$font="#AAAAAA";$pic="downlvl.png";}
if($udata[lvl]>=$mag[nlvl] and $udata[lvl]<=$mag[nlvl]+5){$font="#71cc71";$pic="lvl.png";}
if($udata[lvl]<$mag[nlvl]){$font="chocolate";$pic="uplvl.png";}
$wep = mysql_query("SELECT * FROM `weapon` WHERE `image`= 'yes' and `usr`='$log' and `tip`='$mag[tip]'") or die (mysql_error());
$wep = mysql_fetch_array($wep);
$stat = $wep[hp]+$wep[mp]+$wep[krit]+$wep[ukrit]+$wep[sila]+$wep[lovk]+$wep[prot];
$statmag = $mag[hp]+$mag[mp]+$mag[krit]+$mag[ukrit]+$mag[sila]+$mag[lovk]+$mag[prot];
if($stat==$statmag){$tex=" Надето!";}
if($statmag-$stat>0){$sta=$statmag-$stat; $tex="<font color='#71cc71'> Лучше +$sta</font>";}
if($statmag-$stat<0){$sta=$statmag-$stat; $tex="<font color='#FF6633'> Хуже $sta</font>";}
*/
define('PROTECTOR', 1);
$headmod = 'shop';//фикс. места
$textl='Магазин вещей';
include('files/path.php');
include('files/gzips.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
going();
ryd();
place_okr();
place_zamok();
include($path.'files/core.php');
include($path.'files/head.php');
include($path.'files/zag.php');
switch($_GET[mod]){
default:
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Магазин';
echo '</div><div class="clearFix"></div></div></div></div>';
//echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> Лавка оружия</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b">    <img src='/theme/standart/images/galochka.png'/> Лавка брони</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=prochee">    <img src='/theme/standart/images/galochka.png'/> Прочие вещи</a></div>";
//echo '</div></div></div></div></div></div></div></div></div>';
echo "<div class='button pad_bot_5 pad'><a href="gorod.php?pl=shop_zone">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
case 'prochee':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Прочее';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='0' and `tip`='weapon' ORDER BY nlvl");
////////////////////////////
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">Купить $mag[name]</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
case 'weapons':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружия';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo 'Выбери уровень оружия, который соответствует твоему уровню';
echo '</div></div></div></div></div></div></div></div></div>';
if($udata[lvl]>"2"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon3">    <img src='/theme/standart/images/galochka.png'/> 3 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 3 уровня</font></a></div>";}
if($udata[lvl]>"4"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon5">    <img src='/theme/standart/images/galochka.png'/> 5 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 5 уровня</font></a></div>";}
if($udata[lvl]>"9"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon10">    <img src='/theme/standart/images/galochka.png'/> 10 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 10 уровня</font></a></div>";}
if($udata[lvl]>"11"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon12">    <img src='/theme/standart/images/galochka.png'/> 12 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 12 уровня</font></a></div>";}
if($udata[lvl]>"16"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon17">    <img src='/theme/standart/images/galochka.png'/> 17 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 17 уровня</font></a></div>";}
if($udata[lvl]>"19"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon20">    <img src='/theme/standart/images/galochka.png'/> 20 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 20 уровня</font></a></div>";}
if($udata[lvl]>"22"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon23">    <img src='/theme/standart/images/galochka.png'/> 23 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 23 уровня</font></a></div>";}
if($udata[lvl]>"26"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon27">    <img src='/theme/standart/images/galochka.png'/> 27 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 27 уровня</font></a></div>";}
if($udata[lvl]>"29"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon30">    <img src='/theme/standart/images/galochka.png'/> 30 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 30 уровня</font></a></div>";}
if($udata[lvl]>"32"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon33">    <img src='/theme/standart/images/galochka.png'/> 33 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 33 уровня</font></a></div>";}
if($udata[lvl]>"35"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon36">    <img src='/theme/standart/images/galochka.png'/> 36 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 36 уровня</font></a></div>";}
if($udata[lvl]>"39"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon40">    <img src='/theme/standart/images/galochka.png'/> 40 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 40 уровня</font></a></div>";}
/*if($udata[lvl]<"44"){
echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapon45">    <img src='/theme/standart/images/galochka.png'/> 45 уровень</a></div>";
}else {echo"<div class='button pad_bot_5 pad'> <a href="shop.php?mod=weapons">    <img src='/theme/standart/images/galochka.png'/> <font color='red'>Доступно с 45 уровня</font></a></div>";}
*///echo"» <a href="shop.php?mod=weapon1">Артефакты</a></div>";
break;
case 'weapon3':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 3 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='3' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon5':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 5 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='5' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon10':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 10 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='10' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon12':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 12 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
if($udata[lvl]>"12"){
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='12' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
}else {echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">Доступно с 12 уровня</div></div></div></div></div></div></div></div></div>';}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon17':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 17 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='17' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon20':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 20 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='20' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon23':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 23 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='23' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon27':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 27 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='27' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon30':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 30 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='30' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon33':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 33 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='33' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon36':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 36 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='36' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon40':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 40 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='40' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon45':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 45 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='45' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
//////////////////////////////////////////////////////////
case 'weapon1':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Оружие 1 ур.';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='1' and `tip`='weapon' ORDER BY nlvl");
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
case 'b':
if(empty($_GET[o])){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Броня';
echo '</div><div class="clearFix"></div></div></div></div>';
//echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=shit">    <img src='/theme/standart/images/galochka.png'/> Щит</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=golova">    <img src='/theme/standart/images/galochka.png'/> Голова</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=body">    <img src='/theme/standart/images/galochka.png'/> Торс</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=poyas">    <img src='/theme/standart/images/galochka.png'/> Пояс</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=plash">    <img src='/theme/standart/images/galochka.png'/> Плащ</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=ruki">    <img src='/theme/standart/images/galochka.png'/> Руки</a></div>";
echo"<div class='button pad_bot_5 pad'><a href="shop.php?mod=b&o=nogi">    <img src='/theme/standart/images/galochka.png'/> Ноги</a></div>";
//echo '</div></div></div></div></div></div></div></div></div>';
}else{
if($_GET[o]!=shit && $_GET[o]!=golova && $_GET[o]!=body && $_GET[o]!=poyas && $_GET[o]!=plash && $_GET[o]!=ruki && $_GET[o]!=nogi){
echo'Ошибка!';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Броня';
echo '</div><div class="clearFix"></div></div></div></div>';
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `tip`='$_GET[o]' ORDER BY nlvl");
////////////////////////////
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
case 'weapon':
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `nlvl`='1' and `tip`='weapon' ORDER BY nlvl");
////////////////////////////
$avto=mysql_num_rows($req);
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="shop.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$mag[name].png" height=40 width=40>";
echo" <br> $mag[cena] серебра <br><a class="buuut" href="sell.php?act=ask&id=$mag[id]">купить</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class='button pad_bot_5 pad'><a href="shop.php?mod=w">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
case 'info':
$req = mysql_query("SELECT * FROM `shop` WHERE `city` = '$udata[city]' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo'<div class="b-panel gray-panel">Ошибка!</div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$mag = mysql_fetch_array($req);
switch($mag[tip]){
case 'weapon':
$tip='Оружие';
break;
case 'body':
$tip='Торс';
break;
case 'golova':
$tip='Голова';
break;
case 'nogi':
$tip='Ноги';
break;
case 'shit':
$tip='Щит';
break;
case 'poyas':
$tip='Пояс';
break;
case 'plash':
$tip='Плащ';
break;
case 'ruki':
$tip='Руки';
break;
}
switch($mag[klas]){
case 'not':
$klas='Все';
break;
case 'wizard':
$klas='Вампир';
break;
case 'fighert':
$klas='Оборотень';
break;
}
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo "$mag[name]";
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<b>$mag[name]</b><br/>";
echo"<img src="pic/tip/$mag[name].png" height=40 width=40><br/>
<b>Тип:</b> $tip<br/>
<b>Характеристики</b><br/>";
if(!empty($mag[umin])) if(!empty($mag[umax])) echo "<img src='pic/main/strength.png'> Урон: $udata[umin]/$udata[umax] <font color='lime'>+$mag[umin]/+$mag[umax]</font><br/>";
if(!empty($mag['hp'])) echo "<img src='pic/main/hp.png'> Здоровье: $udata[hp] <font color='lime'>+$mag[hp]</font><br/>";
if(!empty($mag['mp'])) echo "<img src='pic/main/mp.png'> Мана: $udata[mp] <font color='lime'>+$mag[mp]</font><br/>";
if(!empty($mag['sila'])) echo "<img src='pic/main/str.png'> Сила: $udata[sila]<font color='lime'>+$mag[sila]</font><br/>";
if(!empty($mag['lovk'])) echo "<img src='pic/main/dodge.png'> Ловкость: $udata[lovk]<font color='lime'>+$mag[lovk]</font><br/>";
if(!empty($mag['um'])) echo "<img src='pic/main/hp1.png'> Интелект: $udata[um]<font color='lime'>+$mag[um]</font><br/>";
if(!empty($mag['prot'])) echo "<img src='pic/main/def.png'> Защита: $udata[prot]<font color='lime'>+$mag[prot]</font><br/>";
if(!empty($mag['krit'])) echo "<img src='pic/main/critical.png'> Точность: $udata[krit]<font color='lime'>+$mag[krit]%</font><br/>";
if(!empty($mag['ukrit'])) echo "<img width='12' height='12' src='pic/main/crit.png'> Сокрушение: $udata[ukrit]<font color='lime'>+$mag[ukrit]%</font><br/>";
if(!empty($mag['antikrit'])) echo "<img src='pic/main/am.png'> Стойкость: $udata[antikrit]<font color='lime'>+$mag[antikrit]%</font><br/>";
/*echo "<b>Требования:</b><br/>
echo "Раса: $klas<br/>";
echo "Сила: $mag[nsila]<br/>";
echo "Ловкость: $mag[nlovk]<br/>";
echo "Интелект: $mag[num]<br/>";
echo "Уровень: $mag[nlvl]</div>";
";*/
echo '</div></div></div></div></div></div></div></div></div>';
echo "<div class='button pad_bot_5 pad'><a href="shop.php?">    <img src='/theme/standart/images/galochka.png'/> Вернуться</a></div>";
break;
}
include($path.'files/down.php');
include($path.'files/meny.php');
?>