parent:: test

This commit is contained in:
lopar
2019-01-11 22:26:10 +02:00
parent ec59f2726e
commit 5151a5bc61
3 changed files with 27 additions and 26 deletions

View File

@@ -17,13 +17,14 @@ require_once 'config.php';
$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0');
while ($row = $result->fetch_assoc()) {
$iteminfo[] = new ItemClass($row);
$iteminfo[] = new ShopItem($row);
}
echo "<table width='100%'><th colspan='2'>Товары магазина</th>";
foreach ($iteminfo as $ii) {
echo "<tr><td bgcolor='#d3d3d3'>";
$ii->printImage();
$ii->printControls();
echo "</td>";
echo "<td bgcolor='#d3d3d3'>";
$ii->ShopInfo();