This commit is contained in:
Igor Barkov [iwork] 2019-02-15 16:30:03 +02:00
parent 6f5c630b95
commit b3df90372a
1 changed files with 6 additions and 1 deletions

View File

@ -46,6 +46,7 @@ if ($returningItemId) {
} else $status = "Предмет не найден на полках магазина!";
}
if (isset($_POST['puttomarket'])) echo "<h1>WHOA!</h1>";
if ($_GET['set']) {
@ -249,7 +250,11 @@ switch ($shopCategoryTypeNumber) {
foreach ($iteminfo as $ii) {
echo "<tr><td style='width: 150px; text-align: center;'>";
$ii->printImage(); ?>
<br><button onclick="sale(1, '<?= $iteminfo['name'] ?>', '<?= $iteminfo['id'] ?>', '<?= $iteminfo['cost'] ?>')">ать в магазин</button>
<form method="post">
<input placeholder="Цена" name="cost">
<br><input type="submit" name="puttomarket" value="ать в магазин">
</form>
<!-- <button onclick="sale(1, '--><?//= $iteminfo['name'] ?>//', '<?//= $iteminfo['id'] ?>//', '<?//= $iteminfo['cost'] ?>//')">ать в магазин</button>
<?php
echo "</td>";
echo "<td style='vertical-align: top;'>";