Exemplo n.º 1
0
<?php

require_once 'Logic/ItemLogic.php';
$itemsArr = array();
$ItemLogic = new ItemLogic();
$itemsArr = $ItemLogic->recentItems();
$rows = count($itemsArr);
?>


		   
<h3>Most Recent Items</h3>
<div class="products" >
	
				<ul class="itemList" >
                
                <?php 
//echo '<pre>';
//print_r($itemsArr);
//echo '</pre>';
foreach ($itemsArr as $item) {
    echo '<li><div class="item" >';
    echo '<br />
							<span id="pic">
								<img src="upload/' . $item->picpath . '" alt="Not Available" name="profilepic" 
								width="200" height="200" id="profilepic" style="background-color: #999999" />
							</span>';
    echo '<br />
							<div class="iteminfo">
							<a href="#" onclick="ItemInfo(' . $item->itemId . ')" >Details...</a>';
    echo "<br />\r\n\t\t\t\t\t\t\t<b>Product Title : </b>" . $item->title;