PHP Classes

File: examples/cart/app/templates/product/listing.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/cart/app/templates/product/listing.php   Download  
File: examples/cart/app/templates/product/listing.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 728 bytes
 

Contents

Class file image Download
<form action="index.php/cart/" method="get">
<h2>Product Listing</h2>
<h3>Category <?php echo $category; ?></h3>
<table cellpadding="5">
<tr>
<td>SKU</td>
<td>Name</td>
<td>Price</td>
<td>Quantity</td>
</tr>
<?php
$carturl
= new A_Cart_Url();

$rows = $product->findProductsInCategory($category);
foreach (
$rows as $row)
{
    echo
"<tr>
<td>
{$row['sku']}</td>
<td>
{$row['name']}</td>
<td>$"
. number_format($row['price'], 2) . "</td>
<td>"
. $carturl->pageAddItemFormText($row['sku'], 0) . "</td>
</tr>"
;
}
?>
</table>
<input type="submit" name="buy" value="buy"/>
</form>
<p><a href="index.php/product_category/"/>Return to Product Categories</a> | <a href="index.php/cart/"/>View Shopping Cart</a></p>