This commit is contained in:
Igor Barkov [iwork]
2019-02-15 17:00:01 +02:00
parent f61dd3f527
commit 313870a1fc
3 changed files with 55 additions and 47 deletions
+7 -10
View File
@@ -50,7 +50,11 @@ if ($returningItemId) {
} else $status = "Предмет не найден на полках магазина!";
}
if (isset($_POST['puttomarket']) AND $puttingItemPrice) echo "<h1>WHOA!</h1>";
if (isset($_POST['putToMarket'])) {
if ($puttingItemPrice > 0) {
$dress = db::c()->query()->fetch_assoc();
} else $status = "Хорошая попытка…";
}
if ($_GET['set']) {
@@ -199,14 +203,6 @@ switch ($shopCategoryTypeNumber) {
<link rel=stylesheet href="css/main.css">
<script src="js/main.js"></script>
<meta charset="utf-8">
<SCRIPT LANGUAGE="JavaScript">
function sale(name, txt, n, kr) {
var s = prompt("Сдать в магазин \"" + txt + "\". Укажите цену:", kr);
if ((s != null) && (s !== '')) {
location.href = "?sale=" + name + "&kredit=" + s + "&n=" + n;
}
}
</SCRIPT>
</HEAD>
<body>
<div style="float: right;">
@@ -253,7 +249,8 @@ switch ($shopCategoryTypeNumber) {
foreach ($iteminfo as $ii) {
echo "<tr><td style='width: 150px; text-align: center;'>";
$ii->printImage(); ?>
$ii->printImage();
$ii->printControls('marketput');?>
<form method="post">
<input placeholder="Цена" name="cost">
<br><input type="submit" name="puttomarket" value="Cдать в магазин">