From fb97d70add1dfcdbafc48e44148b9edd167fa3d4 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Sat, 23 Jun 2018 13:21:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D0=B8=D1=80=D0=B0=D0=B5=D0=BC=20?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=BC=D0=B0=D0=BD=D0=BD=D1=83=D1=8E=20=D1=81?= =?UTF-8?q?=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop.php | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/shop.php b/shop.php index 430c8ed..9be6cbe 100644 --- a/shop.php +++ b/shop.php @@ -16,18 +16,13 @@ if ($user['battle'] != 0) { die(); } -if ($_GET['sort'] == 1) { - $_SESSION['type_sort'] = 1; -} elseif ($_GET['sort'] == 2) { - $_SESSION['type_sort'] = 2; -} if ($_GET['sed']) { $dress = mysql_fetch_array(mysql_query("SELECT `id`, `name`, `cost`, `type`, `duration`, `maxdur`, `goden`, `dategoden`, `koll` FROM `inventory` WHERE `dressed` = 0 AND `id` = '" . (int)$_GET['sed'] . "' AND `owner` = '{$user['id']}' LIMIT 1")); $price = $dress['cost'] * 1; $kols = ''; if ($dress['koll']) { - $price * $dress['koll']; + $price *= $dress['koll']; $kols = '(x' . $dress['koll'] . ')'; } destructitem($dress['id']); @@ -145,15 +140,6 @@ $itemWeight = db::c()->query('SELECT sum(`massa`) AS `m` FROM `inventory` WHERE input.value = input.value.replace(/[^\d]/g, ''); } - function check(val) { - var otdel = ''; - if (val == 0) { - location.href = 'shop.php?otdel=' + otdel + '&sort=1'; - } else if (val == 1) { - location.href = 'shop.php?otdel=' + otdel + '&sort=2'; - } - } - function leave() { top.frames['main'].location = 'city.php?cp' } @@ -233,20 +219,6 @@ $itemWeight = db::c()->query('SELECT sum(`massa`) AS `m` FROM `inventory` WHERE break; } ?>" - - -