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

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/admin/product/product_list.php  >  Download  
File: fwphp/01mater/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: ver 7.0.1 mnu, msg, mkd FUNCTIONAL namespaces, CRUD PDO trait, pretty URL-s
Date: 1 month ago
Size: 1,014 bytes
 

Contents

Class file image Download
<?php include '../../view/header.php'; ?>
<?php
include '../../view/sidebar_admin.php'; ?>
<main>
    <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 : ?>
<h1>
            <?php echo htmlspecialchars($current_category['categoryName']); ?>
</h1>
            <?php foreach ($products as $product) : ?>
<p>
                <a href="?action=view_product&amp;product_id=<?php
                         
echo $product['productID']; ?>">
                    <?php echo htmlspecialchars($product['productName']); ?>
</a>
            </p>
            <?php endforeach; ?>
<?php endif; ?>

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

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

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