putting to shop to class

This commit is contained in:
Igor Barkov [iwork] 2019-02-15 16:24:24 +02:00
parent 4e91d62fea
commit 6f5c630b95

View File

@ -249,7 +249,7 @@ switch ($shopCategoryTypeNumber) {
foreach ($iteminfo as $ii) { foreach ($iteminfo as $ii) {
echo "<tr><td style='width: 150px; text-align: center;'>"; echo "<tr><td style='width: 150px; text-align: center;'>";
$ii->printImage(); ?> $ii->printImage(); ?>
<br><button onclick="sale(1, '<?= $iteminfo->name ?>', '<?= $iteminfo->name ?>', '<?= $iteminfo->cost ?>')">ать в магазин</button> <br><button onclick="sale(1, '<?= $iteminfo['name'] ?>', '<?= $iteminfo['id'] ?>', '<?= $iteminfo['cost'] ?>')">ать в магазин</button>
<?php <?php
echo "</td>"; echo "</td>";
echo "<td style='vertical-align: top;'>"; echo "<td style='vertical-align: top;'>";