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;
Exemplo n.º 2
0
<?php

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

session_start();
require_once 'Logic/ItemLogic.php';
$itemLogic = new ItemLogic();
$itemLogic->insertPic($_GET['oid'], $_GET['pd'], $_GET['pn'], $_GET['pp']);
Exemplo n.º 4
0
<?php

session_start();
require_once 'Logic/ItemLogic.php';
$itemLogic = new ItemLogic();
$itemsArr = array();
$id = $_SESSION['user'];
$itemsArr = $itemLogic->getPostedItems($id);
?>

<p>
------My Posts------
</p>
<ul class="itemList" >
                
                <?php 
//echo '<pre>';
//print_r($itemsArr);
//echo '</pre>';
if (!$itemsArr) {
    echo "No posts from you.";
} else {
    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">
Exemplo n.º 5
0
<?php

require_once 'Logic/ItemLogic.php';
$itemLogic = new ItemLogic();
$itemsArr = array();
$itemsArr = $itemLogic->search($_GET['Pname'], $_GET['category'], $_GET['LRange'], $_GET['URange'], $_GET['date']);
?>
<p>
Results
</p>
<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;
    echo "<br/>\r\n\t\t\t\t\t\t\t<b>Category : </b>" . $item->category . "\r\n\t\t\t\t\t\t  <br />\r\n\t\t\t\t\t\t  \t<b>Highest Bid : </b>" . $item->highestBid . "\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</div>";
    echo '</div></li>';
}
?>
Exemplo n.º 6
0
require_once 'Logic/ItemLogic.php';
$title = $_POST['title'];
$minPrice = $_POST['minPrice'];
$category = $_POST['category'];
$Enddate = $_POST['inputDate'];
$desc = $_POST['desc'];
$item = new Item();
$item->setTitle($title);
$item->setMinPrice($minPrice);
$item->setCategory($category);
$item->setBiddingEndOn($Enddate);
$item->setDesc($desc);
$item->setOwnerId($_SESSION['user']);
//($_SESSION['user']);
$item->setStatus("available");
$itemLogic = new ItemLogic();
$itemLogic->insertItem($item);
?>

<script type="text/javascript">
	

</script>
<div class="c">
<form id="abc" method="post">
<div id="file-uploader-demo1">		
		<noscript>			
			<p>Please enable JavaScript to use file uploader.</p>
			<!-- or put a simple form for upload here -->
		</noscript>         
</div> 
Exemplo n.º 7
0
<?php

session_start();
require_once 'Logic/ItemLogic.php';
$itemLogic = new ItemLogic();
$itemsArr = array();
$id = $_SESSION['user'];
$itemsArr = $itemLogic->getWonItems($id);
?>

<p>
------My Wins------
</p>
<ul class="itemList" >
                
                <?php 
if (!$itemsArr) {
    echo "No winings for you.";
} else {
    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;
        echo "<br/>\r\n\t\t\t\t\t\t\t<b>Category : </b>" . $item->category . "\r\n\t\t\t\t\t\t  <br />\r\n\t\t\t\t\t\t  \t<b>Highest Bid : </b>" . $item->highestBid . "\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</div>";
Exemplo n.º 8
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;