2022-06-06 21:30:34 +00:00
|
|
|
|
<?php
|
|
|
|
|
if(!defined('GAME'))
|
|
|
|
|
{
|
|
|
|
|
die();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($u->room['file']=='artshop')
|
|
|
|
|
{
|
|
|
|
|
if(!isset($_GET['otdel']))
|
|
|
|
|
{
|
|
|
|
|
$_GET['otdel'] = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$sid = 777;
|
|
|
|
|
|
|
|
|
|
$error = '';
|
|
|
|
|
|
|
|
|
|
/*if( isset($_GET['restartprice'])) {
|
|
|
|
|
$sp = mysql_query('SELECT `s`.*,`m`.* FROM `items_shop` AS `s` LEFT JOIN `items_main` AS `m` ON `m`.`id` = `s`.`item_id` WHERE `s`.`sid` = "777"');
|
|
|
|
|
|
|
|
|
|
while($pl = mysql_fetch_array($sp)) {
|
|
|
|
|
$price2 = round(($pl['price2']/2.5),2);
|
|
|
|
|
if( $price2 > 100 ) {
|
|
|
|
|
mysql_query('UPDATE `items_shop` SET `price_2` = "'.$price2.'" WHERE `item_id` = "'.$pl['id'].'" AND `sid` = 777 LIMIT 1');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
if(isset($_GET['buy']) && isset($u->bank['id']))
|
|
|
|
|
{
|
|
|
|
|
if($u->newAct($_GET['sd4'])==true)
|
|
|
|
|
{
|
|
|
|
|
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x']);
|
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$re = 'Вы уверены что хотите купить этот предмет?';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
}elseif(isset($_GET['buy_vip']) && isset($u->bank['id']) && $u->stats['silver'] > 1)
|
|
|
|
|
{
|
|
|
|
|
if($u->newAct($_GET['sd4'])==true)
|
|
|
|
|
{
|
|
|
|
|
$re = $u->buyItem($sid,(int)$_GET['buy_vip'],(int)$_GET['x'],NULL,true);
|
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$re = 'Вы уверены что хотите купить этот предмет?';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function AddCount(name, txt)
|
|
|
|
|
{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
document.getElementById("hint4").innerHTML = '<table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>'+
|
2022-06-06 21:30:34 +00:00
|
|
|
|
'<form method=post><table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="'+name+'"><td colspan=2 align=center><B><I>'+txt+'</td></tr><tr><td width=80% align=right>'+
|
2023-01-10 16:29:32 +00:00
|
|
|
|
'Количество (шт.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%> <INPUT TYPE="submit" value=" »» ">'+
|
2022-06-06 21:30:34 +00:00
|
|
|
|
'</TD></TR></form></TABLE></td></tr></table>';
|
|
|
|
|
document.getElementById("hint4").style.visibility = 'visible';
|
|
|
|
|
document.getElementById("hint4").style.left = '100px';
|
|
|
|
|
document.getElementById("hint4").style.top = '100px';
|
|
|
|
|
document.getElementById("count").focus();
|
|
|
|
|
}
|
|
|
|
|
function closehint3() {
|
|
|
|
|
document.getElementById('hint4').style.visibility='hidden';
|
|
|
|
|
Hint3Name='';
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
|
|
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
|
|
|
|
.class_ {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #C5C5C5;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
.class_st {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #659BA3;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
.class__ {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
background-color: #659BA3;
|
|
|
|
|
}
|
|
|
|
|
.class__st {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
background-color: #659BA3;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
.class_old {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #919191;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
.class__old {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
background-color: #838383;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
.shop_menu_txt { background-color: #d5d5d5; }
|
|
|
|
|
</style>
|
|
|
|
|
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr><td valign="top"><div align="center" class="pH3"><? echo $u->room['name']; ?></div>
|
|
|
|
|
<?php
|
|
|
|
|
echo '<b style="color:red">'.$error.'</b>';
|
|
|
|
|
?>
|
|
|
|
|
<br />
|
|
|
|
|
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
|
|
|
|
<TR>
|
|
|
|
|
<form name="F1" method="post">
|
|
|
|
|
<TD valign="top" align="left">
|
|
|
|
|
<? if(isset($u->bank['id']) && ($u->bank['money2']>0.00 || $u->info['admin']>0)){ ?>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<!--Магазин-->
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
|
|
|
|
|
<div id="hint3" style="visibility:hidden"></div>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" height="21">
|
|
|
|
|
<?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
/*названия разделов (сверху)*/
|
2022-06-06 21:30:34 +00:00
|
|
|
|
if(!isset($_GET['gifts']) && isset($_GET['otdel']))
|
|
|
|
|
{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$otdels_small_array = array (1=>'<b>Отдел "Оружие: кастеты,ножи"</b>',2=>'<b>Отдел "Оружие: топоры"</b>',3=>'<b>Отдел "Оружие: дубины,булавы"</b>',4=>'<b>Отдел "Оружие: мечи"</b>',5=>'<b>Отдел "Оружие: магические посохи"</b>',6=>'<b>Отдел "Одежда: сапоги"</b>',7=>'<b>Отдел "Одежда: перчатки"</b>',8=>'<b>Отдел "Одежда: рубахи"</b>',28=>'<b>Отдел "Одежда: плащи"</b>',9=>'<b>Отдел "Одежда: легкая броня"</b>',10=>'<b>Отдел "Одежда: тяжелая броня"</b>',11=>'<b>Отдел "Одежда: шлемы"</b>',12=>'<b>Отдел "Одежда: наручи"</b>',13=>'<b>Отдел "Одежда: пояса"</b>',14=>'<b>Отдел "Одежда: поножи"</b>',15=>'<b>Отдел "Щиты"</b>',16=>'<b>Отдел "Ювелирные товары: серьги"</b>',17=>'<b>Отдел "Ювелирные товары: ожерелья"</b>',18=>'<b>Отдел "Ювелирные товары: кольца"</b>',19=>'<b>Отдел "Заклинания: нейтральные"</b>',20=>'<b>Отдел "Заклинания: боевые и защитные"</b>',21=>'<b>Отдел "Амуниция"</b>',22=>'<b>Отдел "Амуниция: эликсиры"</b>',23=>'<b>Отдел "Подарки"</b>',24=>'<b>Отдел "Подарки: недобрые"</b>',25=>'<b>Отдел "Подарки: открытки"</b>',26=>'<b>Отдел "Подарки: упаковка"</b>',27=>'<b>Отдел "Подарки: фейерверки"</b>');
|
2022-06-06 21:30:34 +00:00
|
|
|
|
if(isset($otdels_small_array[$_GET['otdel']]))
|
|
|
|
|
{
|
|
|
|
|
echo $otdels_small_array[$_GET['otdel']];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} elseif (isset($_GET['gifts']))
|
|
|
|
|
{
|
|
|
|
|
echo '
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<B>Отдел "Сделать подарки"</B>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr><td>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<!--Рюкзак / Прилавок-->
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5">
|
|
|
|
|
<?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//Выводим вещи в магазине для покупки
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$u->shopItems($sid);
|
|
|
|
|
?>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</TD></TR>
|
|
|
|
|
</TABLE>
|
|
|
|
|
<div align="center">
|
|
|
|
|
<? }else{ ?>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<div align="center">Магазин является валютным, вы можете войти только имея еврокредиты. Укажите номер вашего счета в банке и пароль к нему.<br />
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<br />
|
|
|
|
|
<?
|
|
|
|
|
if(isset($_POST['bank']) && isset($u->bank['id']))
|
|
|
|
|
{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<font color="red"><b>Банковский счет пуст, вход в магазин запрещен</b></font>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}elseif(isset($_POST['bank']) && !isset($u->bank['id']))
|
|
|
|
|
{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<font color="red"><b>Неверный пароль от банковского счета.</b></font>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<br /><br />
|
|
|
|
|
<table width="300" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#B1A996"><div align="center"><strong>Счёт в банке</strong></div></td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#DDD5C2" style="padding:5px;"><div align="center"><small>Выберите счёт и введите пароль<br />
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<select name="bank" id="bank">
|
|
|
|
|
<?
|
|
|
|
|
$scet = mysql_query('SELECT `id` FROM `bank` WHERE `block` = "0" AND `uid` = "'.$u->info['id'].'"');
|
|
|
|
|
while ($num_scet = mysql_fetch_array($scet))
|
|
|
|
|
{
|
|
|
|
|
echo "<option>".$u->getNum($num_scet['id'])."</option>";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</select>
|
|
|
|
|
<input style="margin-left:5px;" type="password" name="bankpsw" id="bankpsw" />
|
|
|
|
|
<label></label>
|
|
|
|
|
</small>
|
|
|
|
|
<input style="margin-left:3px;" type="submit" name="button" id="button" value=" ok " />
|
|
|
|
|
</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<br />
|
|
|
|
|
</div>
|
|
|
|
|
<? } ?>
|
|
|
|
|
</div></TD>
|
|
|
|
|
</FORM>
|
|
|
|
|
</TR>
|
|
|
|
|
</TABLE>
|
|
|
|
|
<td width="280" valign="top">
|
|
|
|
|
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
|
|
|
<tr align="right" valign="top">
|
|
|
|
|
<td>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<? echo $goLis; ?>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
|
|
|
|
<tr>
|
|
|
|
|
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.13&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.13',1); ?>">Березка</a></td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td></table>
|
|
|
|
|
</td></table>
|
|
|
|
|
<div><br />
|
|
|
|
|
<? if(isset($u->bank['id'])){ ?>
|
|
|
|
|
<div align="right">
|
|
|
|
|
<small>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
Масса: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
|
|
|
|
№<? echo $u->getNum($u->bank['id']); ?>: <b><? echo $u->bank['money1']; ?></b>кр. <b><? echo $u->bank['money2']; ?></b>екр. <a href="main.php?bank_exit=<? echo $code; ?>"><img src="https://img.new-combats.com/i/close_bank.gif" style="cursor:pointer;" title="Закрыть работу со счётом"></a></small>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</small>
|
|
|
|
|
</div>
|
|
|
|
|
<br />
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<INPUT TYPE="button" class="btn" value="Обновить" onclick="location = '<? echo $_SERVER['REQUEST_URI']; ?>';"><BR>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<? if(isset($u->bank['id']) && ($u->bank['money2']>0.00 || $u->info['admin']>0)){ ?>
|
|
|
|
|
</div>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<div style="background-color:#A5A5A5;padding:1"><center><B>Отделы магазина</B></center></div>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<div style="line-height:17px;">
|
|
|
|
|
<?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
/*названия разделов (справа)*/
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$otdels_array = array (
|
2023-01-10 16:29:32 +00:00
|
|
|
|
1=>' Кастеты,ножи',
|
|
|
|
|
2=>' Топоры',
|
|
|
|
|
3=>' Дубины,булавы',
|
|
|
|
|
4=>' Мечи',
|
|
|
|
|
5=>' Магические посохи',
|
|
|
|
|
6=>' Сапоги',
|
|
|
|
|
7=>' Перчатки',
|
|
|
|
|
8=>' Рубахи',
|
|
|
|
|
9=>' Легкая броня',
|
|
|
|
|
10=>' Тяжелая броня',
|
|
|
|
|
11=>' Шлемы',
|
|
|
|
|
12=>' Наручи',
|
|
|
|
|
13=>' Пояса',
|
|
|
|
|
14=>' Поножи',
|
|
|
|
|
15=>' Щиты',16=>' Серьги',
|
|
|
|
|
17=>' Ожерелья',
|
|
|
|
|
18=>' Кольца',
|
|
|
|
|
19=>' Нейтральные',
|
|
|
|
|
20=>' Боевые и защитные',
|
|
|
|
|
21=>' Амуниция',
|
|
|
|
|
22=>' Эликсиры',
|
|
|
|
|
23=>' Подарки',24=>' Недобрые',25=>' Открытки',26=>' Упаковка',27=>' Фейерверки',28=>' Плащи и накидки'/*,29=>'Слоты смены: Постоянные',30=>' Временные слоты смены'*/);
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$i=1;
|
|
|
|
|
while ($i!=-1)
|
|
|
|
|
{
|
|
|
|
|
if(isset($otdels_array[$i]))
|
|
|
|
|
{
|
|
|
|
|
if(isset($_GET['otdel']) && $_GET['otdel']==$i)
|
|
|
|
|
{
|
|
|
|
|
$color = 'C7C7C7';
|
|
|
|
|
} else {
|
|
|
|
|
$color = 'e2e0e0';
|
|
|
|
|
}
|
|
|
|
|
if($i == 1) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/1.png"> <b>Оружие:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 6) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/2.png"> <b>Одежда:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 15) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/3.png"> <b>Щиты:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 16) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/4.png"> <b>Ювелирные товары:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 19) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/6.png"> <b>Заклинания:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 21) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/7.png"> <b>Амуниция:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 22) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/5.png"> <b>Эликсиры:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 23) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/8.png"> <b>Подарки:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
} elseif($i == 28) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/9.png"> <b>Дополнительно:</b></div>';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
echo '
|
|
|
|
|
<A HREF="?otdel='.$i.'"><DIV style="background-color: #'.$color.'">
|
|
|
|
|
'.$otdels_array[$i].'
|
|
|
|
|
</A></DIV>
|
|
|
|
|
';
|
|
|
|
|
} else {
|
|
|
|
|
$i = -2;
|
|
|
|
|
}
|
|
|
|
|
$i++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(isset($_GET['gifts']))
|
|
|
|
|
{
|
|
|
|
|
$color = 'C7C7C7';
|
|
|
|
|
}
|
|
|
|
|
echo '</DIV>';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
<? } ?>
|
|
|
|
|
</td>
|
|
|
|
|
</table>
|
|
|
|
|
<br>
|
|
|
|
|
<div id="textgo" style="visibility:hidden;"></div>
|
|
|
|
|
<?
|
|
|
|
|
}
|
|
|
|
|
?>
|