2022-06-06 21:30:34 +00:00
|
|
|
<?php
|
|
|
|
if(!defined('GAME'))
|
|
|
|
{
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($_GET['cryshop']))
|
|
|
|
{
|
|
|
|
$shopProcent = 50;
|
|
|
|
|
|
|
|
if(!isset($_GET['otdel']))
|
|
|
|
{
|
|
|
|
$_GET['otdel'] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
$sid = 1050;
|
|
|
|
|
|
|
|
$error = '';
|
|
|
|
|
|
|
|
if(isset($_GET['buy']))
|
|
|
|
{
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
2023-01-10 16:29:32 +00:00
|
|
|
<tr><td valign="top"><div align="center" class="pH3">Магазин Самоцветов</div>
|
2022-06-06 21:30:34 +00:00
|
|
|
<?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">
|
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>
|
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
|
|
|
|
$u->shopItems($sid,'cryshop=1&');
|
|
|
|
?>
|
|
|
|
</TABLE>
|
|
|
|
</TD></TR>
|
|
|
|
</TABLE>
|
|
|
|
</TD>
|
|
|
|
</FORM>
|
|
|
|
</TR>
|
|
|
|
</TABLE>
|
|
|
|
<td width="280" valign="top"><div>
|
|
|
|
<br />
|
|
|
|
<br />
|
2023-01-10 16:29:32 +00:00
|
|
|
<INPUT TYPE="button" value="Обновить" onclick="location = '<? echo $_SERVER['REQUEST_URI']; ?>';">
|
|
|
|
<input type="button" value="Вернуться" onclick="location = 'main.php';" />
|
2022-06-06 21:30:34 +00:00
|
|
|
<BR>
|
|
|
|
</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
|
|
|
/*названия разделов (справа)*/
|
|
|
|
$otdels_array = array (1=>'Усиления: временные',2=>' постоянные',3=>' негативные',3=>'Эликсиры: на статы');
|
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';
|
|
|
|
}
|
|
|
|
echo '
|
|
|
|
<A HREF="?cryshop=1&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>
|
|
|
|
<?
|
|
|
|
}
|
|
|
|
?>
|