PHP Classes

File: fwphp/01mater/shop/ch24_guitar_shop/admin/product/product_list.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/ch24_guitar_shop/admin/product/product_list.php  >  Download  
File: fwphp/01mater/shop/ch24_guitar_shop/admin/product/product_list.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 1,014 bytes


Class file image Download
<?php include '../../view/header.php'; ?>
include '../../view/sidebar_admin.php'; ?>
    <h1 class="top">Product Manager - List Products</h1>
    <p>To view, edit, or delete a product, select the product.</p>
    <p>To add a product, select the "Add Product" link.</p>
    <?php if (count($products) == 0) : ?>
<p>There are no products for this category.</p>
    <?php else : ?>
            <?php echo htmlspecialchars($current_category['categoryName']); ?>
            <?php foreach ($products as $product) : ?>
                <a href="?action=view_product&amp;product_id=<?php
echo $product['productID']; ?>">
                    <?php echo htmlspecialchars($product['productName']); ?>
            <?php endforeach; ?>
<?php endif; ?>

    <p><a href="index.php?action=show_add_edit_form">Add Product</a></p>

<?php include '../../view/footer.php'; ?>

For more information send a message to info at phpclasses dot org.