notice fixes
This commit is contained in:
parent
016e5a9ccd
commit
e2ca31b543
12
ashop.php
12
ashop.php
@ -24,7 +24,7 @@ $shopItems = db::c()->query('SELECT `ashop`.*,
|
|||||||
`magic`.`needcharge` AS `magic_needcharge`,
|
`magic`.`needcharge` AS `magic_needcharge`,
|
||||||
`magic`.`img` AS `magic_img`
|
`magic`.`img` AS `magic_img`
|
||||||
|
|
||||||
FROM `ashop` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE `count` > 0 AND `cost` > 0 AND `razdel` = ?i ORDER by `nlevel` ASC, `id` ASC', $_GET['otdel']);
|
FROM `ashop` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE `count` > 0 AND `ecost` > 0 AND `razdel` = ?i ORDER by `nlevel` ASC, `id` ASC', $_GET['otdel']);
|
||||||
|
|
||||||
$iteminfo = [];
|
$iteminfo = [];
|
||||||
while ($row = $shopItems->fetch_assoc()) {
|
while ($row = $shopItems->fetch_assoc()) {
|
||||||
@ -74,13 +74,10 @@ if (!empty($_GET['buy'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$shopCategory = '';
|
$shopCategory = '';
|
||||||
if ($_REQUEST['compare'] && !$_REQUEST['common'] && !$_REQUEST['present']) {
|
$shopCategoryTypeNumber = empty($_GET['otdel']) ?: $_GET['otdel'];
|
||||||
$shopCategory = "Составление подарочного букета";
|
switch ($shopCategoryTypeNumber) {
|
||||||
} else {
|
|
||||||
switch ($_GET['otdel']) {
|
|
||||||
default:
|
default:
|
||||||
$shopCategory = "Кастеты и ножи";
|
$shopCategory = "Кастеты и ножи";
|
||||||
$_GET['otdel'] = 1;
|
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
$shopCategory = "Кастеты и ножи";
|
$shopCategory = "Кастеты и ножи";
|
||||||
@ -136,7 +133,6 @@ if ($_REQUEST['compare'] && !$_REQUEST['common'] && !$_REQUEST['present']) {
|
|||||||
case 7:
|
case 7:
|
||||||
$shopCategory = "Букеты";
|
$shopCategory = "Букеты";
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -197,7 +193,7 @@ if ($_REQUEST['compare'] && !$_REQUEST['common'] && !$_REQUEST['present']) {
|
|||||||
<dd><a href="?otdel=5&rnd=<?= mt_rand() ?>">разные</a></dd>
|
<dd><a href="?otdel=5&rnd=<?= mt_rand() ?>">разные</a></dd>
|
||||||
<dt><b>Разное:</b></dt>
|
<dt><b>Разное:</b></dt>
|
||||||
<dd><a href="?otdel=6&rnd=<?= mt_rand() ?>">амуниция</a></dd>
|
<dd><a href="?otdel=6&rnd=<?= mt_rand() ?>">амуниция</a></dd>
|
||||||
<dd><a href="?otdel=7rnd=<?= mt_rand() ?>">букеты</a></dd>
|
<dd><a href="?otdel=7&rnd=<?= mt_rand() ?>">букеты</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user