make Item abstract
This commit is contained in:
6
test.php
6
test.php
@@ -21,12 +21,12 @@ while ($row = $result->fetch_assoc()) {
|
||||
}
|
||||
|
||||
echo "<table width='100%'><th colspan='2'>Товары магазина</th>";
|
||||
foreach ($iteminfo as $iinfo) {
|
||||
foreach ($iteminfo as $ii) {
|
||||
echo "<tr><td bgcolor='#d3d3d3'>";
|
||||
$iinfo->printItemImage();
|
||||
$ii->printImage();
|
||||
echo "</td>";
|
||||
echo "<td bgcolor='#d3d3d3'>";
|
||||
$iinfo->printItemStats();
|
||||
$ii->printStats();
|
||||
echo "</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
Reference in New Issue
Block a user