-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproductDisplay.php
More file actions
53 lines (42 loc) · 1.11 KB
/
productDisplay.php
File metadata and controls
53 lines (42 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php include "head.inc.php" ?>
<body>
<?php include "header.html" ?>
<div class="container" id="target_spot"></div>
<?php include "productList.php" ?>
<script>
var productID;
var productArray = getProducts();
<?php
$product = $_GET['product'];
echo "productID = '$product';";
?>
productMatch(productArray,productID);
</script>
</body>
<?php include "footer.html" ?>
<!-- /*class product {
var $name;
var $id;
var $origin;
var $discount_price;
var $regular_price;
var $description;
var $image_ref;
var $aisle;
var $numOfItems;
var $quantity;
var $aisle_location;
function __construct($name, $id, $origin, $discount_price, $regular_price, $description, $image_ref, $aisle, $aisle_location, $numOfItems, $quantity) {
$this->name = $name;
$this->id = $id;
$this->origin = $origin;
$this->discount_price = $discount_price;
$this->regular_price = $regular_price;
$this->description = $description;
$this->image_ref = $image_ref;
$this->aisle = $aisle;
$this->numOfItems = $numOfItems;
$this->quantity = $quantity;
$this->aisle_location = $aisle_location;
}
}*/ -->