diff --git a/repair.php b/repair.php index e21d429..9b2f6a4 100644 --- a/repair.php +++ b/repair.php @@ -48,6 +48,11 @@ if ($_GET['sid'] && $_GET['rep']) { } } +if (input::post('goto') == 'remont') { + $data = db::c()->query('SELECT * FROM `inventory` WHERE `type` < 12 AND `dressed` = 0 AND `isrep` = 1 AND `setsale` = 0 AND `owner` = ?i ORDER BY `update` DESC', $_SESSION['uid']); + $onecost = 0.1; +} + ?> @@ -113,6 +118,16 @@ if ($_GET['sid'] && $_GET['rep']) { +fetch_assoc()): ?> +
+ +
+ + Ремонт за кр. +
+
+ @@ -123,9 +138,7 @@ if ($_GET['sid'] && $_GET['rep']) {
query('SELECT * FROM `inventory` WHERE `type` < 12 AND `dressed` = 0 AND `isrep` = 1 AND `setsale` = 0 AND `owner` = ?i ORDER BY `update` DESC', $_SESSION['uid']); while ($row = $data->fetch_assoc()) { - $onecost = 0.1; ?>