Esempio n. 1
0
    }
}
// category block
// timing out ocasionally
//echo "Your vehicle: " . $Vehicle->getVehicle()->getYear() . " " . $Vehicle->getVehicle()->getMake() . " " . $Vehicle->getVehicle()->getModel() . " " . $Vehicle->getVehicle()->getStyle();
$Category = new happpi\Category();
echo "<hr />";
echo "<h1>Categories</h1>";
echo "<hr />";
foreach ($Category->getParentCategories() as $parentCat) {
    echo '<a href="category.php?catID=' . $parentCat->getCatID() . '">';
    echo '<img src="' . $parentCat->getImage() . '" title="' . $parentCat->getCatTitle() . '" width="100" />';
    echo '</a>';
}
// latest parts block
echo "<h1>Latest Parts</h1>";
$LatestParts = new happpi\Part();
foreach ($LatestParts->getLatestParts() as $lp) {
    echo "<hr />";
    echo '<a href="part.php?partID=' . $lp->getPartID() . '">';
    echo "<h2>" . $lp->getShortDesc() . "</h2>";
    echo "</a>";
}
?>
			</form>
		</div>
		</header>
		<section class="content">
		</section>
	</body>
</html>