include_once("header.html");
$_SESSION['pageFrom'] = $PHP_SELF;
include_once("backend/products.php");
$productRev = new Product();
$reviews = $productRev->recentReviews();
?>
if (!$_POST['search']) { print "
";}?>
Search for Cigars
if ($_POST['search']) {
if (!$_POST['product']) {
?>
Please type in search keyword.
}
else {
$product = new Product();
$products = $product->searchProduct($_POST['product'], $_POST['category'], $_SESSION['user_id']);
if (!$products) {
?>
No search results matched. Please try again.
}
else {
foreach($products as $productObj) {
print "
";
?>
Average rating:
average_rating) == 1) print "checked";?> disabled/>
average_rating) == 2) print "checked";?> disabled/>
average_rating) == 3) print "checked";?> disabled/>
average_rating) == 4) print "checked";?> disabled/>
average_rating) == 5) print "checked";?> disabled/>
print "
$productObj->description
";
?>
}
}
}
}
?>
include_once("pages/recent-news.html");
?>
include_once("pages/recent-reviews.html");
?>
include_once("footer.html");
?>