parent:: test
This commit is contained in:
3
test.php
3
test.php
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user