tests
This commit is contained in:
parent
6f5c630b95
commit
b3df90372a
@ -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'] ?>')">Cдать в магазин</button>
|
||||
<form method="post">
|
||||
<input placeholder="Цена" name="cost">
|
||||
<br><input type="submit" name="puttomarket" value="Cдать в магазин">
|
||||
</form>
|
||||
<!-- <button onclick="sale(1, '--><?//= $iteminfo['name'] ?>//', '<?//= $iteminfo['id'] ?>//', '<?//= $iteminfo['cost'] ?>//')">Cдать в магазин</button>
|
||||
<?php
|
||||
echo "</td>";
|
||||
echo "<td style='vertical-align: top;'>";
|
||||
|
Loading…
Reference in New Issue
Block a user