PHP Classes

File: fwphp/glomodul/z_examples/book_video/auction_wrox24h_30/content/catnav.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/auction_wrox24h_30/content/catnav.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/auction_wrox24h_30/content/catnav.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 3 months ago
Size: 611 bytes


Class file image Download
 * catnav.php
 * Menu for the categories
 * @version 1.2 2011-02-03
 * @package Smithside Auctions
 * @copyright Copyright (c) 2011 Smithside Auctions
 * @license GNU General Public License
 * @since Since Release 1.0
$items = Category::getCategories();
<h3 class="element-invisible">Lot Categories</h3>
<ul class="catnav">
  <?php foreach ($items as $i=>$item) : ?>
<li><a href="index.php?content=lots&cat_id=<?php echo
$item->getCat_id(); ?>&sidebar=catnav"><?php echo
htmlspecialchars($item->getCat_name()); ?></a></li>
  <?php endforeach; ?>

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