Exemplo n.º 1
0
<?php

//echo $id;
require_once 'Logic/ItemLogic.php';
$itemLogic = new ItemLogic();
$id = $_GET['id'];
$item = $itemLogic->getItem($id);
echo $item->highestBid;
Exemplo n.º 2
0
<?php

session_start();
if (!isset($_SESSION['user'])) {
    echo "You are not authorized to see this content.<br /> Please <a href='#' onclick='signin()'>Sign In</a> to view the contents.";
} else {
    if (!isset($_GET['id'])) {
        echo "Parameter not set";
    } else {
        require_once 'Value_Object/Item.php';
        require_once 'Logic/ItemLogic.php';
        $IL = new ItemLogic();
        $item = new Item();
        $item = $IL->getItem($_GET['id']);
        ?>
<div id="itemInfo"  >

 
    <table width="70%" height="339" border="1">
      <tr>
        <td class="vtop centered" width="27%">
        
        <div class="centered">
        <span id="pic">
        <img src="upload/<?php 
        echo $item->picpath;
        ?>
" alt="Not Available" name="itempic" width="160" height="155" id="itempic" style="background-color: #999999" />
        </span>
        <a class="tsmall" href="#" onClick="MorePics(<?php 
        echo $item->itemId;